code-stats SKILL.md skillA

code-stats from alibaba/skill-up is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add alibaba/skill-up/code-stats@v1.0.0

Pins v1.0.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
alibaba/skill-up
Path
examples/code-stats/SKILL.md
Versions recorded
2
Latest version
v1.0.0, committed Sep 28, 2026
First version recorded
May 14, 2026
Size
2,179 bytes
Repository stars
1,420
License
Apache-2.0

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.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 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
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add alibaba/skill-up/code-stats@sha256:331d0557e9238024

The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ube6rtrvcgw4upp3.svg)](https://markdownregistry.com/a/art_ube6rtrvcgw4upp3)

6 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between May 14, 2026 and Sep 28, 2026, about one every 137 days.

versioncommittedcommitsizeaudit
v1.0.0 latest2026-09-28 b85649b 2,179 BA view · diff
v1.0.02026-05-14 47c6b4a 1,945 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (2179 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

alibaba/skill-up · 1,420 stars · license Apache-2.0 · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ube6rtrvcgw4upp3
GET https://markdownregistry.com/api/v1/resolve?ref=alibaba/skill-up/code-stats
GET https://markdownregistry.com/api/v1/blob/331d0557e92380240fbd27435433700763e75766ec8df7d2e8d92207bd5d6a01

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from alibaba/skill-up

AGENTS.md AGENTS.md file
alibaba/skill-up · AGENTS.md
git:20261022.45f15f9 · audit A · 1,420 stars
CLAUDE.md CLAUDE.md file
alibaba/skill-up · CLAUDE.md
git:20260526.58c965e · audit B · 1,420 stars
code-quality-reviewer SKILL.md skill
alibaba/skill-up · e2e/testdata/agent-judge-criteria/SKILL.md · Reviews code and provides detailed quality assessment
v1.0.0 · audit A · 1,420 stars
custom-engine SKILL.md skill
alibaba/skill-up · e2e/testdata/custom-engine/SKILL.md
git:20260917.0186b47 · audit C · 1,420 stars
quick-calculator SKILL.md skill
alibaba/skill-up · e2e/testdata/expect-short-circuit/SKILL.md · Quickly produces accurate calculation results when a user needs arithmetic, unit conversion, or mathematical formula…
git:20260514.47c6b4a · audit A · 1,420 stars
file-organizer SKILL.md skill
alibaba/skill-up · e2e/testdata/file-and-tool-rules/SKILL.md · Triggered when the user needs to organize project files, analyze directory structure, or generate a project report. Use…
git:20260514.47c6b4a · audit A · 1,420 stars
code-quality-analyzer SKILL.md skill
alibaba/skill-up · e2e/testdata/full-report-pipeline/SKILL.md · Triggered when the user submits code or requests a comprehensive code quality analysis. Automatically performs static…
git:20260514.47c6b4a · audit A · 1,420 stars
git-analyzer SKILL.md skill
alibaba/skill-up · e2e/testdata/git-context/SKILL.md · Analyzes git repositories and commit history
v1.0.0 · audit A · 1,420 stars
test-import-skill SKILL.md skill
alibaba/skill-up · e2e/testdata/import-skill/SKILL.md · Fixture skill for the skill-up import e2e tests.
git:20261105.ca276f5 · audit B · 1,420 stars
mcp-case-overrides SKILL.md skill
alibaba/skill-up · e2e/testdata/mcp-case-overrides/SKILL.md · Per-case mocked MCP override smoke skill used by skill-up e2e tests.
git:20260707.cb3a9d6 · audit A · 1,420 stars
mcp-mocked-marker SKILL.md skill
alibaba/skill-up · e2e/testdata/mcp-mocked-marker/SKILL.md · MCP mocked marker smoke skill used by skill-up e2e tests.
git:20260519.7b2f584 · audit B · 1,420 stars
mcp-stdio-marker SKILL.md skill
alibaba/skill-up · e2e/testdata/mcp-stdio-marker/SKILL.md · MCP stdio marker smoke skill used by skill-up e2e tests.
git:20260514.47c6b4a · audit B · 1,420 stars

Every file in alibaba/skill-up

Other files named code-stats

code-stats SKILL.md skill
aiskillstore/marketplace · skills/0xdarkmatter/code-stats/SKILL.md · Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs). Get quick project…
git:20260705.e9e4712 · audit A · 471 stars
code-stats SKILL.md skill
0xdarkmatter/claude-mods · skills/code-stats/SKILL.md · Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs). Get quick project…
git:20260410.d221136 · audit A · 79 stars

Browse by kind, by grade A, or by owner.