code-health-check

code-health-check is a skill for Claude Code from myclaude-sh/myclaude-creator-engine. It costs 63 tokens per session (1,682 once invoked), scanned C, original, MIT.

A codebase health review that checks a software project for unused code, outdated dependencies, missing tests, security exposure, and overly complex areas.

In plain words
What is it for?
Use it before a release, during planning, or when joining an unfamiliar project. It checks overall structure rather than investigating a live runtime bug or performing a dedicated security test.
Why use it?
It turns scattered maintenance concerns into one scored report with the most important fixes ordered first.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it before a release, during planning, or when joining an unfamiliar project. It checks overall structure rather than investigating a live runtime bug or performing a dedicated security test.

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

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-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/myclaude-sh/myclaude-creator-engine/code-health-check/github.svg)](https://agentmods.dev/skills/myclaude-sh/myclaude-creator-engine/code-health-check)
Your own site
<a href="https://agentmods.dev/skills/myclaude-sh/myclaude-creator-engine/code-health-check"><img src="https://agentmods.dev/badge/skills/myclaude-sh/myclaude-creator-engine/code-health-check/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-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/myclaude-sh/myclaude-creator-engine/code-health-check"><img src="https://agentmods.dev/badge/skills/myclaude-sh/myclaude-creator-engine/code-health-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,682 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00063 $0.01682
Opus 5 $0.00032 $0.00841
Sonnet 5 $0.00013 $0.00336
Haiku 4.5 $0.00006 $0.00168

Measured 11d ago against content hash f140c946e730, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

code-health-check scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- WHY: D5 (Question System) — If scope is ambiguous, ask before running a potentially expensive analysis on the wrong directory. -->
references/exemplars/code-health-check/SKILL.md · 186 lines

How it starts

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

Code Health Check

Automated codebase health analysis with scored report and prioritized fixes.

When to use: Before a release, during sprint planning, onboarding to a new codebase, or anytime you need a structured quality snapshot.

When NOT to use: For runtime debugging (use a debugger). For security-specific audits (use a dedicated security tool). This is a structural health check, not a pentest.


Activation Protocol

Before running any checks:

  1. Load check definitions: Read references/health-checks.md
  2. Load scoring: Read references/scoring-methodology.md
  3. Detect project type: Glob for package.json, pyproject.toml, Cargo.toml, go.mod
  4. Scope the check:
    • If $ARGUMENTS provided, use as path scope
    • If not, use current working directory
  5. Verify it's a code repo: Check for .git/ or source files
    • If no code found: "This doesn't appear to be a codebase. Point me to a project directory."

Question System

Input Required If Missing
Target path Yes Ask: "Which directory should I analyze?"
Depth No Default: full (all 5 dimensions)
Exclusions No Default: node_modules, .git, dist, build, vendor

Core Instructions

Run 5 health dimensions in sequence. Each produces a 0-100 score.

Dimension 1: Dead Code (weight: 15%)

# Find unused exports
grep -r "export " --include="*.ts" --include="*.js" | # extract export names
# Cross-reference with imports across codebase
# Unused export = dead code candidate
  • Glob all source files
  • Extract exported symbols (functions, classes, constants)
  • Grep for imports/usage of each symbol
  • Score: 100 - (dead_exports / total_exports × 100)

Read the full file on GitHub · 186 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 186 lines · 63 tokens per session scan C f140c946e730

Subscribe to this mod's changes

code-health-check is a skill published in the GitHub repository myclaude-sh/myclaude-creator-engine (25 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 1,682 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). 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

coding-best-practices

Reviews Swift/iOS code for adherence to modern Swift idioms, Apple platform best practices, architecture patterns, and code quality standards. Use when user mentions best practices, code review, clean code, refactoring, or wants to improve code quality.

rshankras/claude-code-apple-skills · 55 tokens

release-review

Senior developer-level release review for macOS/iOS apps. Identifies security, privacy, UX, and distribution issues with actionable fixes. Use when preparing an app for release, want a critical review, or before App Store submission.

rshankras/claude-code-apple-skills · 49 tokens

contribute

Complete contribution workflow using git-town. Create branch → commit → PR → ship. Preflight at every step.

terrylica/cc-skills · 25 tokens

pre-ship-review

Run a structured quality review before shipping code at any checkpoint such as PRs, releases, or milestones. Use whenever the user says.

terrylica/cc-skills · 32 tokens

generic-react-code-reviewer

Review React/TypeScript code for bugs, security vulnerabilities, performance issues, accessibility gaps, and CLAUDE.md workflow compliance. Enforces TypeScript strict mode, GPU-accelerated animations, WCAG AA accessibility, bundle size limits, and surgical simplicity. Use when completing features, before commits, or…

travisjneuman/.claude · 71 tokens

code-clone-assistant

Detect and refactor code duplication with PMD CPD. TRIGGERS - code clones, DRY violations, duplicate code.

terrylica/cc-skills · 33 tokens