home/common/ai/resources/agents/skills/code-stats/SKILL.md
Analyze codebase statistics with tokei (line counts by language) and difft (semantic AST-aware diffs). Use for project composition, refactoring scope, codebase metrics.
npx skillsauth add kamushadenes/nix code-statsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Rapid codebase analysis using two complementary tools.
Line-count statistics across programming languages:
Usage:
tokei # Full project stats
tokei --type=TypeScript,JavaScript # Filter by language
tokei --exclude="vendor/*" # Exclude patterns
tokei -o json # JSON output for automation
AST-aware diffing that understands code structure:
Usage:
difft file1.go file2.go # Compare two files
GIT_EXTERNAL_DIFF=difft git diff # Git integration
GIT_EXTERNAL_DIFF=difft git show HEAD # Show last commit
GIT_EXTERNAL_DIFF=difft git log -p # Log with semantic diffs
tokei for project compositiontokei -o json | jq for automationGIT_EXTERNAL_DIFF=difft git diff for meaningful diffstokei before estimating project scopedifft for refactoring reviewsreferences/tokei-advanced.md for filtering, automation, CI patternsreferences/difft-advanced.md for git integration, display modes, configdata-ai
Show MemPalace status — room counts, storage usage, and palace health.
tools
Search your MemPalace — semantic search across all mined memories, projects, and conversations.
tools
Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.
development
Initialize a new MemPalace — guided setup for your AI memory palace with ChromaDB backend.