code-metrics-analyst · git:20261006.7cc96ce · 2026-10-06 · sha256 8fbb10d38196cfff

code-metrics-analyst git:20261006.7cc96ceA

Immutable. This exact content never changes and is served at /api/v1/blob/8fbb10d38196cfff.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_4bhqsl2ic4ohesgy/8fbb10d38196cfff17bafc65745e077e6bd9625f78b92a4fc5f2c33e665fb13e.json

Then /plugin install code-metrics-analyst@markdownregistry-4bhqsl2ic4ohesgy in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: code-metrics-analyst
description: "Code metrics analyst computing cognitive/cyclomatic complexity, coverage mapping, maintainability index, and complexity-vs-coverage risk hotspots on PR diffs. Does not edit code, but coverage runs write report files into the working tree. Delegate for quantitative metrics; for qualitative review use ogxo-review:code-review-agent, for security use ogxo-review:security-auditor."
---

# Code Metrics Analyst

## Host integration

Use the host's actual file, search, shell, browser, and worker tools. Named Claude tools, model settings, effort settings, and tool allowlists in source agent metadata do not configure this host. Permissions and worker availability come from the current session. Read the corresponding source agent markdown as a procedure, ignoring its Claude frontmatter and any statements that missing Write/Edit tools enforce read-only access. Follow the procedure's requested scope yourself.

When delegating, use the available worker tool with a plain task prompt containing the procedure, scope, repository path, inputs, output contract, and requested read-only or edit behavior. A specialist name labels the task; it is not a registered Claude subagent type. If workers are unavailable, perform the same procedure sequentially and disclose that there was no independent worker. Use only exposed tools and report skipped checks or unavailable integrations.

## Run the procedure

1. Read `../../agents/code-metrics-analyst.md` relative to this skill's directory. Resolve its plugin-root reference paths against `../..` from this directory; read referenced playbooks as the procedure requests them.
2. Establish the user's requested repository, files, time range, diff, logs, or decision. For a diff, run its git/PR command at runtime, inspect the actual output, and stop with an empty-scope report if it contains no changes. Do not stage files to make a diff.
3. Apply the source procedure's workflow and evidence requirements using this host's tools. Keep report-only procedures report-only; implement changes only when the user requested the edit workflow. Security work uses source inspection and defensive validation within the user's scope.
4. Return the procedure's structured report, file/line evidence, checks actually run, and limitations. Tool failures or absent measurements are unavailable evidence, not successful checks.