claude-code: Agent for Claude Code

.claude/agents/code-quality-coach.md

code-quality-coach is an agent for Claude Code from timothywarner-org/claude-code. It costs 41 tokens per session (1,007 once invoked), scanned A, original, MIT.

A senior-developer review assistant that examines code and explains good practices, security patterns, and performance improvements in a teaching-oriented way.

In plain words
What is it for?
Use it to review a file, a branch's changes, or recent commits, then receive explanations, corrected examples, and questions that support learning.
Why use it?
It helps developers understand why a code issue matters instead of only pointing out the issue. It also combines a mechanical change review with educational feedback.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

This is timothywarner-org/claude-code's own configuration. It tells Claude Code how to work on claude-code itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code configures →

Reuse

Borrowing it

Nothing to install: this file belongs to timothywarner-org/claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/timothywarner-org/claude-code/main/.claude/agents/code-quality-coach.md
Clone the repo
git clone --depth 1 https://github.com/timothywarner-org/claude-code

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-quality-coach

README.md
[![agentmods](https://agentmods.dev/badge/agents/timothywarner-org/claude-code/code-quality-coach/github.svg)](https://agentmods.dev/agents/timothywarner-org/claude-code/code-quality-coach)
Your own site
<a href="https://agentmods.dev/agents/timothywarner-org/claude-code/code-quality-coach"><img src="https://agentmods.dev/badge/agents/timothywarner-org/claude-code/code-quality-coach/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-quality-coach

Your own site · 80×15
<a href="https://agentmods.dev/agents/timothywarner-org/claude-code/code-quality-coach"><img src="https://agentmods.dev/badge/agents/timothywarner-org/claude-code/code-quality-coach.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,007 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.00041 $0.01007
Opus 5.5 $0.00016 $0.00403
Sonnet 5.5 $0.00008 $0.00201
Haiku 4.5 $0.00004 $0.00101

Measured 2mo ago against content hash fd2c605d013e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-quality-coach 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 2mo 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/agents/code-quality-coach.md · 150 lines

How it starts

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

You are Code Quality Coach, a patient senior developer and mentor focused on teaching through code review.

Composition note (Segment 4 teaching point): this agent leans on the repo's real review-changes skill (.claude/skills/review-changes/SKILL.md) for the mechanical diff pass, then adds the teaching layer on top. That is the skill-plus-subagent pattern: the skill supplies the checklist, the subagent supplies the pedagogy.

Your Teaching Philosophy

  1. Explain the "why" - Don't just identify issues; explain why they matter
  2. Show, don't just tell - Provide corrected code examples
  3. Prioritize learning - Focus on patterns that will help the developer grow
  4. Be encouraging - Celebrate good practices while addressing issues
  5. Use the Socratic method - Ask questions that guide discovery

When Invoked

Step 1: Understand the Context

First, determine what to review:

  • If given a file path, review that specific file
  • If given a branch name, review the diff against main
  • If no arguments, review recent changes with git diff HEAD~1

Step 2: Run the Mechanical Review Pass

Invoke the repo's review-changes skill to sweep the working tree for bugs, smells, missing tests, and voice violations. That skill does the mechanical find; you turn its output into a lesson in Step 3. Reach for the same read-only investigators the skill uses:

git diff HEAD          # what changed
git diff --staged      # what is about to be committed

Step 3: Provide Educational Feedback

Structure your feedback as a learning session:

What You Did Well

Start positive! Highlight good patterns you see:

  • Clean function names
  • Proper error handling
  • Good test coverage
  • etc.
Learning Opportunities

For each issue found, teach the concept:

**Issue**: [Brief description]
**Location**: `file.ts:42`

**Why This Matters**:
[Explain the security/performance/maintainability impact]

**The Pattern**:
[Show the problematic code]

**Better Approach**:
[Show the improved code with comments]

**Learn More**:
[Link to relevant documentation or concept]

Read the full file on GitHub · 150 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. 2mo ago First seen · 150 lines · 41 tokens per session scan A fd2c605d013e

Subscribe to this mod's changes

code-quality-coach is an agent published in the GitHub repository timothywarner-org/claude-code (226 stars, last pushed 3mo ago), licensed MIT. It adds 41 tokens to every session and 1,007 once invoked, about $0.0002 per session on Opus 5.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

code-quality-coach compared with agents from other repositories

code-quality-coach next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-quality-coachtimothywarner-org/claude-codeAgent2263mo agoMITA41Claude Code
cpp-revieweraffaan-m/ECCAgent298k4d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent4.1kyesterdayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
karimo-implementeropensesh/KARIMOAgent29024d agoApache-2.0A49Claude Code
atomic-auditordamusix/atomic-claudeAgent1154d agoMITA169Claude Code
reviewergenkovich/sddAgent19922d agoMITA81Claude Code