Cleanup Guide

Detect unnecessary files and provide cleanup recommendations

majiayu000 98e7d3c 2 files · 1.5 KB Updated 567 repo stars

File contents

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.

majiayu000/claude-skill-registry-data/tree/main/design/cleanup-guide commit 98e7d3c6d1

Frequently asked questions

npx skillmds add majiayu000/cleanup-guide