code-health

code-health is a skill for Claude Code from davepoon/buildwithclaude. It costs 35 tokens per session (370 once invoked), scanned A, original, MIT.

A code-quality review procedure that looks for unused code, maintenance work, outdated dependencies, and patterns that make software harder to maintain.

In plain words
What is it for?
Finding dead code, dependency problems, duplicated or overly complex code, and untracked TODO or FIXME items, then writing a dated review report.
Why use it?
It helps identify cleanup and reliability issues before releases, after refactoring, or when learning an unfamiliar codebase.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agent-triforce plugin — 6 skills, 3 agents shipped together

Good fit Finding dead code, dependency problems, duplicated or overly complex code, and untracked TODO or FIXME items, then writing a dated review report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davepoon/buildwithclaude/code-health
About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,677 stars · on GitHub · buildwithclaude.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davepoon/buildwithclaude --skill code-health
Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Made for: Claude Code.

Or install agent-triforce, the plugin that ships this one along with the rest of its 6 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-health

README.md
[![agentmods](https://agentmods.dev/badge/skills/davepoon/buildwithclaude/code-health/github.svg)](https://agentmods.dev/skills/davepoon/buildwithclaude/code-health)
Your own site
<a href="https://agentmods.dev/skills/davepoon/buildwithclaude/code-health"><img src="https://agentmods.dev/badge/skills/davepoon/buildwithclaude/code-health/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-health

Your own site · 80×15
<a href="https://agentmods.dev/skills/davepoon/buildwithclaude/code-health"><img src="https://agentmods.dev/badge/skills/davepoon/buildwithclaude/code-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 370 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.00370
Opus 5.5 $0.00014 $0.00148
Sonnet 5.5 $0.00007 $0.00074
Haiku 4.5 $0.00003 $0.00037

Measured 1mo ago against content hash 0572aa328df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-health scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-triforce/skills/code-health/SKILL.md · 53 lines

What it actually says

Code Health

Runs a comprehensive code health scan using the Centinela (QA) agent.

When to Use This Skill

  • Periodic codebase hygiene check
  • Before a release to ensure no dead code or unresolved debt
  • After a large refactoring to verify cleanliness
  • When onboarding to understand current code quality

What This Skill Does

  1. Runs the SIGN IN checklist
  2. Scans for dead code (unused imports, variables, functions, commented-out blocks, unreachable code)
  3. Checks for outdated and vulnerable dependencies
  4. Detects code smells (long functions, deep nesting, duplication)
  5. Audits TODO/FIXME comments for issue references
  6. Runs the Scan Complete checklist (TIME OUT)
  7. Writes findings to docs/reviews/code-health-{date}.md
  8. Prepares findings handoff to Dev agent

How to Use

Basic Usage

/code-health

Example

User: /code-health

Output: A code health report at docs/reviews/code-health-2026-02-23.md with:

  • Dead code findings (verified, not false positives)
  • Dependency status and vulnerabilities
  • Code smell inventory
  • TODO/FIXME audit
  • Prioritized findings: Critical > Warning > Suggestion

Tips

  • Scans all source directories, not just src/ — includes tests/ and config files
  • Previous scan findings are compared to track recurring issues
  • Findings are verified to avoid false positives from dynamic imports or plugins
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 53 lines · 35 tokens per session scan A 0572aa328df8

Subscribe to this mod's changes

code-health is a skill published in the GitHub repository davepoon/buildwithclaude (3,677 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 370 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

01-sdlc

Orchestrates a request from framing to a draft pull request, autonomous or supervised, isolating implementation, independent review, and final outcome challenge. Use when the user wants to deliver a change end to end. Not for one step.

ai-driven-dev/framework · 52 tokens

05-review

Reviews a change or a diff and says whether it is ready to ship, naming every problem with its fix. Use when the user wants a change checked before it ships. Not for fixing what the review finds, and not for auditing a whole codebase.

ai-driven-dev/framework · 54 tokens

consult-codex

Dual-AI code analysis pairing OpenAI Codex with Claude code-searcher — the lightest consult variant, two citation-verified perspectives. Use for a quick second opinion on a code question.

centminmod/my-claude-code-setup · 44 tokens

00-async-dev

Drive the async-dev pipeline from one entry point, whether setup, run, or review. Use when the user wants to install async dev, run a ready issue, or address PR review comments, or on a webhook trigger. Not for plain status checks.

ai-driven-dev/framework · 56 tokens

code-review

Code review practices with technical rigor and verification gates. Use for receiving feedback, requesting code-reviewer subagent reviews, or preventing false completion claims in pull requests.

secondsky/claude-skills · 35 tokens

02-challenge

Rethink just-completed work against an agreed plan, classifying findings as deal-breaker, suggestion, or correct, with a confidence score. Use to challenge or critically review recent work. Not for line-by-line style review or writing code.

ai-driven-dev/framework · 54 tokens