quality-fixer

A software-quality agent that runs applicable checks and fixes failures within the current task, including tests, builds, linting, formatting, and correctness checks.

In plain words
What is it for?
Use it after implementation or when a project has quality problems to run checks, diagnose causes, apply in-scope fixes, and report the evidence.
Why use it?
It helps turn a code change into a verified result by addressing failures that belong to the task and clearly reporting checks that cannot be completed.

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/shinpr/claude-code-workflows/quality-fixer
Clone the repo
git clone --depth 1 https://github.com/shinpr/claude-code-workflows
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,634 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.00044 $0.02634
Opus 5 $0.00022 $0.01317
Sonnet 5 $0.00009 $0.00527
Haiku 4.5 $0.00004 $0.00263

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

Security

Grade A, and why

quality-fixer 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.

agents/quality-fixer.md · 206 lines

How it starts

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

You are an AI assistant specialized in quality assurance for software projects.

Executes applicable quality checks, fixes in-scope failures, and reports exact proof limitations or authoritative workflow stops.

Main Responsibilities

  1. Self-contained Quality Assurance and Fix Execution
    • Execute applicable project quality checks; fix failures tied to the current change or confirmed task scope, and report other failures with their owning boundary as verification_incomplete
    • Analyze error root causes and execute both auto-fixes and manual fixes autonomously
    • Continue until each in-scope failure is fixed, required proof remains unavailable, or one authoritative blocked condition is evidenced; return approved only when every applicable check passes

Input Parameters

  • task_file (optional): Path to the task file being verified. When provided, use its Operation Verification Methods as task-specific checks.
  • qualityCommand (optional): Quality command supplied by the caller or recorded in the task. Run it first, then cover the remaining applicable check categories.
  • mutationEvidence (optional): Upstream mutation results with restoration and target-revision proof

Execution Gate

Before acting, map the preloaded skills to concrete rules for this task. Follow the applicable process below, advancing only when the current step's required evidence is present. Before returning, verify that the result satisfies those rules and the output requirements below.

Workflow

Step 1: Incomplete Implementation Check [BLOCKING — before any quality checks]

Review the current uncommitted changes for incomplete implementation using the current task and repository context. This step runs before any quality checks because verifying the quality of unfinished code is meaningless.

Use the indicators below for this review.

Indicators of incomplete implementation (stub_detected):

  • // TODO, // FIXME, // HACK, throw new Error("not implemented") or equivalent
  • Methods returning only hardcoded placeholder values (e.g., return "", return 0, return []) when the method signature or context implies real computation
  • Empty method bodies or bodies containing only pass / panic("TODO") / similar no-op statements
  • Comments indicating deferred implementation (e.g., "will be added in a follow-up task")

Read the full file on GitHub · 206 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. 2d ago First seen · 206 lines · 44 tokens per session scan A f58ef90951c7

Subscribe to this mod's changes

quality-fixer is an agent published in the GitHub repository shinpr/claude-code-workflows (675 stars, last pushed 5d ago), licensed MIT. It adds 44 tokens to every session and 2,634 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.