Agent skill
cleanup-guide
Detect unnecessary files and provide cleanup recommendations
Install this agent skill to your Project
npx add-skill https://github.com/chkim-su/forge-editor/tree/main/skills/cleanup-guide
SKILL.md
Cleanup Guide
Detect and clean unnecessary files in plugin/project directories.
File Categories
| Category | Risk | Examples | Action |
|---|---|---|---|
| SENSITIVE | HIGH | .env, *.pem, credentials.json |
Immediate gitignore + secret rotation |
| DELETE | MEDIUM | *.log, __pycache__, node_modules |
Remove with cleanup commands |
| GITIGNORE | LOW | .DS_Store, .idea/ |
Add to .gitignore |
Quick Scan
# Run validation with W036 check
python3 scripts/validate_all.py . 2>&1 | grep -A 50 "W036"
Detailed Patterns
See references/file-patterns.md for complete pattern list.
Auto-Cleanup Commands
After identifying issues, generate cleanup script:
# Logs
rm -f *.log firebase-debug.log npm-debug.log
# Caches
rm -rf __pycache__ .pytest_cache .mypy_cache .cache
# Large dirs (careful!)
rm -rf node_modules
# Update gitignore
cat >> .gitignore << 'EOF'
*.log
__pycache__/
.DS_Store
.env
EOF
Integration
This skill is automatically called by /forge-editor:wizard validate via W036 check.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
forge-analyzer
Analyze vague user ideas and recommend architecture based on actual needs, not predefined categories. Front-end for clarifying ambiguous requests before routing to appropriate skillmaker tools.
hook-system
Claude Code Hook system entry point. Guides you to the right skill based on your needs.
mcp-gateway-patterns
MCP Gateway design patterns for Agent Gateway, Subprocess, and Daemon isolation. Use when designing MCP integrations.
workflow-state-patterns
Hook-based state machine patterns for multi-phase workflows. Use when designing sequential workflows with quality gates.
mcp-daemon-isolation
Context isolation for query-type MCP tools (LSP, search, database) via external CLI. Use when MCP query results consume too many context tokens.
critical-analysis-patterns
Philosophical/meta project analysis - critical analysis framework that asks "why?"
Didn't find tool you were looking for?