code-health

code-health is a skill for Claude Code, Codex 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 CodeCodex

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

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,415 stars · on GitHub

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.

agentmods
npx agentmods add skills/davepoon/buildwithclaude/code-health
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, Codex.

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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00035 $0.00370
Opus 5 $0.00017 $0.00185
Sonnet 5 $0.00007 $0.00074
Haiku 4.5 $0.00003 $0.00037

Measured 5d ago against content hash 0572aa328df8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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. 5d 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,415 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 370 once invoked, about $0.0002 per session on Opus 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

aidd-dev:08:for-sure

Iterative agent loop that tracks attempts and retries until a success condition is met. Use when the user says "for sure", "make sure", "keep trying until", "loop until done", "don't stop until", or needs guaranteed completion of a task with explicit success criteria.

ai-driven-dev/framework · 66 tokens

06-product-brief

Produces a concise Product Brief before requirements. Use when the user wants to frame or revisit a product opportunity and how it will be validated. Not for requirements, technical design, or planning.

ai-driven-dev/framework · 42 tokens

bun-test-mocking

Use for mock functions in Bun tests, spyOn, mock.module, implementations, and test doubles.

secondsky/claude-skills · 25 tokens

api-response-optimization

Optimizes API performance through payload reduction, caching strategies, and compression techniques. Use when improving API response times, reducing bandwidth usage, or implementing efficient caching.

secondsky/claude-skills · 36 tokens

domain-model

Creates or modifies domain types in src/domain/ — value objects, discriminant unions, and aggregate roots. Use when adding a new domain concept, defining invariants for an existing type, or placing a shared discriminant union that is used across multiple use-cases. Do NOT use for orchestrating I/O or business logic …

ai-driven-dev/framework · 88 tokens

aidd-async-dev:02:run

Runs one async development pipeline cycle: polls ready GitHub issues, resolves dependencies, locks the issue, delegates implementation to whichever SDLC capability is loaded at runtime, then writes audit log and SIEM webhook. Use when the user (or CI / cron / @claude mention / project board move) says "run async dev"…

ai-driven-dev/framework · 0 tokens