Codebase Inspection
Inspect codebases w/ pygount: LOC, languages, ratios.
📖 Guide
Load with skill_view("codebase-inspection"). Analyze repositories for lines of code, language breakdown, file counts, and code-vs-comment ratios using `pygount`.
🔧 How To
Skill sections: Codebase Inspection with pygount, When to Use, Prerequisites, 1. Basic Summary (Most Common), 2. Common Folder Exclusions, Python projects.
⚠️ Pitfalls
1. **Always exclude .git, node_modules, venv** — without `--folders-to-skip`, pygount will crawl everything and may take minutes or hang on large dependency trees. 2. **Markdown shows 0 code lines** — pygount classifies all Markdown content as comments, not code. This is expected behavior. 3. **JSON files show low code counts** — pygount may count JSON lines conservatively. For accurate JSON line
Related Skills
More skills in GitHub