质量审查与修复闭环
quality-review-fix-loop
通过质量闭环收尾一项专项工作:绿色基线提交、只读评审专家组、修复代理(fixer-agent)路由、豁免处理、零必需阻断项。当被要求运行仓库质量检查、修复所有警告/错误、关闭一项专项工作,或循环调用评审者/修复者直到没有必需的问题遗留时使用。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 80
- Forks
- 14
01 前言 Front Matter
- name
- quality-review-fix-loop
- metadata
- { "status": "active", "version": "0.1.0" }
- description
- Close an initiative with a quality loop: green baseline commit, read-only reviewer panel, fixer-agent routing, waivers, zero required blockers. Use when asked to run repo quality, fix all warnings/errors, close an initiative, or loop reviewers/fixers until no required findings remain.
02 资源文件 3
- 参考文档agents/openai.yaml393 B
- 参考文档references/reviewer-roles.md3.3 KB
- 参考文档references/templates.md4.4 KB
03 SKILL.md 正文
Quality Review Fix Loop
Use near the end of a repository initiative. The goal is not endless polishing; it is a green, committed, review-ready repo state with zero required blockers in the chosen scope.
Template Header
Fill or infer before starting:
repo_root:git rev-parse --show-toplevelinitiative_summary: one paragraph on the initiative being closedbase_ref:origin/mainunless the user says otherwisereview_scope: changed files plus directly affected public APIs, package boundaries, docs, tests, generated configs, and manifestszero_gate: zero required blocker findings from the reviewer panelloop_budget: 3 reviewer/fixer rounds before escalatingcommit_policy: green baseline commit before loops; local follow-up commits for fixes; no push/PR unless explicitly askedwaiver_policy: a required blocker may remain only with an explicit waiver record (seereferences/templates.md)publish_policy: local commits only unless the user explicitly asks to push, open a PR, or touch GitHub review threads
beep-effect Defaults
For non-beep-effect repos, replace this section with local equivalents.
Source of truth — read what is relevant to the changed surface before reviewing; never review from generic taste:
- root and package-local
AGENTS.md standards/ARCHITECTURE.mdplus the numbered doctrine index understandards/architecture/(00-15;README.mdcovers posture and drift buckets)standards/effect-laws-v1.md,standards/effect-first-development.md.patterns/jsdoc-documentation.md- inventories/allowlists:
standards/schema-first.inventory.jsonc,standards/effect-laws.allowlist.jsonc, and the JSDoc inventory report thatbun run beep quality jsdoc-inventorywrites under the ignored .beep/ci/ directory - package READMEs;
packages/architecture-lab/*andapps/architecture-lab-proof/test/as executable proof
Architecture docs are target doctrine. Classify code/doctrine disagreements as
target-doctrine-violation | transitional-compatibility |
cleanup-on-touch | forbidden-in-new-work | pending-automation |
missing-doctrine. Repo-wide inventories are context, not automatic blockers:
blockers only when this initiative touched, worsened, or depended on them.
Quality Commands
Run from repo_root. Baseline:
bun run lint:fix
bun run audit:github quality
Portable fallback when a repo has no all-up quality script: bun run lint:fix,
check, build, test, audit, lint. In beep-effect,
bun run audit:github quality covers build, check, lint, docgen
generate/aggregate, test, repo sanity, and changeset status; ensure the local
docgen lane is included for docs/export changes. Warnings and policy
diagnostics are actionable — do not call the baseline green while relevant
warnings remain.
Operating Rules
- Inspect the worktree first; never revert unrelated user changes.
- Use the current checkout as truth for commands and package surfaces.
- Keep scope tied to this initiative; historical repo-wide debt is not a blocker unless the initiative touched it or made it worse.
- Reviewer/critic agents are read-only: inspect, run non-mutating commands, report. They must not edit.
- Fixer agents edit only their assigned write surface and are told other agents share the codebase.
- Prefer focused fixes; add abstractions only when they remove real duplication or match an established local pattern.
- Evidence beats vibes: a blocker needs concrete evidence and a concrete unblock action. Optional improvements go to backlog unless they protect correctness, doctrine, release safety, or maintainability in changed scope.
Phases
Phase 0 — Grounding. Confirm repo_root, branch, dirty worktree,
base_ref. Capture the changed surface (git status --short,
git diff --name-status {{base_ref}}...HEAD, --stat). Summarize the
initiative in 3-6 bullets (intent, surfaces touched, public changes, risks,
known unrelated dirty files). Read the relevant source-of-truth docs.
Phase 1 — Baseline quality and commit. Run the baseline commands, fix every relevant failure or warning, rerun until green, then make a local Conventional Commit. Record SHA, commands run, out-of-scope failures verified, and remaining pre-existing inventory debt. Do not start reviewer loops before a green committed baseline (unless the user changes commit policy).
Phase 2 — Read-only reviewer panel. Launch the 10 reviewer roles in
references/reviewer-roles.md in parallel where possible, each given the
initiative summary, base commit, changed surface, source-of-truth list, and
the inventory item format from references/templates.md. Reviewers stay
read-only, cite standards and file/command evidence, classify findings
(blocking | non-blocking | question | note), separate changed-scope
blockers from historical debt, and return 0 required findings when clean.
Phase 3 — Triage and fixer routing. Merge reviewer output into one
inventory: dedupe; reject findings without evidence or an actionable fix;
reclassify out-of-scope historical debt as backlog; group blocking findings
by write surface (source package, docs/standards, tests, generated
config/metadata, tooling); assign fixers only to non-overlapping groups using
the fixer prompt template in references/templates.md.
Phase 4 — Verification round. Review each patch, resolve conflicts while
preserving unrelated changes, run item-level acceptance commands, rerun the
baseline, commit (Conventional Commit), then relaunch the reviewer panel on
the new commit. Repeat Phases 2-4 until zero required blockers, every
remaining blocker has a waiver record, or loop_budget is exhausted — then
stop and report remaining blockers, why, options, and a recommended action.
References
references/reviewer-roles.md— the 10 reviewer roles and reviewer contractreferences/templates.md— inventory item format, severity calibration, fixer prompt, waiver/backlog records, final response format
Do not say the repository is ready if required blockers remain without waiver or baseline quality is red.
04 同仓库更多 Skills
alchemy-provider
Bring up a new Alchemy cloud provider (its own `@alchemy.run/<provider>` package under packages/<provider>) end to end — credentials, a distilled SDK, resources, bindings, live tests, and the patch loop that feeds live-test failures back into distilled — or extend an existing provider with a new service, or bring an existing provider up to the bar (gap audit, then waves). Use for "add a <X> provider", "create an alchemy provider for <X>", "port <X> to alchemy", "add <service> to the <X> provider", "bring the <X> provider up to par", or any work that needs a distilled SDK plus Alchemy resources tested against a live API.
alchemy-domain
Build backends with @alchemy.run/domain (domain-driven design on Effect) - turn requirements into aggregates, commands, events, rejections, views, policies, sagas, projections, streams, queries, external systems and Apis; lay them out in a monorepo (domain / server / web packages, kind-suffixed files); test them with stories; host them on Durable Objects (Cloudflare, Rivet or Effect Cluster) with alchemy; and drive them from a foldkit frontend. Use when designing or changing an @alchemy.run/domain model, adding a building block, wiring hosting or a frontend, or reviewing such code.
update-harnesses
Update every agent harness on every fleet host: T3 Code, Codex, Claude Code, Grok Build, Kimi Code, Junie, Cursor Agent and Muse on DankStation, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl and the grok-bot VM, plus the desktop apps (ChatGPT and Claude Desktop on DankStation and grok-bot; Cursor and Kimi Desktop on DankStation). Use on `/update-harnesses`, when a harness is out of date somewhere, or to audit which versions and install methods each host runs.
auth-environments
Sign Claude Code in to a chosen Claude subscription on every linked T3 fleet host (grok-bot, beep-worker, dankserver, tbk-worker, tom-pc-1-wsl). Use when a Claude account hits its weekly limit, when `bun run beep accounts` shows the fleet's account used up, or on `/auth-environments`. Opens each host's OAuth page and a masked KDE code dialog together and verifies the admitted account.
shadcn 技能来源校验
shadcn
用于 shadcn 技能不可变来源(provenance)的固定装置(fixture)。
QA 库存判定
qa-inventory-judge
暂无简介