/corgi:qualityfrom corgi
Raises code quality by auditing repos for real defects: wrong answers, silent failures, concurrency bugs, security issues, and tests that cannot fail. Prioritizes fixes by severity with proof.
Ships in corgi. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read ../_shared/conventions.md first (finish what you start, attribution, unattended runs).
Done when: the baseline was taken and run again with nothing worse, every fix has its proof, and the report lists what was found, fixed and left, each with a reason.
Quality is not tidy code. It is how often the thing breaks, how fast a person notices, and how safely the next change lands. A pass that renames things and leaves a silent failure made the repo look better and left it no safer. Hunt what hurts people first; style comes last or never.
scope ──▶ baseline ──▶ hunt by kind ──▶ rank ──▶ fix one, prove it ──┐
▲ │
└── next ◀────┤
report ◀── baseline again ◀───────┘
git log --since=3.months --name-only --format= | sort | uniq -c | sort -rn | head -20. Churn plus bug-fix commits marks where defects live.Read ../_shared/second-reviewer.md for the failure kinds that live outside a diff. Write every
finding as a scenario: who does what, in which order, what breaks. "Possible race" is not a finding.
Candidates, adapt to the stack. Read each hit: some are fine.
grep -rnE 'catch *(\([^)]*\))? *\{ *\}|except: *pass|_ = err\b|\.catch\(\(\) *=> *(undefined|null|\{\})\)' src
grep -rnE 'TODO|FIXME|HACK|\.skip\(|\bxit\(|t\.Skip\(' src
grep -rnE 'sleep\(|setTimeout\(.*[0-9]{3,}|time\.Sleep' src --include='*test*'
grep -rnE '(password|secret|token|api_?key) *[:=] *["'"'"'][^"'"'"']{8,}' src
Then the stack's own tools, when the repo has them: go vet, staticcheck, npm audit, bun outdated, knip, ruff, swiftlint.
Rank by harm times how likely, divided by cost to fix. Fix from the top.
Run the baseline again. Nothing may be worse: same tests plus new ones, no new lint, build green. Then one short table and the numbers:
fixed API retried a charge after a timeout: a second click billed twice test + idempotency key
left orders list loads 4000 rows on open: 1.8 s on a phone a day's work, needs paging
none tests: 412 → 431, all pass; lint 3 → 0; audit 2 high → 0
Say plainly what you did not check: real devices, production data, load.
Read from 60 real sessions. Where a person had to step in, it was rarely the code. It was these:
../_shared/conventions.md has the rule for each.
Google, what to look for in a code review: tests that fail when the code breaks, no over-engineering, match the surrounding code. Google Testing Blog, where flaky tests come from, and Luo et al., an empirical analysis of flaky tests: most fixes are async waits.
review for a PR or MR, complexity for the function that is a jungle.risk to score a change, unslop for how the product looks and feels.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub andriiklymiuk/corgi --plugin corgi33 skills in this plugin
/agentUse for corgi agent mode: Remote Control from a phone, the session board ("who is waiting on me"), watching trackers and PRs ("tell me when someone comments"), why a watch fired, and handoffs ("leave a handoff for ABC-7"). NOT compose authoring (corgi), starting a stack (run), debugging (debug)./alignUse when the user says "align", "let's agree first", or a request can be read two ways before any code. Reaches a shared understanding cheaply, then codes. NOT a plan gate or a long interview./autopilotUse for a SUPERVISED loop that drains the ticket queue into draft PRs: "autopilot", "keep shipping the queue", "drain the backlog overnight". One spec gate per batch, never merges. NOT a single batch (/corgi-queue)./before-afterUse to prove a visual change against what it replaced: "before and after", "screenshot comparison", "attach screenshots to the PR". Captures the same screen on the base branch and yours. NOT a design match (design-parity) or store shots (mobile-screenshots)./budgetUse for "how much budget do I have", "can I start another task", "when does the limit reset". Reads `corgi agent usage --json`, answers in numbers, suggests `corgi agent carry` near a limit./ciUse to put a corgi stack in CI or run e2e across repos: "set up CI for this workspace", "wire this to GitHub Actions/GitLab CI", "full-stack e2e on the PR". NOT compose authoring, local runs, broken stacks or PR review.Other plugins' skills for the same job