- name
SKILL.md
The skill file stays in the publisher's repository.
Paste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add alibaba/skill-up --skill code-stats -a cursor -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add alibaba/skill-up --skill code-stats -a claude-code -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add alibaba/skill-up --skill code-stats -a codex -yPaste the copied command in a terminal. It installs this SKILL.md into that agent.
npx skills add alibaba/skill-up --skill code-stats -a grok -ySend the copied message in a Grok Bot chat. The Bot fetches this SKILL.md from GitHub and adds it to the skills all your Bots share.
Install this skill: https://github.com/alibaba/skill-up/tree/HEAD/examples/code-statsFrom the publisher
Analyzes code files and generates statistics about a codebase.
When invoked, this skill will:
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.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.
Bash with find to locate project files, pruning the excluded directoriesBash with wc -l to count lines per file(no ext)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
---name: code-statsdescription: Analyzes code files and reports statistics including line counts, file counts by extension, and total size…---# examples/code-stats/SKILL.mdOverview
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.
FAQ
Download examples/code-stats/SKILL.md from the publisher, or copy the path and open the repository. PlugMCP lists the skill and does not host the file.
The publisher keeps it at https://github.com/alibaba/skill-up.
Claude, Cursor, Codex, and Grok Build can read a SKILL.md you add from the publisher's repository. Grok Bot installs it when you send the skill's GitHub folder link in a chat.