| name | clean-code-quick-scan-commands |
| description | Sub-skill of clean-code: Quick Scan Commands. |
| version | 2.1.0 |
| category | workspace |
| type | reference |
| scripts_exempt | true |
Quick Scan Commands
Quick Scan Commands
Run these before reviewing or merging code:
find src/ -name "*.py" -exec wc -l {} + | awk '$1 > 400 {print $1, $2}' | sort -rn | head -20
grep -n "^ def \|^def " src/**/*.py | awk -F: '{print $1, $2}' | head -30
echo "=== CRITICAL (>1000 lines) ===" && find src/ -name "*.py" -exec wc -l {} + | awk '$1>1000{print}' | sort -rn
echo "=== HIGH (400-1000 lines) ===" && find src/ -name "*.py" -exec wc -l {} + | awk '$1>400 && $1<=1000{print}' | sort -rn
find src/ \( -name "*_unused.py" -o -name "*_old.py" -o -name "*_bak.py" \) | head -20
grep -r "^class " src/ | sed 's/.*class //' | sed 's/[:(].*//' | sort | uniq -d