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-conflictsfirst, then resume the review-fix plan on the clean branch state. When the fix plan references tracker metadata, usedocs/agents/work-item-format.mdso 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 PlanwithStatus: planned. - Stop if no plan exists; run plan-review-fixes first.
- Fetch PR comments with
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-conflictsbefore 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.
- Comment with heading
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.