Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By melodic-software Verified Orgv3.2.5MITIn 1 marketplace
Shows how large, complex, duplicated and poorly covered a change is, citing a source for every number. Read-only: runs only collectors already installed, never tests, and gives no pass/fail verdict. Needs Bash 4+ and Python 3.9+.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Your code-metrics settings fileconfig_file
Path to your own code-metrics YAML file, the layer that applies in every repository, under the team file and your personal override. Same keys as docs/conventions/code-metrics.yaml. Unset: no user layer.
file
A Claude Code plugin that measures the shape of a change and cites where every number comes from. Lines per file, cyclomatic and cognitive complexity, Halstead difficulty, duplication, coverage per function with CRAP, and type debt, each as a read-only audit that reads source files and existing build artifacts, runs an external collector only when one already resolves, and prints a report whose references carry their provenance. It never runs tests, never edits code, never installs a tool, and never renders a keep-or-retire verdict. A reference here is a value to count against, not a bar.
| Skill | What it does |
|---|---|
/code-metrics:audit complexity | Per-function cyclomatic and cognitive complexity and Halstead difficulty from whichever collector resolves (lizard, radon, ESLint rules, gocyclo, gocognit, shellmetrics, multimetric), beside the ISO/IEC 5055 §8.2.117 reference of 20 with 10 and 15 selectable; cognitive and Halstead carry no standard threshold. |
/code-metrics:audit size | Lines per file (total, blank, comment, code through scc; total and non-blank from a bundled counter otherwise) beside a cited reference; size.mode: iso-8.2.115 adds the ISO function-percentage form; --check with size.check set (off by default) fails a changed file that crossed the reference. |
/code-metrics:audit-duplication | Clone classes (the detector's pairs merged; duplicated lines and tokens, every instance's range) from jscpd, dupl, or PMD CPD, rolled up per language and per directory, minus the replication the repository declares in a sanctioned-replication registry (a path-within-plugin, or a canonical -> copies cluster line), which is an exclusion, not a suppression. A file over the size cap is reported as skipped, never silently dropped. |
/code-metrics:audit-coverage | Line coverage per file and per function read from the artifacts a build already produced (lcov 1.x and 2.2, Cobertura, coverage.py JSON, Go cover profile), plus CRAP per function from the complexity rows; it never runs a test, a missing artifact is a visible warning, and a function with no executable lines reports null, never zero. |
/code-metrics:audit type-debt | The typed-code percentage per file and per language: type-coverage for TypeScript, mypy's --any-exprs-report for Python; no standard or CWE anchors the measure, so the reference is null by design. C# is reported as not applicable. |
/code-metrics:audit-suppressions | Every lint and type-checker suppression (ESLint, TypeScript, noqa, mypy, pylint, Pyright, Ruff, ShellCheck, C# pragmas and attributes, nolint, PowerShell attributes, markdownlint, RuboCop, Java @SuppressWarnings) in the change's added lines, a path, or the tree, each with its rule ids and reason and whether it is justified (a reason, plus a rule id where the tool can name one); rule ids listed in suppressions.correctness_rules are marked. The bundled scanner's --count prints the counts for a CI ceiling. |
/code-metrics:principles | Metric literacy: what each measure can and cannot tell you, where every reference value came from, CRAP's corrected provenance, the cross-metric caveats (carried once, here), and gated pointers to the plugins that own mutation score, tautological tests, dead code, coupling, and lint. |
/code-metrics:setup | check probes the interpreter and every configuration layer, and runs one measure per collector on a bundled fixture; apply writes the tracked team configuration per key, idempotently, and never installs a tool. |
Languages are detected from file extensions (TypeScript/JavaScript, Python, Bash, Go, and C#, whose
complexity language is deferred and reported as such). Every other text file, markdown, JSON, YAML,
PowerShell, a Makefile, lands in the catch-all other language, which carries a line count and
nothing else: audit size measures it, and every other measure reports it as not applicable.
When the consuming repository tracks docs/conventions/ecosystems/<language>.yaml files, their globs
override the bundled map for that language. Two scopes are first-class: the default is the change,
files that differ from the merge-base with the default branch plus uncommitted and untracked
files, and --all is the whole tree (every tracked or untracked-but-not-ignored file); explicit
paths narrow either. Nothing depends on a framework, a build system, or the publisher.
7-day copy clicks
npx claudepluginhub melodic-software/claude-code-plugins --plugin code-metricsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground