Skip to content
Back to skills

Autopilot Fix Review

ASecurity

Fix the findings in the REVIEW.md that an autopilot plan's final review task wrote — check each finding against the code, triage it with the user (fix, decide, follow-up task or reject), fix the confirmed ones in the plan's worktree with one commit per fix on autopilot/<plan-id>, re-run the final verification, and log what happened to every finding in REVIEW-FIXES.md. Use when the user runs /autopilot-fix-review or asks to fix, address or work through the review findings of an autopilot run.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
toolsgogitapi

Works with

  • terminal
  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Timothy1102/claude-autopilot --skill autopilot-fix-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Autopilot Fix Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Autopilot Fix Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timothy1102-autopilot-fix-review/badge)](https://www.skillsdirectory.com/skills/timothy1102-autopilot-fix-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: autopilot-fix-review
description: Fix the findings in the REVIEW.md that an autopilot plan's final review task wrote — check each finding against the code, triage it with the user (fix, decide, follow-up task or reject), fix the confirmed ones in the plan's worktree with one commit per fix on autopilot/<plan-id>, re-run the final verification, and log what happened to every finding in REVIEW-FIXES.md. Use when the user runs /autopilot-fix-review or asks to fix, address or work through the review findings of an autopilot run.
disable-model-invocation: true
---

# Autopilot review fixes

Most plans end with a read-only review task (on Opus) that reads the whole branch and writes its findings to `.autopilot/<plan-id>/REVIEW.md`. A plan revised later may have more of them: `REVIEW-R1.md`, `REVIEW-R2.md`, … Nothing acts on these findings automatically. Your job is to work through them with the user, fix the ones that hold up, and leave a record so `/autopilot-publish` knows which findings are resolved.

You work interactively, in this session, directly on the plan's branch. That is the right tool for a review's typical output: a handful of concrete, local problems. Findings that need a design decision or a lot of new work become follow-up tasks for an unattended run via `/autopilot-revise` instead.

## Ground rules

- **The reviewer can be wrong.** Check every finding against the code before you fix it. Never fix a finding you could not confirm; mark it `rejected` with the evidence, or ask.
- **Fix in the worktree, never in the main checkout.** The work lives on branch `autopilot/<plan-id>`, checked out in `../<repo>.autopilot-<plan-id>`. Every file edit and git command in Phase 4 targets that worktree (`git -C <worktree> …`, absolute paths under it).
- **One commit per fix** (or per group of findings that share one change), titled `<plan-id>(review): <what it fixes>`, so each fix can be reverted alone. Never amend, rebase or squash the task commits.
- **The spec wins.** SPEC.md's decisions were made with the user. A fix that would contradict a decision, change a public interface or change behaviour the spec fixes is not yours to make silently: it is a `decide` item (Phase 3).
- **Never** skip hooks (`--no-verify`), loosen, skip or delete tests, or disable lint or type rules to get a fix through. Never push or merge; publishing is `/autopilot-publish`'s job.
- **Never** stage or commit anything under `.autopilot/` (plans are local-only and git-ignored). **Never edit `run/state.json`, `run/REPORT.md`, `SPEC.md`, `tasks.json` or the review files themselves.** The review file stays as the reviewer wrote it; what happened to each finding goes into `REVIEW-FIXES.md` (Phase 5).

## Phase 1: Load the plan and the review (read-only)

1. **Find the plan.** If the user named one (plan id or path), use it. Otherwise list `.autopilot/*/REVIEW*.md` (leaving out `REVIEW-FIXES.md`). If more than one plan has a review, prefer the one that is not published yet; if that still leaves more than one, ask.
2. **Pick the review file.** The newest one, unless the user named one: `REVIEW-R<n>.md` with the highest `n`, else `REVIEW.md`. Read the main checkout's copy, and if the worktree's copy (`<worktree>/.autopilot/<plan-id>/`) differs, use the worktree's: workers write there and it is mirrored back only after a task ends. If `REVIEW-FIXES.md` exists, read it too: findings already marked `fixed` or `rejected` for this review file are settled, so only take up the rest unless the user asks to look at them again.
3. **Check that no run is active:** `ps -axo pid=,command= | grep -E '[a]utopilot(\.py)? (run|herdr) ' | grep -F '<plan-id>'`. If one is running, you may triage, but change nothing until it has stopped. Ask the user to press `q` in the run's terminal (it stops after the current task).
4. **Read where the plan stands:** `autopilot status .autopilot/<plan-id>/tasks.json`, and `run/state.json` for task statuses, `final_verify` and `published`.
   - **Already published** (`published` lists every done task): the review's fixes would no longer reach the target through this branch. Say so and stop. The user can fix the findings on the target branch directly, or add follow-up tasks with `/autopilot-revise` (the next run starts a fresh branch from `base_branch`). A `method: pr` record whose PR is still open is the exception: fixes on the branch go into the PR, so carry on, and say they will be pushed to the PR only when the user pushes.
   - **Tasks not done** (failed, blocked, pending): the review may have looked at an unfinished branch, and the final gate cannot run yet. Say so. Carry on only if the user wants to; skip the final verification in Phase 4 and tell them it is still owed.
5. **Check the worktree:** it exists, it is on `autopilot/<plan-id>`, and `git -C <worktree> status --porcelain` is clean. If the worktree is gone but the branch exists, offer to recreate it with `git worktree add <worktree> autopilot/<plan-id>` (that is the path autopilot uses). Uncommitted changes are not yours: ask the user what they are; never commit or discard them yourself.
6. **Read the context you need to judge findings:** `SPEC.md` (the decisions, conventions and Verification section), `tasks.json` (`defaults.verify`, `full_verify`, `final_verify` and the tasks' own `verify`), `DECISIONS.md` (decisions workers made on their own), and `git -C <worktree> log --oneline <base_commit>..HEAD`, with `base_commit` from state.json.

## Phase 2: Break the review into findings and check each one

1. **List the findings.** Review files are free-form. Turn the review into a numbered list: keep the reviewer's own numbering if it has one, else number them `F1`, `F2`, … in the order they appear. For each, note the severity the reviewer gave (or your reading of it: blocker, major, minor, nit), the files and lines, and the claim in one sentence. Praise, summaries and "looks good" sections are not findings. A finding that bundles several separate problems becomes several (`F3a`, `F3b`).
2. **Check every finding against the code on the branch.** Read the code it points at and enough around it to judge. Where the claim is about behaviour, prove it when that is cheap: run the relevant test, or write a quick check in a scratch directory outside the repo. With more than about six findings, check them in parallel with Explore subagents, one finding or one area each. Give each subagent the finding, the worktree path and the relevant SPEC.md sections, and ask for evidence (file:line, command output), not a verdict alone.
3. **Look for later work that already handled it:** `git -C <worktree> log --oneline -- <file>` for commits after the review task's commit (its `commit` in state.json), and earlier entries in `REVIEW-FIXES.md`.
4. **Sort each finding into one triage class:**

   | Class | When | What happens |
   |---|---|---|
   | `fix` | Confirmed, the right fix is clear, it fits SPEC.md, and it is local (a few files, no new design) | Fixed in this session (Phase 4) |
   | `decide` | Confirmed, but the fix needs a choice: a trade-off, more than one reasonable fix, or it would contradict a spec decision, change a public interface or change behaviour the spec fixes | The user decides (Phase 3); then it becomes `fix`, `follow-up` or `wontfix` |
   | `follow-up` | Confirmed, but large: new design, many files, a migration, or work that needs its own verification run | Handed to `/autopilot-revise` as a follow-up task (Phase 5) |
   | `already-fixed` | A later commit already resolved it | Logged with that commit |
   | `rejected` | Not a real problem: the code is correct, the claim misreads the spec, or it is a style preference the project's conventions do not support | Logged with the evidence; nothing changes |

   Be strict about `rejected`: a finding you could not disprove is not rejected. If you are unsure, it is `decide`.

## Phase 3: Agree on the triage

Show the user a table of every finding: id, severity, file, the claim in a few words, your class, and one line of evidence or the fix you propose. Order it by severity. Then ask everything in one AskUserQuestion call (up to four questions; put more in a second call), always with your recommended option first and a one-line reason:

- **Approval of the plan:** fix every `fix` item and log the rest as proposed; or adjust it (the user says which items to move).
- **Each `decide` item:** the options you see, with what each costs and changes. One option is always "leave it" (`wontfix`, logged with the user's reason).
- **If there are `follow-up` items:** hand them to `/autopilot-revise` now, after the fixes; or leave them logged for later.

The user's answers are the approval for Phase 4. A fix that turns out bigger or different from what you proposed needs a new question; do not widen it on your own.

## Phase 4: Fix, verify and commit

Work through the approved fixes in severity order, one at a time:

1. **Fix it in the worktree**, the smallest change that resolves the finding the way SPEC.md and the code around it would want: follow the project's conventions and the patterns the task commits use. If the finding is about a missing or wrong test, the fix includes the test. If the finding is a bug, add a test that fails without the fix when the project has tests for that area.
2. **Verify it** in the worktree:
   - `defaults.verify`, with `{changed_files}` replaced by the files you changed (space-separated, relative to the worktree);
   - the `verify` commands of the task that built the code you touched (find it with `git -C <worktree> log --format='%h %s' -- <file>`; commit titles are `<plan-id>(<task-id>): <title>`);
   - any test you added.

   If a check fails, fix the cause. If it fails for a reason unrelated to your change, say so and run it on the commit before yours (`git -C <worktree> stash`, run, `git -C <worktree> stash pop`) to show that. If you cannot make a fix pass, revert it (`git -C <worktree> checkout -- <files>`, and remove any new files), mark the finding `follow-up` with what you learned, and go on.
3. **Commit it:** `git -C <worktree> add <the files you changed>` (never `-A`, never anything under `.autopilot/`), then `git -C <worktree> commit -m "<plan-id>(review): <what it fixes>" -m "Fixes <finding ids> from <review file>: <one or two sentences>"`. If a commit hook fails, fix what it reports and commit again; never bypass it.

When every approved fix is committed:

4. **Run the final verification** if every task is done: `autopilot run .autopilot/<plan-id>/tasks.json`. With every task done it starts no workers and costs nothing in model usage; it runs only the final gate on the branch's new HEAD and records the result in state.json and REPORT.md, which `/autopilot-publish` requires. It can take as long as the project's full test suite, so run it in the background for long suites. If it fails, read the output in `run/REPORT.md` ("Final verification failed"). If your fixes caused it, fix that (another `review` commit) and run it again. If it fails the same way on the commit before your first fix, the failure was already there: say so.
   If some tasks are not done, do not run `autopilot run` (it would start workers). Run the commands from `defaults.final_verify` (or `verify` plus `full_verify`) in the worktree yourself, and tell the user the recorded final gate is still owed.

## Phase 5: Record and hand off

1. **Log every finding** in `REVIEW-FIXES.md`, in the plan directory of the main checkout. Create it on the first run; later runs append a new section and never rewrite earlier ones:

   ```markdown
   # Review fixes

   ## REVIEW.md, fixed on 2026-12-02 (branch at a1b2c3d)

   | Finding | Severity | Status | Commit / reason |
   |---|---|---|---|
   | F1 Missing null check in parseInvoice | major | fixed | 4e5f6a7 |
   | F2 Rounding per line contradicts D7 | major | wontfix | User keeps D7: per-invoice rounding is a legal requirement |
   | F3 Retry loop has no backoff | minor | follow-up | Needs a retry policy decision; see /autopilot-revise |
   | F4 Unused import in api.ts | nit | rejected | The import is used by the type-only export on line 12 |

   Final verification: passed at 8b9c0d1.
   ```

   Status is one of `fixed`, `already-fixed`, `wontfix`, `follow-up`, `rejected`, or `open` (anything left untouched). Then copy the file to the worktree's plan directory (`<worktree>/.autopilot/<plan-id>/REVIEW-FIXES.md`) so the two copies are identical; autopilot syncs files in the plan directory between the two, and a stale copy on either side would overwrite the other.
2. **Report** in a few lines: what was fixed (with commits), what was rejected and why, what the user decided, what is left as `follow-up` or `open`, and the final verification result.
3. **Hand off:**
   - `follow-up` items the user wants done: suggest `/autopilot-revise <plan-id>: add follow-up tasks for <finding ids> in REVIEW-FIXES.md`, and give them the list of findings with what you learned about each, so the revision can write tasks that stand alone.
   - Nothing left that blocks publishing, and the final verification passed: suggest `/autopilot-publish <plan-id>`. Commits added to the branch are published with it; the publish summary lists the findings that are still open.
   - Nothing was pushed. If the plan was opened as a PR, say that the fixes reach it with `git -C <worktree> push`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.