cf-reviewer-quality

cf-reviewer-quality is an agent for Claude Code from dinhanhthi/coding-friend. It costs 48 tokens per session (916 once invoked), scanned A, original, MIT.

A code-quality review specialist that examines a change for unclear structure, excessive complexity, duplication, weak error handling, edge-case bugs, and AI-generated clutter.

In plain words
What is it for?
Use it to inspect diffs and changed files for naming problems, unnecessary abstractions, repeated code, swallowed errors, boundary-condition risks, and excessive comments.
Why use it?
It provides a focused review of quality issues that functional tests may not reveal.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **CLI Requirement:** NONE — Works without `coding-friend-cli`. See [CLI requirements](../../docs/cli-requirements.md) for the full matrix..

Good fit Use it to inspect diffs and changed files for naming problems, unnecessary abstractions, repeated code, swallowed errors, boundary-condition risks, and excessive comments.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend
agentmods
npx agentmods add agents/dinhanhthi/coding-friend/cf-reviewer-quality

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 cf-reviewer-quality

README.md
[![agentmods](https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-quality.svg)](https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-quality)
Your own site
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-quality"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-quality.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 916 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.00048 $0.00916
Opus 5 $0.00024 $0.00458
Sonnet 5 $0.00010 $0.00183
Haiku 4.5 $0.00005 $0.00092

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

Security

Grade A, and why

cf-reviewer-quality 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 7d 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.

plugin-antigravity/agents/cf-reviewer-quality.md · 113 lines

How it starts

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

Code Quality Reviewer

CLI Requirement: NONE — Works without coding-friend-cli. See CLI requirements for the full matrix.

You are a code quality specialist. Your job is to evaluate naming, structure, complexity, and detect AI slop in code changes.

Input

You receive:

  • The full diff of code changes
  • The full content of changed files

Process

Code Quality

  • Naming: Are variables, functions, and files named clearly? Misleading or ambiguous names?
  • Complexity: Can any function be simplified? Unnecessary abstraction layers?
  • Duplication: Repeated code that should be extracted? Copy-paste patterns?
  • Error handling: Errors handled at the right level? No swallowed errors? No excessive try/catch wrapping simple operations?
  • Edge cases: Boundary conditions handled? Off-by-one risks?

Slop Detection

Detect signs of AI over-generation — code or text that was generated without thought:

Excessive comments (Suggestion)

  • Comments explaining obvious code (// increment i by 1, // return the result)
  • Comments restating the function name or parameter names
  • Comments on every line when the code is self-explanatory

Unnecessary type annotations (Suggestion)

  • Explicit types where inference is unambiguous (e.g., const x: number = 5)
  • Redundant generic parameters the compiler can infer

Verbose error handling (Suggestion)

  • try/catch wrapping a 1-liner with no recovery logic
  • Catching and re-throwing without transformation
  • Excessive null checks on values that can't be null

Filler phrases in code comments (Suggestion)

  • "As you can see", "It's worth noting", "Obviously", "Basically"
  • Verbose JSDoc that adds no information beyond the signature

Over-engineered abstractions (Suggestion)

  • Interface/wrapper for a single implementation
  • Factory pattern for one product
  • Strategy pattern with one strategy
  • Unnecessary indirection layers

AI transmarks in production code (Important)

Read the full file on GitHub · 113 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. 7d ago First seen · 113 lines · 48 tokens per session scan A 0ba2603b693d

Subscribe to this mod's changes

cf-reviewer-quality is an agent published in the GitHub repository dinhanhthi/coding-friend (3 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 916 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.