Contract
- Input: problem or task defined by the skill body.
- Output: Markdown artifact or structured result with completion criteria met.
- Side effects: none (design/review/documentation only unless explicitly stated).
- Dependencies: none (self-contained unless linked to other skills).
- Stop condition: all process steps completed; artifact saved; criteria checked.
- Risk: low.
- Boundary: produces reasoning or documentation artifacts; does not modify external systems unless explicitly instructed.
Implement Review Fixes
Overview
Execute an existing review correction plan. This skill treats the PR comment as the source of truth, applies only scoped corrections, and leaves the PR ready for another review-pr pass. Use references/implementation-note.md as the canonical completion shape.
The completion note still needs the familiar closing sections that make the handoff explicit:
- Status: implemented
- Scope Notes
If the planned fixes are blocked by a conflicted branch state, hand off to
resolving-merge-conflicts first, then resume the review-fix plan on the clean branch state.
When the fix plan references tracker metadata, use docs/agents/work-item-format.md so labels, milestone, and project context remain consistent with the linked issue.
If a planned item no longer matches the diff, stop and refresh the plan instead of improvising around it.
Workflow
Identify the PR and branch.
- Prefer an explicit PR number from the user.
- Otherwise run
gh pr view --json number,headRefName,baseRefName,url,title.
- Confirm the current branch matches the PR head branch before editing.
Read the current plan.
- Fetch PR comments with
gh pr view <number> --comments.
- Use the latest comment headed
## Review Fix Plan with Status: planned.
- Stop if no plan exists; run plan-review-fixes first.
Validate the plan against the current diff.
- Confirm the files or symbols named in the plan still exist.
- Check whether any item is already fixed; mark it complete in your local working notes and do not rework it.
- If the diff has moved enough that the plan is stale, stop and ask for a new plan-review-fixes pass.
- If the branch is conflicted, stop and hand off to
resolving-merge-conflicts before trying to apply the plan.
Implement scoped fixes.
- Use the implement workflow for the actual edits.
- Prefer test-first fixes when a finding maps to observable behavior.
- Keep each correction local to the finding that motivated it.
- Avoid opportunistic refactors unless the plan explicitly requires them.
- If a fix changes behavior beyond the original finding, pause and send the PR back through review-pr.
Validate.
- Run targeted tests or checks named in the plan.
- Run repo-level typecheck/lint/test commands when the change surface justifies it.
- If a planned item cannot be validated locally, state the reason in the PR completion note.
- Validation should cover the exact failure mode the finding identified, not an adjacent check.
Report completion on the PR.
- Comment with heading
## Review Fix Implementation.
- Include completed items, validation commands, failures or skipped checks, and any remaining blockers.
- Do not mark the PR clean; only a later review-pr pass can do that.
Completion Comment Format
Use the structure in references/implementation-note.md.
Guardrails
- Never implement without a current Review Fix Plan.
- Never broaden scope beyond review findings unless the user explicitly asks.
- Never merge or close the PR.
- If implementation changes the intended behavior beyond the original spec, stop and send the PR back through review-pr.
- Never introduce tracker metadata that conflicts with the linked issue's labels or milestone.
1---2name: implement-review-fixes3description: Read a GitHub PR remediation plan produced by plan-review-fixes, implement the planned corrections through the repositor4---56## Contract78- **Input:** problem or task defined by the skill body.9- **Output:** Markdown artifact or structured result with completion criteria met.10- **Side effects:** none (design/review/documentation only unless explicitly stated).11- **Dependencies:** none (self-contained unless linked to other skills).12- **Stop condition:** all process steps completed; artifact saved; criteria checked.13- **Risk:** low.14- **Boundary:** produces reasoning or documentation artifacts; does not modify external systems unless explicitly instructed.151617# Implement Review Fixes1819## Overview2021Execute an existing review correction plan. This skill treats the PR comment as the source of truth, applies only scoped corrections, and leaves the PR ready for another review-pr pass. Use `references/implementation-note.md` as the canonical completion shape.2223The completion note still needs the familiar closing sections that make the handoff explicit:2425- Status: implemented26- Scope Notes27If the planned fixes are blocked by a conflicted branch state, hand off to `resolving-merge-conflicts` first, then resume the review-fix plan on the clean branch state.28When the fix plan references tracker metadata, use [`docs/agents/work-item-format.md`](../../../../docs/agents/work-item-format.md) so labels, milestone, and project context remain consistent with the linked issue.29If a planned item no longer matches the diff, stop and refresh the plan instead of improvising around it.3031## Workflow32331. Identify the PR and branch.34 - Prefer an explicit PR number from the user.35 - Otherwise run `gh pr view --json number,headRefName,baseRefName,url,title`.36 - Confirm the current branch matches the PR head branch before editing.37382. Read the current plan.39 - Fetch PR comments with `gh pr view <number> --comments`.40 - Use the latest comment headed `## Review Fix Plan` with `Status: planned`.41 - Stop if no plan exists; run plan-review-fixes first.42433. Validate the plan against the current diff.44 - Confirm the files or symbols named in the plan still exist.45 - Check whether any item is already fixed; mark it complete in your local working notes and do not rework it.46 - If the diff has moved enough that the plan is stale, stop and ask for a new plan-review-fixes pass.47 - If the branch is conflicted, stop and hand off to `resolving-merge-conflicts` before trying to apply the plan.48494. Implement scoped fixes.50 - Use the implement workflow for the actual edits.51 - Prefer test-first fixes when a finding maps to observable behavior.52 - Keep each correction local to the finding that motivated it.53 - Avoid opportunistic refactors unless the plan explicitly requires them.54 - If a fix changes behavior beyond the original finding, pause and send the PR back through review-pr.55565. Validate.57 - Run targeted tests or checks named in the plan.58 - Run repo-level typecheck/lint/test commands when the change surface justifies it.59 - If a planned item cannot be validated locally, state the reason in the PR completion note.60 - Validation should cover the exact failure mode the finding identified, not an adjacent check.61626. Report completion on the PR.63 - Comment with heading `## Review Fix Implementation`.64 - Include completed items, validation commands, failures or skipped checks, and any remaining blockers.65 - Do not mark the PR clean; only a later review-pr pass can do that.6667## Completion Comment Format6869Use the structure in `references/implementation-note.md`.7071## Guardrails7273- Never implement without a current Review Fix Plan.74- Never broaden scope beyond review findings unless the user explicitly asks.75- Never merge or close the PR.76- If implementation changes the intended behavior beyond the original spec, stop and send the PR back through review-pr.77- Never introduce tracker metadata that conflicts with the linked issue's labels or milestone.