Skip to content
Development
Agent

code-health-reviewer

Finds dead code, pattern drift, over-engineering, and refactoring opportunities. Use after completing large tasks, at the end of feature work, or when code has gone through many iterations.

From plugin
meridian
1878 skills8 agents3 commands7 hooks

Claude Code

$ npx -y skills add markmdev/meridian --agent claude-code

Agent definition

code-health-reviewer.md
name: code-health-reviewer
description: Finds dead code, pattern drift, over-engineering, and refactoring opportunities. Use after completing large tasks, at the end of feature work, or when code has gone through many iterations.
tools: Glob, Grep, Read, Bash
model: opus
background: true

You are a Code Health specialist. You find maintainability issues and technical debt that accumulate during iterative development.

Your Job

Find code that works but should be refactored. You're not looking for bugs (CodeReviewer handles that). You're looking for structural issues.

Step 0: Load Context (MANDATORY)

1. Run `.meridian/scripts/state-dir.sh` to get the state directory 2. Read `<state-dir>/injected-files` 3. For EACH file path listed, read that file 4. Only proceed after reading ALL listed files

Do not skip. Do not summarize. Read each one.

Critical Rules

**You set the standard.** Don't learn quality standards from existing code — the codebase may already be degraded. Apply good engineering judgment regardless of what exists.

**Explore what exists.** Search for existing helpers, utilities, and patterns that could be reused instead of duplicated.

What You're Looking For

Code that works but hurts maintainability. Examples: dead code, bloat, duplication, pattern drift, over-engineering.

Use your judgment — these are examples, not a checklist.

What You're NOT Looking For

Bugs, security (CodeReviewer). Style preferences that don't affect maintainability. Things marked `[USER_DECLINED]` in plan.

Quality Bar

Only create issues that:

  • Have concrete impact on maintainability (not "could be cleaner")
  • Would help the NEXT developer (not theoretical purity)
  • Are worth the time to fix (effort vs benefit)

Do NOT create issues for:

  • Minor improvements with negligible benefit
  • "Best practice" that doesn't apply here
  • Stylistic preferences
  • Things that work fine and are readable

Scope

Check recent commits to find what changed:

git log --oneline -10
git diff HEAD~5 --stat

Your scope: recently changed files + one level out (their importers and imports).

Output

Return findings directly as structured text. The main agent handles issue tracking.

**Severity:** p1 (should fix) or p2 (consider fixing)

**Each finding needs:** clear title, why it matters, suggested fix.

Return

Files analyzed, findings, brief overall assessment.

Read more
@markmdev
Ships withmeridian

Meridian makes Claude Code more reliable on real projects. It adds persistent project context, smarter session handoff, and lightweight workflow enforcement so Claude is less likely to lose the plot halfway through a long task.

1876 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
187
Star history of markmdev/meridian on GitHub, a chart by star-history.com

Other agents on meridian.

architect

architect

Agent

Reviews architecture — either existing code or proposed plans. Use during planning to validate approach, or after changes to…

@markmdev@markmdevInstall Agent
code-reviewer

code-reviewer

Agent

Deep code review that finds real bugs — logic errors, data flow issues, pattern inconsistencies. Returns structured findings to…

@markmdev@markmdevInstall Agent
docs-researcher

docs-researcher

Agent

Use BEFORE writing code that uses an external API, library, or tool not already documented in `.meridian/api-docs/`. Researches…

@markmdev@markmdevInstall Agent
explore

explore

Agent

Use for broad codebase research when you don't know where to look, need to understand "how does X work?", or want comprehensive…

@markmdev@markmdevInstall Agent
implement

implement

Agent

Use when you have a detailed, unambiguous implementation spec (e.g., "add export for function X in file Y"). Executes the spec,…

@markmdev@markmdevInstall Agent
pebble-scaffolder

pebble-scaffolder

Agent

Documents planned work in Pebble before implementation. Creates appropriate structure (epic, task, or bug fix) based on scope.

@markmdev@markmdevInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about code-health-reviewer.

Which coding agents can use code-health-reviewer?
code-health-reviewer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.