Agent skill
cleanup-guide
Detect unnecessary files and provide cleanup recommendations
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/design/cleanup-guide-chkim-su-skillmaker
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 /skillmaker:wizard validate via W036 check.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?