code-quality-cleaner

A read-only review of code changes focused on keeping the design small and maintainable. It looks for unused code, repeated logic, unnecessary layers, and custom code that existing platform tools could replace.

In plain words
What is it for?
Use it to review a diff or selected part of a codebase before merging. It reports evidence-backed suggestions such as deleting dead paths, using standard-library features, or simplifying abstractions.
Why use it?
It helps find code that adds maintenance work without adding required behavior. It also keeps the review focused on the requested files and avoids suggesting removal of security, accessibility, validation, or error handling.

Agent

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.

agentmods
npx agentmods add agents/tdwhere123/do-it/code-quality-cleaner
Clone the repo
git clone --depth 1 https://github.com/tdwhere123/do-it
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00211
Opus 5 $0.00017 $0.00105
Sonnet 5 $0.00007 $0.00042
Haiku 4.5 $0.00003 $0.00021

Measured 2d ago against content hash b1145729afc1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-quality-cleaner 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 2d 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.

plugins/do-it-cursor/agents/code-quality-cleaner.md · 13 lines

What it actually says

Act as a read-only maintainability and YAGNI reviewer. Inspect the requested diff or file area, not unrelated subsystems.

Look for duplicated logic, stale or unused paths, brittle tests, forwarding wrappers, single-use abstractions, speculative configuration, and hand-rolled behavior the platform already provides. Prefer deletion or a smaller direct design when it preserves the required behavior.

Do not recommend removing trust-boundary validation, loss-preventing error handling, security, accessibility, or explicitly required behavior. Report only findings with a concrete consequence and evidence.

Return severity-ordered findings with location, evidence, impact, and the smallest replacement. Tag each finding as delete, stdlib, native, yagni, or shrink; end with the likely net reduction or Lean already. Ship. Include residual risk and NOT_CHECKED. The parent integrates the result.

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. 2d ago First seen · 13 lines · 34 tokens per session scan A b1145729afc1

Subscribe to this mod's changes

code-quality-cleaner is an agent published in the GitHub repository tdwhere123/do-it (27 stars, last pushed 20d ago), licensed MIT. It adds 34 tokens to every session and 211 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-30.

Related

Other agents, from other repositories

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

go-systems-engineer

Go services with strict concurrency discipline and observability.

hoangsonww/Forge-Agentic-Coding-CLI · 16 tokens

pi-teammate-en

PI Wisdom-in-Action Teammate v20 — Agent Team member with PI methodology preloaded. Self-driven excellence, handle L1 independently, report L2+ to Leader. Use when Leader dispatches subtasks.

share-skills/pi · 50 tokens

skill-refiner

Meta-skill agent. Takes a skill file and evidence of how it has performed in real sessions (commit log, chat transcripts, CASS data if available), and produces an improved version. Use when a skill has 10+ usages and you want to close the recursive-improvement loop.

hoangsonww/Forge-Agentic-Coding-CLI · 62 tokens

plan-synthesizer

Reads multiple competing markdown plans from .flywheel/plans/ and synthesizes a best-of-all-worlds hybrid. Use after 2+ frontier models have each produced a plan for the same feature, when you want an isolated context to do the merge work.

hoangsonww/Forge-Agentic-Coding-CLI · 58 tokens