No README available for this skill.
analyzing-code
Description
Use when understanding project composition by language, measuring code change impact, or generating code statistics for CI/CD metrics
apm install SebastienDegodez/copilot-instructions/plugins/minimal-context-tools/skills/analyzing-code
View on GitHub
tokei: Code Statistics Analysis
Always invoke analyzing-code skill for code statistics - do not execute bash commands directly.
Use tokei for fast, accurate code statistics across multiple languages and projects.
Default Strategy
Invoke analyzing-code skill for analyzing code statistics by language. Use when understanding project composition, measuring change impact before refactoring, or generating CI/CD metrics.
Common workflow: analyzing-code skill β other skills (finding-files, querying-json, querying-yaml) for filtering or analyzing-code skill after refactoring to measure impact.
Key Options
Basic Output Control
-f/--filesshow individual file statistics-l/--languageslist supported languages and extensions-v/--verboseshow unknown file extensions (1-3)-V/--versionshow version information--hiddeninclude hidden files-c/--columns Nset strict column width
Filtering & Exclusion
-t/--type TYPESfilter by language types (comma-separated)-e/--exclude PATTERNSexclude files/dirs (gitignore syntax)--no-ignoredonβt respect ignore files--no-ignore-dotdonβt respect .ignore/.tokeignore--no-ignore-vcsdonβt respect VCS ignore files--no-ignore-parentdonβt respect parent ignore files
Output Formats
-o/--output FORMAToutput format (json|yaml|cbor)- Requires compilation with features:
cargo install tokei --features all
- Requires compilation with features:
-i/--input FILEread from previous tokei run or stdin
Sorting Options
-s/--sort COLUMNsort by column- Possible values:
files|lines|blanks|code|comments
- Possible values:
Detailed Reference
For comprehensive usage patterns, output formats, language filtering, and integration examples, load tokei guide when needing:
- Advanced language filtering and exclusion
- JSON/YAML output processing
- CI/CD integration patterns
- Docker usage examples
- Performance tuning for large codebases
The guide includes:
- Basic usage and output control options
- Language filtering and exclusion patterns
- Output format configuration (JSON, YAML, CBOR)
- Performance tips for large codebases
- Docker usage and CI/CD integration
- Configuration files and environment variables
Skill Combinations
For Discovery Phase
- finding-files β analyzing-code: Analyze specific file types or directories
- extracting-code-structure β analyzing-code: Get statistics for specific code components
- git diff β analyzing-code: Analyze changed files statistics
For Analysis Phase
- analyzing-code β querying-json/querying-yaml: Parse statistics output for reports
- analyzing-code β fuzzy-selecting: Interactive selection from language breakdown
- analyzing-code β viewing-files: View statistics with formatted output
For Refactoring Phase
- analyzing-code β replacing-text: Update configuration based on code statistics
- analyzing-code-structure β analyzing-code: Measure impact of structural changes
- analyzing-code β searching-text: Find files contributing to specific language statistics
Multi-Skill Workflows
- analyzing-code β finding-files β searching-text β analyzing-code-structure: Statistics-driven refactoring pipeline
- analyzing-code β querying-json β fuzzy-selecting: Interactive language-based file selection
- git workflow: git diff β analyzing-code β finding-files β viewing-files (analyze changes, select files, preview)
Integration Examples
# 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 π Evaluation Benchmark
View all βNo evaluation data yet.
Results appear after the first pipeline run (weekly on Mondays, or on PR).