envoic - Environment Scanner and Cleanup Skill
Use envoic to discover and safely clean Python virtual environments, node_modules, and development artifacts.
Quick Start
uvx envoic scan .
uvx envoic manage . --dry-run
npx envoic scan . --deep
If uvx is unavailable, install Python package with pip install envoic.
If npx is unavailable, install JS package with npm install -g envoic.
Primary Workflows
1) Onboarding Health Check
- Run
uvx envoic info .venv(ornpx envoic info node_modules). - If environment is broken or stale, propose delete-and-recreate steps.
2) Disk Space Recovery
- Run
uvx envoic scan <root> --deepand/ornpx envoic scan <root> --deep. - Identify largest stale candidates.
- Run
manage --dry-run, then actual cleanup only after confirmation.
3) Build/Test Artifact Cleanup
- Scan project root.
- Prefer deleting SAFE artifacts first.
- Warn for CAREFUL artifacts.
Safety Contract
- Always scan before delete.
- Prefer
--dry-runbefore destructive operations. - Never delete lock files or project manifest files.
- Require explicit user confirmation for non-dry-run cleanup.
See full policy in references/safety.md.
Verified Trigger Phrases
- "Find and remove stale virtualenvs"
- "Clean old node_modules and caches"
- "I hit ENOSPC, free up disk from dev artifacts"
- "Audit environment sprawl in this workspace"
- "Check if this .venv is broken"
- "List largest build artifacts"
- "Dry-run cleanup plan for Python and JS"
- "Find dangling venv symlinks"
- "Clean test/build caches safely"
- "Generate JSON report for stale environments"
References
- Full command catalog:
references/commands.md - Safety and risk tiers:
references/safety.md - Troubleshooting and fallbacks:
references/troubleshooting.md
Tool-Specific Surface Files
- Codex:
.agents/skills/envoic/SKILL.md(symlink/copy of this skill) - Cursor:
.cursorrules(generated adapter) - Copilot:
.github/copilot-instructions.md(generated adapter) - Claude:
.claude-plugin/plugins.yaml(generated adapter)