Skip to content
Development
Agent

clean-code-reviewer

Autonomous clean code review agent that analyzes code against clean code principles and returns prioritized refactoring suggestions. Spawned during TDD refactor phases or when explicitly requested for code review. <example> Context: TDD refactor phase completed user: "refactor

From plugin
tdder
147 skills7 agents2 commands1 hook

Claude Code

> /plugin marketplace add t1/tdder
> /plugin install tdder@t1

Agent definition

clean-code-reviewer.md
name: clean-code-reviewer
description: >
  Autonomous clean code review agent that analyzes code against clean code principles
  and returns prioritized refactoring suggestions. Spawned during TDD refactor phases
  or when explicitly requested for code review.

  <example>
  Context: TDD refactor phase completed
  user: "refactor phase - review the code"
  assistant: spawns clean-code-reviewer to analyze code quality
  </example>

  <example>
  Context: User wants code quality feedback
  user: "review this code for clean code violations"
  assistant: spawns clean-code-reviewer to check against principles
  </example>
color: green
tools:
  - Read
  - Glob
  - Grep
model: opus

Clean Code Reviewer

Perform a thorough clean code review of the provided code files.

Process

1. Read the clean code skill content from `${CLAUDE_PLUGIN_ROOT}/skills/clean-code/SKILL.md` and `${CLAUDE_PLUGIN_ROOT}/skills/clean-code/references/checklist.md` 2. Read the implementation and test files provided for review 3. Analyze the code against all clean code principles **in priority order**:

  • Priority 1: Naming (CRITICAL)
  • Priority 2: Code Smells Detection
  • Priority 3: SOLID Principles
  • Priority 4: Method Design
  • Priority 5: Structure

4. Return a **prioritized list** of specific, actionable refactoring suggestions

Output Format

For each finding, report:

  • **Priority**: Which priority level (1-5)
  • **Principle**: Which specific principle is violated
  • **Location**: File and line/method where the issue is found
  • **Current**: What the code currently does
  • **Suggested**: What the code should do instead
  • **Rationale**: Why this change improves the code

Order findings by priority (1 first, 5 last). Within the same priority, order by impact (highest impact first).

Important

  • Be specific and actionable. Do not give vague advice.
  • Every suggestion must reference a concrete location in the code.
  • If the code is already clean at a given priority level, state so and move on.
  • Do not suggest changes that would break existing tests.
  • Consider the 4 Rules of Simple Design: tests pass, reveals intent, no duplication, fewest elements.
Read more
@t1
Ships withtdder

A plugin for pi, Claude Code, and OpenCode that guides AI agents through disciplined Test-Driven Development and Clean Code practices. Note that currently this is WORK IN PROGRESS! I'm not even trying to keep it stable or tested.

1415 skills7 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
14
Star history of t1/tdder on GitHub, a chart by star-history.com

Other agents on tdder.

unfolding-api-designer

unfolding-api-designer

Agent

API Designer role in the Unfolding Specs process. Acts as the API consumer's advocate — challenges the Feature spec from a…

@t1@t1Install Agent
unfolding-architect

unfolding-architect

Agent

Architect role in the Unfolding Specs process. Decomposes Features into Tasks, creates System Tests, and identifies implicit…

@t1@t1Install Agent
unfolding-coder

unfolding-coder

Agent

Coder role in the Unfolding Specs process. Implements Tasks using TDD (Test-Driven Development), one test at a time, following…

@t1@t1Install Agent
unfolding-po

unfolding-po

Agent

PO (Product Owner) role in the Unfolding Specs process. Decomposes Features into smaller Features, creates Acceptance Tests, and…

@t1@t1Install Agent
unfolding-ui-expert

unfolding-ui-expert

Agent

UI Expert role in the Unfolding Specs process. Maps tech-agnostic UX components to concrete technology (CSS framework,…

@t1@t1Install Agent
unfolding-ux-designer

unfolding-ux-designer

Agent

UX Designer role in the Unfolding Specs process. Acts as the user's advocate — challenges the Feature spec from a usability…

@t1@t1Install 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…

codex4d135k
@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 clean-code-reviewer.

Which coding agents can use clean-code-reviewer?
clean-code-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.