In short.
Code Stats is an AI assistant skill for developers who need file and line statistics, but its basic counting method does not distinguish code, comments and blank lines. Version 1.0.0 directs a shell-capable assistant to produce a fixed report. Its supplied evaluation rules cover formatting, selected fixture totals and a dependency-exclusion example; they do not establish general counting accuracy, real-project performance or current host compatibility.
Researched and written by an AI model and checked by a second AI model. How it works
The supplied scope contains all 14 selected files under examples/code-stats: SKILL.md, README.md, five YAML cases, two YAML suite configurations, one JSON evaluation file, three sample-project files and one Bash checker. The repository-root LICENSE is the related notice outside that folder. All are pinned to revision d6c8b764d8b04df170cee67aa6df907c1a89b91f. The wider skill-up implementation, linked multi-judge verification document, raw execution artifacts, dependency documentation and provider terms are excluded. Runtime correctness, real-project performance and cross-platform behavior are not assessed.
The overview
Identity
The resource is the examples/code-stats folder in Alibaba's skill-up repository, including its skill instructions, evaluation definitions, checking script and sample project. SKILL.md identifies the skill as code-stats, version 1.0.0. The original source location is [https://github.com/alibaba/skill-up/tree/main/examples/code-stats].
The README documents evaluation routes through skill-creator and skill-up. Those frameworks and their full implementations extend beyond this folder.
Assessment
The strongest fit is a quick, consistently structured overview of a project, or a compact example for learning how to evaluate an assistant skill. Its explicit exclusions and output requirements make the intended behavior easy to understand.
Confidence in numerical accuracy is limited by the supplied judges. The shared Bash checker mainly checks keywords and the presence of a pipe character. Selected cases add numeric expectations, but a passing result would still leave many statistics unchecked.
Users
Developers exploring an unfamiliar repository can use the requested report to see its size, file-type distribution and largest files. Beginners receive a defined report layout; experienced developers can inspect and adapt the instructions and evaluation rules.
Skill authors also get examples of script judging, rule-based judging, semantic AI judging and a separate file-delivery configuration. The folder does not supply evidence for using line counts as a measure of software quality or developer productivity.
Capabilities
The skill instructs the assistant to report total files, total lines and total size in bytes; group files and lines by extension; list the top five extensions by line count; and identify the five largest files by line count. Both extension summaries should be sorted by descending line count, with extensionless files grouped as (no ext).
It defaults to the current directory. It excludes node_modules, .git, dist and build unless the user explicitly requests their inclusion. These are specified behaviors; their reliability across real repositories is not established.
Using it
Requirements
Using the skill requires an assistant that can load its instructions, read the target directory and invoke Bash commands using find and wc. Host-specific installation procedures and a general compatibility matrix are not supplied.
The main skill-up configuration selects OpenCode with the DashScope qwen3.8-max model and a hosted endpoint. The README requires an available model and endpoint, an injected DASHSCOPE_API_KEY, and preinstalled runner and judge CLIs for the none runtime. A separate configuration selects Qoder CLI with the fast model. Provider data-handling terms and current model availability are unknown.
Mechanism
SKILL.md directs the assistant to locate files with find, prune excluded directories, count lines with wc -l, aggregate by extension and assemble the prescribed report. This makes correctness depend on the commands the assistant chooses and how it combines their results. The instructions require total byte size without specifying its calculation.
For analyze-directory, a script judge checks report structure and an independent AI judge checks whether the response actually provides a complete, relevant report. The README describes both judges as required. The reviewer has its own engine configuration, so runner model overrides do not change it.
Setup
For the documented skill-up evaluation route, the README starts at the repository root with make build, followed by ./bin/skill-up validate ./examples/code-stats/evals/eval.yaml. Its focused evaluation command selects analyze-directory, limits parallelism to one and requests JSON, HTML and JUnit reports.
Case paths, repo_fixture and script_path resolve relative to the directory containing SKILL.md. Keep credentials in the environment or a secret manager, as the README specifies. The skill-creator route uses the supplied evals.json through a Claude prompt; detailed framework installation instructions are outside the supplied folder.
Example
A request such as Analyze the current directory should produce summary totals, an extension table, extension rankings and the largest files. The analyze-directory evaluation narrows the scope to main.go, util.go and README.md, with explicit expectations of Total Files: 3 and Total Lines: 20. These are fixture expectations, not measured results for a user's project.
The exclusion case supplies three project files plus node_modules/demo-lib/index.js. Its rules require three counted files, two Go files, one Markdown file and no JavaScript extension row.
Assessment & evidence
Limitations
The shared checker does not verify table structure beyond finding a pipe character. It does not independently check total bytes, per-file counts, extension ordering, the largest-file ranking or every required section. Nonzero agent exit status produces a warning rather than directly failing this script.
Its case-insensitive error-or-fail substring check could reject an otherwise valid report containing a filename such as error.go. Rules for binary files, symbolic links, unreadable paths, .gitignore handling and incomplete final lines are unspecified. Large-repository performance and cross-platform behavior are not assessed.
The README says the other main cases retain script judges, but exclude-dependencies.yaml actually defines a rule-based judge. The JSON evaluation file also has three cases, while the main YAML suite selects four, so coverage differs between routes.
Fit and tradeoffs
The fixed report layout makes the skill useful when an assistant is already part of repository exploration. Its exclusions prevent several common dependency and generated-output directories from dominating the requested totals.
The evaluation approach combines mechanical output checks with an AI assessment of relevance. However, relevance and formatting do not establish arithmetic correctness. Treat numerical totals as claims to verify when they influence consequential decisions.
Alternatives
For basic counts alone, the find and wc operations described by the skill can form a direct command-line approach without an AI-generated report. The supplied material provides no comparative accuracy, speed or cost measurements.
For evaluation, skill-creator's three-case JSON file is an alternative to skill-up's four-case main YAML suite. A separate Qoder CLI configuration requests file-delivered AI judging for one workspace-report case. These routes have different coverage and requirements.
Evidence
SKILL.md establishes intended behavior. The configurations, case files and Bash checker establish what the supplied evaluations ask for and inspect. The small fixture contains a README and two Go files.
The README's success claim covers analyze-directory with OpenCode 1.14.24 and Qwen3.8-Max, plus a controlled-failure scenario and baseline observations. Raw transcripts and the linked verification document are absent from the supplied content, so those outcomes remain documentation claims. The README explicitly limits its claim to less than all four main cases.
The current-directory and top-extension cases largely reuse broad output checks. Their presence establishes evaluation definitions, not demonstrated accuracy or complete enforcement of the skill's format.
Access & freshness
Costs
The Apache license grants no-charge licensing rights, but operating cost is unknown. The files supply no provider prices, token consumption or measured total cost.
The main evaluation configuration enables a without-skill baseline and allows up to two retries on errors. Analyze-directory also uses a separate AI reviewer session. These settings can increase model usage beyond a single report request; their actual cost is not established.
Rights
The accompanying repository LICENSE is Apache License 2.0 and carries a 2026 Alibaba Group copyright notice. It permits reproduction, modification and redistribution, subject to its conditions, and includes a contributor patent grant.
Redistribution requires a license copy, retention of applicable notices, prominent notices on modified files and relevant NOTICE attribution if present. Trademark rights are limited, and the work comes without warranty. Separate framework dependencies and hosted model services may have their own terms, which are not supplied.
Freshness
The supplied snapshot was captured on 2026-11-16 at 07:15:21.258 UTC and pins every file to revision d6c8b764d8b04df170cee67aa6df907c1a89b91f. Its immutable folder reference is [https://github.com/alibaba/skill-up/tree/d6c8b764d8b04df170cee67aa6df907c1a89b91f/examples/code-stats].
SKILL.md declares version 1.0.0. The README dates its single-case success claim to 2026-09-30. Later source changes, current CLI compatibility and continued availability of the configured hosted models are unknown.
Next steps
Confirm that your assistant supports local skill loading and the required shell commands. Use an explicitly scoped directory and compare an initial report against independently calculated file, line and byte totals.
Before depending on its evaluations, add exact checks for extension totals, ordering, largest files and byte size. Include extensionless files, excluded directories and filenames containing error or fail. Confirm model access and provider charges before using the hosted evaluation configuration.
