code-health

code-health is a skill for Claude Code from ArtemioPadilla/agent-triforce. It costs 33 tokens per session (977 once invoked), scanned A, original, MIT.

A codebase health scan covering unused code, technical debt, dependency updates, flaky tests, and other quality problems.

In plain words
What is it for?
Use it to look for unused imports and functions, outdated or vulnerable dependencies, timing-sensitive tests, nondeterministic checks, and orphaned files.
Why use it?
It helps find maintenance and reliability issues before they cause failures or make releases riskier.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: agent in frontmatter.

Good fit Use it to look for unused imports and functions, outdated or vulnerable dependencies, timing-sensitive tests, nondeterministic checks, and orphaned files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/artemiopadilla/agent-triforce/code-health
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 ArtemioPadilla/agent-triforce --skill code-health
Clone the repo
git clone --depth 1 https://github.com/ArtemioPadilla/agent-triforce

Made for: Claude Code.

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/artemiopadilla/agent-triforce/code-health/github.svg)](https://agentmods.dev/skills/artemiopadilla/agent-triforce/code-health)
Your own site
<a href="https://agentmods.dev/skills/artemiopadilla/agent-triforce/code-health"><img src="https://agentmods.dev/badge/skills/artemiopadilla/agent-triforce/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/artemiopadilla/agent-triforce/code-health"><img src="https://agentmods.dev/badge/skills/artemiopadilla/agent-triforce/code-health.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 977 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.
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.00033 $0.00977
Opus 5 $0.00016 $0.00489
Sonnet 5 $0.00007 $0.00195
Haiku 4.5 $0.00003 $0.00098

Measured 11d ago against content hash f0f816fb77cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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.

.claude/skills/code-health/SKILL.md · 86 lines

How it starts

The opening of the file, as written. The whole thing — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run a comprehensive code health scan on the codebase.

Follow these steps:

SIGN IN:

  • Run the SIGN IN checklist from your agent file
  • Note any areas of concern based on past scans

SCAN -- Quality Attribute Assessment (FURPS):

Organize findings by quality attribute category (FURPS model, Hewlett-Packard):

F -- Functionality:

  1. Scan for dead code:
    • Unused imports: ruff check --select F401 src/ or biome lint src/
    • Unused variables/functions: grep for definitions not referenced elsewhere
    • Commented-out code blocks: search for patterns spanning 3+ lines
    • Unreachable code after return/throw/break/continue
    • Files not imported by any other file

R -- Reliability: 2. Scan for flaky test indicators:

  • Tests depending on timing (sleep, setTimeout, fixed delays)
  • Tests sharing mutable state between test cases
  • Tests making real network calls without mocking
  • Tests depending on filesystem paths or system-specific state
  • Non-deterministic assertions (floating point equality without tolerance, random data without seeding)
  1. Check for outdated dependencies:
    • pip list --outdated or npm outdated
    • Known vulnerabilities: pip audit or npm audit

P -- Performance (complexity proxies): 4. Scan for Clean Code violations:

  • Functions longer than 30 lines
  • Files longer than 300 lines
  • Deeply nested code (>3 levels of indentation)
  • Duplicated logic blocks (DRY violations)
  • Primitive obsession (raw strings/ints where a domain type belongs)
  • Feature envy (methods that use another class's data more than their own)
  • God classes (classes with too many responsibilities)

S -- Supportability: 5. Verify architecture compliance:

  • Dependency direction: does business logic depend on frameworks or infrastructure?
  • Layer leakage: are there imports that cross architectural boundaries incorrectly?
  • Screaming Architecture: does folder structure reveal intent?
  1. Check TODO/FIXME comments — do they have issue references?
  2. Check for missing docstrings on public API functions: any function or class without a leading underscore in src/ files that lacks a docstring. Excludes test files and internal helpers (functions starting with _).

Note: U (Usability) is not assessed at code-health level -- this is a product concern owned by Prometeo.

Cost of Quality (COPQ) Classification

Categorize each finding by cost type (Feigenbaum 1956, O'Regan 2019):

  • Prevention cost: Items that prevent defects if addressed (test coverage gaps, missing type hints, missing docstrings)
  • Appraisal cost: Items that affect defect detection capability (flaky tests, weak assertions, inadequate test isolation)
  • Internal failure cost: Defects already present, found internally (dead code, broken imports, architecture violations)
  • External failure cost: Issues that could escape to users if not addressed (security vulnerabilities, missing error handling, unvalidated inputs)

In the code-health report, tag each finding with its FURPS category and COPQ type. Reports heavy on "external failure" items are more urgent than those with mostly "prevention" items.

References: FURPS (Hewlett-Packard), cited in Callejas-Cuervo et al. (2017). COPQ (Feigenbaum 1956), presented in O'Regan (2019) Ch. 9.3.5.

⏸️ TIME OUT — Scan Complete Checklist (DO-CONFIRM):

  • All source directories scanned (not just src/ — also tests/, config files)
  • Dead code findings verified (not false positives from dynamic imports or plugins)
  • Dependency vulnerabilities checked with automated tools
  • Flaky test indicators checked (timing, shared state, network, non-determinism)
  • Findings prioritized: Critical > Warning > Suggestion
  • Previous scan findings compared — are old issues resolved or recurring?

SIGN OUT: 6. Write findings to docs/reviews/code-health-{date}.md 7. Write the Findings Handoff-to-Forja using the communication checklist 8. Run the SIGN OUT checklist from your agent file

Read the full file on GitHub · 86 lines

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. 11d ago First seen · 86 lines · 33 tokens per session scan A f0f816fb77cf

Subscribe to this mod's changes

code-health is a skill published in the GitHub repository ArtemioPadilla/agent-triforce (3 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 977 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-31.

Related

Other skills, from other repositories

skeptical-triage

Reusable 3-round self-challenge + arbiter pattern for filtering false positives from findings/verdicts. Use when the cost of a false-positive gate block exceeds the cost of 4 extra LLM turns.

avelikiy/great_cto · 49 tokens

anti-patterns

Catalogue of known SDLC anti-patterns that greatcto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident).

avelikiy/great_cto · 59 tokens

observability-baseline

Scaffold-time observability so a shipped product is not blind in prod from day one — error capture (Sentry), request-id structured logging, and /healthz + /readyz endpoints. stack-baseline pins Sentry but nothing wires it; this is the wiring. Loaded by app-scaffolder (bake into the scaffold), infra-provisioner (prod…

avelikiy/great_cto · 100 tokens

review-all

Multi-agent code review for diffs (project-agnostic). Covers standards, bugs, security, DRY, smells, perf, tests, API contracts, a11y/i18n. Verifies each finding to eliminate false positives. Use for /review-all, pre-PR/pre-commit review, or auditing uncommitted/staged changes.

ncoevoet/claude-review-all · 74 tokens

x-cr

A software-correctness investigation skill for finding why code behaves differently from what was expected. It uses evidence from code paths, specifications, tests, logs, and changes to assess possible causes.

KtKID/x-dev-pipeline · 183 tokens

x-fix

A bug-fixing skill with separate paths for directly reported bugs, correctness-review findings, and failed verification or quality-gate reports. It records completed fixes and their validation in project reports.

KtKID/x-dev-pipeline · 181 tokens