code-stats
Analyzes code files and reports statistics including line counts, file counts by extension, and total size.
Skill by alibaba
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/alibaba-code-stats
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security, data-analysis
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/code-stats
What's inside
- Skill name
code-stats- Description
- Analyzes code files and reports statistics including line counts, file counts by extension, and total size. Use this skill whenever the user wants to understand the composition of a codebase - asking about "how many lines of code", "what file types exist", "code distribution", or needing a quick audit of project size and structure. Make sure to invoke this skill when users mention analyzing codebases, counting lines, checking file distributions, or auditing code.
- License
- Apache-2.0
- Instructions
- 60 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (12)
- README.md
- SKILL.md
- analyze-directory.yaml · evals/cases/
- current-directory-format.yaml · evals/cases/
- exclude-dependencies.yaml · evals/cases/
- top-extensions.yaml · evals/cases/
- eval.yaml · evals/
- evals.json · evals/
- README.md · evals/fixtures/repos/sample-project/
- main.go · evals/fixtures/repos/sample-project/
- util.go · evals/fixtures/repos/sample-project/
- check-stats.sh · evals/fixtures/scripts/
SKILL.md (first lines)
# Code Stats Skill Analyzes code files and generates statistics about a codebase. ## Usage When invoked, this skill will: 1. Scan the specified directory (defaults to current directory) - Exclude `node_modules/`, `.git/`, `dist/`, and `build/` unless the user explicitly asks to count them. These are dependencies, repository metadata, or generated output rather than project source. 2. Count total lines, files by extension 3. Report the largest files 4. Output results in a structured format 5. Sort extension summaries by total line count in descending order ## Output Format Always use this exact format for the output: ``` # Code Statistics ## Summary - Total Files: <count> - Total Lines: <count> - Total Size: <size_bytes> bytes ## Files by Extension | Extension | Files | Lines | |-----------|-------|-------| | .go | 12 | 1500 | | .md | 5 | 200 | ## Top 5 File Extensions by Line Count 1. .go — 1500 lines 2. .md — 200 lines ## Largest Files (top 5) 1. main.go (500 lines) 2. util.go (300 lines) ``` If a file has no extension, group it under `(no ext)` in both extension sections. ## Process 1. Use `Bash` with `find` to locate project files, pruning the excluded directories 2. Use `Bash` with `wc -l` to count lines per file 3. Group files with no extension under `(no ext)` 4. Sort both extension summaries by total line count in descending order 5. Aggregate the results into the output format above 6. If no directory is specified, analyze the current working directory ## Examples - "Analyze the current directory" - "Run code-stats on ./src" - "Show me file type distribution" - "How many lines of Python do we have?"
From alibaba/skill-up, Apache-2.0.
More from alibaba/skill-up
- 0.830score
skill-upper
alibaba
Capture and review Agent Skill observations, and create, run, diagnose, or iteratively improve Skill evaluations (evals) with the skill-up CLI.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
quick-calculator
alibaba
Quickly produces accurate calculation results when a user needs arithmetic, unit conversion, or mathematical formula solving.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
mood-booster
alibaba
Triggered when the user expresses boredom, low mood, frustration, irritation, or a need to relax.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
code-review-assistant
alibaba
Triggered when the user submits code or requests a code review.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
data-transformer
alibaba
Triggered when the user needs to convert data formats, such as CSV to JSON, JSON to YAML, or XML to JSON.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
code-quality-analyzer
alibaba
Triggered when the user submits code or requests a comprehensive code quality analysis.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
file-organizer
alibaba
Triggered when the user needs to organize project files, analyze directory structure, or generate a project report.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.812score
mcp-case-overrides
alibaba
Per-case mocked MCP override smoke skill used by skill-up e2e tests.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.812score
sandbox-mcp
alibaba
Verify Sandbox MCP can be installed and called from skill-up.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.808score
mcp-stdio-marker
alibaba
MCP stdio marker smoke skill used by skill-up e2e tests.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.808score
mcp-mocked-marker
alibaba
MCP mocked marker smoke skill used by skill-up e2e tests.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.807score
deployment-config-guide
alibaba
Ask for missing deployment settings and summarize the requested configuration without deploying it.
SkillAFreshness: A★ 1.3KClaude Code +9
Signals
- Stars
- 1,317
- Forks
- 115
- Open issues
- 16
- Last commit (this folder)
- Oct 16, 2026 (12 days ago)
- Last release
- Oct 20, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/alibaba/skill-up
- Website
- alibaba.github.io/skill-up/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.285score
code-stats
flyingtimes
Analyzes code files and reports statistics including line counts, file counts by extension, and total size.
SkillCFreshness: CClaude Code +9 - 0.285score
code-stats
OahMoza
Analyzes code files and reports statistics including line counts, file counts by extension, and total size.
SkillCFreshness: CClaude Code +9
More from alibaba
- 0.830score
skill-upper
alibaba
Capture and review Agent Skill observations, and create, run, diagnose, or iteratively improve Skill evaluations (evals) with the skill-up CLI.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
code-review-assistant
alibaba
Triggered when the user submits code or requests a code review.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
data-transformer
alibaba
Triggered when the user needs to convert data formats, such as CSV to JSON, JSON to YAML, or XML to JSON.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
code-quality-analyzer
alibaba
Triggered when the user submits code or requests a comprehensive code quality analysis.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
mood-booster
alibaba
Triggered when the user expresses boredom, low mood, frustration, irritation, or a need to relax.
SkillAFreshness: A★ 1.3KClaude Code +9 - 0.820score
file-organizer
alibaba
Triggered when the user needs to organize project files, analyze directory structure, or generate a project report.
SkillAFreshness: A★ 1.3KClaude Code +9
Cite this page
code-stats skill. Agent Mart. https://agentmart.dev/skills/alibaba-code-stats (last updated 2026-10-24)