AGENT SKILL

review-remediate

Use for the review-then-fix-everything loop on a package or diff — deliver a grounded review report immediately (no scoping questions, no plan-approval), then remediate every finding as tracked numbered items, gating each batch on typecheck/lint/test/build plus an independent Codex pass until clean. Trigger on "review and fix <package>", "remediate the review", "review-fix-verify", or when the user wants a deep review followed by autonomous remediation. Distinct from gstack `review` (pre-landing PR review) and `code-review` (diff only) — this reviews from scratch AND fixes to green.

License 许可
MIT
最近更新
2026-11-01
Stars
★ 2
Forks
1

01 前言 Front Matter

name
review-remediate
version
1.0.0
description
Use for the review-then-fix-everything loop on a package or diff — deliver a grounded review report immediately (no scoping questions, no plan-approval), then remediate every finding as tracked numbered items, gating each batch on typecheck/lint/test/build plus an independent Codex pass until clean. Trigger on "review and fix <package>", "remediate the review", "review-fix-verify", or when the user wants a deep review followed by autonomous remediation. Distinct from gstack `review` (pre-landing PR review) and `code-review` (diff only) — this reviews from scratch AND fixes to green.

03 SKILL.md 正文

Review → Remediate → Verify

The user's highest-value loop, codified. Run it end-to-end without stopping to ask how to proceed.

1. Review (deliver immediately)

  • Produce the review report as your FIRST action — no scoping questions, no ExitPlanMode. State scope assumptions inline.
  • Read the target package/diff in full; ground every finding in file:line evidence.
  • Classify by severity and number each finding so it is trackable: P0 (correctness / security / release-blocker), P1 (should-fix), P2 (nice-to-have) → P0-1, P1-2, …
  • Write the report to docs/code-review/<target>-review-<UTC-timestamp>.md (the docs/ tree is git-ignored working space).

2. Track

  • Create one task per P0/P1 finding (TaskCreate); flip to in_progress / completed as you go.

3. Remediate (batched, priority order)

  • Fix P0 first, then P1. Prefer a root-cause fix plus a regression test over a band-aid.
  • After editing source that ships from dist/, rebuild the affected bundle before continuing — source-only edits do not reach consumers.

4. Gate each batch

  • Run the full gate for touched packages: pnpm typecheck, pnpm lint, pnpm test, pnpm build (or the package's check:all).
  • Separate pre-existing / unrelated failures (report them) from regressions you introduced (fix them). The repo has several documented pre-existing flakes — verify against clean HEAD before blaming your change.

5. Independent verify (Codex)

  • Run an independent Codex pass over the changes (/codex:review, or a scoped read-only codex exec — avoid --uncommitted, which times out here).
  • Fix everything it legitimately flags; re-run the gate. Iterate until Codex is clean AND all gates pass with zero new test failures.
  • If Codex is unavailable (usage limit / timeout), say so explicitly and lean on the gates.

6. Report

  • Summarize: findings closed (by id), gate results, Codex verdict, and any pre-existing failures documented separately. Stop only when every gate is green.

Leave commits to the user — this repo: never commit.

04 同仓库更多 Skills

ancyloce
ancyloce/anvilkit-studio

react-doctor

Use when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.

前端开发
★ 2
ancyloce
ancyloce/anvilkit-studio

review-fixes

Close out an EXISTING code-review findings report — one subagent per finding, each with a regression test — then regenerate EN/zh/ja/ko docs, run all gates, and verify no stale or unexported symbols remain. Trigger on "/review-fixes", "fix all N review findings", "close the review findings", or when the user hands over a findings report to remediate. Distinct from review-remediate, which produces the review itself first — this skill starts from a report that already exists.

★ 2
ancyloce
ancyloce/anvilkit-studio

release-prep

Pre-release verification + go/no-go checklist for publishing @anvilkit packages. Detects the release surface (main workspace fixed-group vs components submodule), runs changeset status and the check:all release gates, enforces this repo's publish gotchas (version.ts drift, ui peer ranges, never-publish canvas-templates, bundle/api-snapshot), then hands the exact publish command to the user. Use when asked to "prep a release", "check release readiness", "/release-prep", or before cutting a version. Does NOT commit or publish.

★ 2
ancyloce
ancyloce/anvilkit-studio

react-doctor

Use when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.

前端开发
★ 2
ancyloce
ancyloce/anvilkit-studio

pre-refactor

暂无简介

代码审查
★ 2
ancyloce
ancyloce/anvilkit-studio

phase-execute

Autonomous phase runner for numbered plans (docs/plans/*, docs/prd/*): scoped gates per task, full gate only at phase boundaries, checkpoint to .claude/state/phase-run.json after every task so a run resumes at the exact next task, edit-guard.mjs against concurrent writers, explicit E2E servers, flaky quarantine, deliverables report at phase end. Use for "execute phase X of <plan>", "drive the next phase", "phase-execute <plan>", "resume the phase", or "dry-run phase X".

人力资源测试与质量
★ 2