Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Audits code for maintainability and test smells, measuring structure metrics against a named size profile and rating evidence strength.
17% 39%+22 ptsof test cases passed
Passed 9 of 23 test cases with the skill, and 4 of 23 without it.
3 of 3 safety checks passed
Not used yet
Authoritative definitions for mechanical metrics in smell-check. Registry rules name what to count; this file names how to count, which layer produces the number, and how absence degrades. Never invent a mechanical number when the tool or script that should produce it is missing. Threshold cut-offs live in presets.md, not here.
Static analysis only: do not build, compile, or execute subject code (including its tests).
Scripts and shell recipes emit the same TSV shape, one row per measurement:
| column | meaning |
|---|---|
rule | rule key or metric key (code.long-function, test.assertion-sites, …) |
location | path:line (1-based line of the symbol or match) |
symbol | function/method qualname, test label, or - for file-level rows |
value | non-negative integer (or duration ms when noted) |
\t separators, \n line endings, no header row.rule ascending, then location, then symbol, then value. Same input → same bytes.--threshold-lines N, --threshold-nesting N, --threshold-params N keep only rows with value > N for the matching rule. No filter → full dump.Metric keys emitted by attached scripts:
| metric key | feeds rule(s) |
|---|---|
code.long-function | code.long-function |
code.deep-nesting | code.deep-nesting |
code.long-parameter-list | code.long-parameter-list |
test.assertion-sites | test.assertion-free-test, test.assertion-roulette |
test.gate-nodes | test.conditional-test-logic |
File-level and grep-level rows use the rule key directly (code.large-file, test.ignored-test, test.sleepy-test, code.duplicate-code).
Use the first layer in this table that can produce a real measurement for that language and metric. Record the layer and tool identity in the report environment block.
| layer | when | evidence label |
|---|
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.