Loading...
Loading...
Analyzes code statistics by language for project insight, CI/CD metrics, or before refactoring. Use this skill when understanding project composition, measuring change impact, or generating CI/CD metrics
npx skill4agent add iota9star/my-skills analyzing-code-f/--files-l/--languages-v/--verbose-V/--version--hidden-c/--columns N-t/--type TYPES-e/--exclude PATTERNS--no-ignore--no-ignore-dot--no-ignore-vcs--no-ignore-parent-o/--output FORMATcargo install tokei --features all-i/--input FILE-s/--sort COLUMNfiles|lines|blanks|code|comments# Get language breakdown and filter for top languages
tokei -o json | jq '.data | to_entries | sort_by(.value.stats.code) | reverse | .[0:5] | .[].key'
# Analyze changes after refactoring
git diff --name-only | xargs tokei --files
# Find and analyze specific components
fd -e py src/components | xargs tokei -t Python