.agents/skills/gh-pr-review/references/checklist-evolution.md
Rules for evolving review checklists without confusing a review-session suggestion with durable repository knowledge. Goal: keep checklists minimal and high-signal — each item should direct AI attention to a distinct class of real issues, not catalog every possible bug pattern.
Regular reviews use only Step 1 and never prompt. Steps 2–4 are an explicit
maintenance mode under SKILL.md § Interaction and interruption contract.
Interactive maintenance may request the declared selection or destination;
automated maintenance reports candidates or missing destination information,
applies no selection-dependent edits, and stops safely.
The canonical storage is the appropriate tracked checklist under
.agents/skills/gh-pr-review/references/ — normally code-checklist.md or
doc-checklist.md. Never treat runtime memory, a report, or an uncommitted file
as canonical storage.
For each uncovered pattern, draft a candidate item. ALL rules below MUST be satisfied — violation makes the candidate invalid:
When uncertain whether a new item overlaps with an existing one, do NOT add it.
During a regular local, teams, or PR review, include every valid candidate in the final report as Proposed, with its target checklist and category. Stop there: do not prompt for selection, edit a checklist, or claim persistence.
Continue past Step 1 only when the user explicitly requests checklist maintenance or asks to adopt proposed candidates.
Proposed candidates live only in the session that drafted them. A review report is session output, not a durable store, so maintenance runs only in the same session as the review that produced the candidates. If this session holds no proposed candidates, say so and stop — do not reconstruct candidates from memory, from an earlier session's report, or by re-reviewing. To adopt candidates from an earlier session, re-run the review that produces them.
In an interactive run, present this session's candidates for selection. Unselected candidates remain proposed or are discarded; selected candidates become Accepted. In an automated run, report the candidates and stop before acceptance.
Acceptance does not authorize writing into a temporary PR review worktree. The maintenance flow must identify a user-designated persistent checkout and target branch. If either is unclear, an interactive run asks before editing; an automated run reports the missing destination and stops. Never guess.
Insert accepted items into the canonical checklist file in the designated
persistent checkout at the appropriate position under the category and
priority rules above. Never write them into REVIEW_DIR or another disposable
worktree. At this point the rules are accepted and written, but not yet
persisted.
Commit, push, or open a PR only with the authority required by the repository's normal publish workflow. Record the target branch and resulting commit or PR in the maintenance report. After that durable record exists, mark the rules Persisted. If publication was not authorized or fails, report them as accepted but not persisted.