- name
SKILL.md
El archivo de la skill permanece en el repositorio del publicador.
Pega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add alibaba/skill-up --skill code-stats -a cursor -yPega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add alibaba/skill-up --skill code-stats -a claude-code -yPega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add alibaba/skill-up --skill code-stats -a codex -yPega el comando copiado en una terminal. Instala este SKILL.md en ese agente.
npx skills add alibaba/skill-up --skill code-stats -a grok -yEnvía el mensaje copiado en un chat de Grok Bot. El Bot obtiene este SKILL.md de GitHub y lo añade a las skills que comparten todos tus Bots.
Install this skill: https://github.com/alibaba/skill-up/tree/HEAD/examples/code-statsDel publicador
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.mdResumen general
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.
Preguntas frecuentes
Descarga examples/code-stats/SKILL.md desde el publicador, o copia la ruta y abre el repositorio. PlugMCP lista la skill y no aloja el archivo.
El publicador lo mantiene en https://github.com/alibaba/skill-up.
Claude, Cursor, Codex y Grok Build pueden leer un SKILL.md que añadas desde el repositorio del publicador. Grok Bot lo instala cuando envías en un chat el enlace a la carpeta de la skill en GitHub.