envoic - Environment Scanner and Cleanup Skill
Use envoic to discover and safely clean Python virtual environments, node_modules, and development artifacts.
Quick Start
CODEBLOCK0
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
- 1. Run
uvx envoic info .venv (or npx envoic info node_modules). - If environment is broken or stale, propose delete-and-recreate steps.
2) Disk Space Recovery
- 1. Run
uvx envoic scan <root> --deep and/or npx envoic scan <root> --deep. - Identify largest stale candidates.
- Run
manage --dry-run, then actual cleanup only after confirmation.
3) Build/Test Artifact Cleanup
- 1. Scan project root.
- Prefer deleting SAFE artifacts first.
- Warn for CAREFUL artifacts.
Safety Contract
- 1. Always scan before delete.
- Prefer
--dry-run before 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: INLINECODE12
- Safety and risk tiers: INLINECODE13
- Troubleshooting and fallbacks: INLINECODE14
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)
envoic - 环境扫描与清理技能
使用 envoic 发现并安全清理 Python 虚拟环境、node_modules 以及开发工件。
快速开始
bash
uvx envoic scan .
uvx envoic manage . --dry-run
npx envoic scan . --deep
如果 uvx 不可用,请使用 pip install envoic 安装 Python 包。
如果 npx 不可用,请使用 npm install -g envoic 安装 JS 包。
主要工作流程
1) 入职健康检查
- 1. 运行 uvx envoic info .venv(或 npx envoic info node_modules)。
- 如果环境已损坏或过时,建议执行删除并重新创建的步骤。
2) 磁盘空间回收
- 1. 运行 uvx envoic scan --deep 和/或 npx envoic scan --deep。
- 识别最大的过时候选对象。
- 运行 manage --dry-run,确认后再执行实际清理。
3) 构建/测试工件清理
- 1. 扫描项目根目录。
- 优先删除安全工件。
- 对需谨慎处理的工件发出警告。
安全契约
- 1. 始终先扫描再删除。
- 破坏性操作前优先使用 --dry-run。
- 绝不删除锁定文件或项目清单文件。
- 非试运行清理需要用户明确确认。
完整策略请参见 references/safety.md。
已验证触发短语
- - 查找并移除过时的虚拟环境
- 清理旧的 node_modules 和缓存
- 我遇到了 ENOSPC 错误,请释放开发工件的磁盘空间
- 审计此工作区中的环境扩散情况
- 检查此 .venv 是否已损坏
- 列出最大的构建工件
- Python 和 JS 的试运行清理计划
- 查找悬空的 venv 符号链接
- 安全清理测试/构建缓存
- 生成过时环境的 JSON 报告
参考资料
- - 完整命令目录:references/commands.md
- 安全与风险等级:references/safety.md
- 故障排除与回退方案:references/troubleshooting.md
工具特定表面文件
- - Codex:.agents/skills/envoic/SKILL.md(此技能的符号链接/副本)
- Cursor:.cursorrules(生成的适配器)
- Copilot:.github/copilot-instructions.md(生成的适配器)
- Claude:.claude-plugin/plugins.yaml(生成的适配器)