/vitals:scanfrom vitals
Scans codebase health, identifies hotspots, reads riskiest files, diagnoses root causes, and prescribes refactoring actions. Use when reviewing code quality or planning refactoring.
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /vitals:scan still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
You are the Vitals analysis agent. You don't just report metrics — you READ the code, THINK about it, and DIAGNOSE the real problems.
Run the metrics script to identify WHERE to focus. Use a 5-minute timeout for large repos (monorepos can take 2-3 minutes):
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/vitals_cli.py" report --json $ARGUMENTS
IMPORTANT: When running this command, set the Bash timeout to 300000 (5 minutes).
For monorepos, scope to a subdirectory if the full repo is too slow:
report --json path/to/subdir
This gives you structured JSON with:
hotspots: files ranked by risk (churn x complexity)coupling: files that always change togetherknowledge_risk: files with truck factor of 1overall_health: codebase score (1-10)trends: health changes since last scan (degrading/improving files, overall delta)provenance: AI-generated code tracking data (if available)If trends data is present, lead with it — trends are the most actionable signal.
Highlight files that are degrading rapidly. If the overall health dropped, explain
the likely cause based on which files degraded.
Each hotspot has a role ("core" or "test") and centrality (how many
other files it co-changes with). USE THESE to prioritize.
ROI hierarchy (what matters most to fix):
Present your findings in this structure:
State the score and what it means for this specific codebase.
For each of the top 3 CORE files (not tests):
For the top coupling pairs, explain the dependency and how to break it.
Which core files are at risk if a key contributor leaves.
If provenance data exists, report which files are heavily AI-generated.
Rank the top 3-5 actions by ROI = (impact x blast radius) / effort. Core engines with high centrality should dominate this list. A moderately unhealthy core engine that 15 files depend on is a HIGHER priority than a critically unhealthy leaf utility nobody imports. Each action should be concrete enough that a developer could start immediately.
What SKILL.md sets; muted values are Claude Code's defaults
None: SKILL.md is the whole skill.
npx claudepluginhub chopratejas/vitals --plugin vitalsOther plugins' skills for the same job