Skip to content

docs(code-review): remove stale per-task SDD trigger and align review placeholders - #2740

Open
arittr wants to merge 5 commits into
devfrom
fix/wave1-code-review-and-preflight
Open

arittr wants to merge 5 commits into
devfrom
fix/wave1-code-review-and-preflight

Conversation

@arittr

@arittr arittr commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Who is submitting this PR? (required)

Field Value
Your model + version Gemini 4 Carbon (High)
Harness + version Antigravity CLI 1.5.16 (via Paseo)
All plugins installed superpowers, dealerboard, toolsmith
Human partner who reviewed this diff Drew Ritter (@arittr)

What your human partner asked you to do, in their words:

Clean up the factual contradictions in requesting-code-review, receiving-code-review, and subagent-driven-development/references/preflight.md without touching any guard rules or "your human partner's rule" framing.

Human-authored summary (required, under 200 words)

When subagent-driven-development moved to its own single-pass per-task reviewer (task-reviewer-prompt.md) with one whole-branch review at the end, requesting-code-review never got updated to match. It still told agents that requesting-code-review is mandatory after every SDD task, complete with an example that greps git log and says "Ready to proceed" while an Important issue is still open—directly contradicting SDD's own instructions.

While fixing that mismatch, we also cleaned up three small leftovers in adjacent review docs: {DESCRIPTION} curly-brace placeholders in requesting-code-review that didn't match [DESCRIPTION] in code-reviewer.md, a false claim in receiving-code-review calling "You're absolutely right!" an explicit instruction-file violation even when the user's instructions say nothing about it, and a duplicated pre-merge sentence in SDD's preflight.md right above the paragraph that replaced it.

What problem are you trying to solve?

Fixes #1481.

  1. On dev, skills/requesting-code-review/SKILL.md lists After each task in subagent-driven development under Mandatory. subagent-driven-development reviews each task with its own task reviewer and says "Per-task reviews are task-scoped gates. The broad review happens once, at the final whole-branch review." It uses this skill's code-reviewer.md only for that final review (references/final-review.md). An agent that follows both skills can run a second review after every task. That is the overlap Clarify that SDD code quality review satisfies requesting-code-review #1481 reports.
  2. The skill's ## Example modeled the same per-task review. It started at "[Just completed Task 2: Add verification function]", derived BASE_SHA by grepping commit subjects for "Task 1", and had the reviewer return "Ready to proceed", a verdict code-reviewer.md does not offer (its template asks **Ready to merge?** [Yes | No | With fixes]).
  3. Clarify that SDD code quality review satisfies requesting-code-review #1481 asks the skill to say that SDD's own review covers each task. Deleting the bullet and the Example alone would leave the skill saying nothing about plan execution, while its description still triggers on "completing tasks".
  4. The skill's Placeholders list named {DESCRIPTION}, {PLAN_OR_REQUIREMENTS}, {BASE_SHA} and {HEAD_SHA}. code-reviewer.md, the template the skill tells the agent to fill, uses [DESCRIPTION], [PLAN_OR_REQUIREMENTS], [BASE_SHA] and [HEAD_SHA]. The curly-brace tokens do not appear in it.

#1481 describes the duplicate review as a likely reading of the two skills, not an observed session. The one measurement on record is #1984's, described under Evaluation.

What does this PR change?

Only skills/requesting-code-review/SKILL.md changes (6 lines added, 32 removed):

  • Removes the Mandatory bullet After each task in subagent-driven development.
  • Adds one paragraph after the "Optional but valuable" list: "Executing a plan? superpowers:subagent-driven-development reviews each task with its own task reviewer, and both it and superpowers:executing-plans end with one whole-branch review using code-reviewer.md. Follow their review steps; don't add a review of your own after each task."
  • Changes the four placeholders from {...} to [...] to match code-reviewer.md.
  • Removes the ## Example section.

The frontmatter description is unchanged. README.md line 320 ("Activates between tasks") is not changed here; #2746 changes it.

Is this change appropriate for the core library?

Yes. The file is a core Superpowers skill, and the edits resolve a contradiction between it and subagent-driven-development and a mismatch with its own template.

What alternatives did you consider?

  1. Changing the frontmatter description to drop "completing tasks": Not done. The description decides when the skill fires, and "completing tasks" also covers work outside a plan, where dropping it could stop reviews. Changing it needs a trigger check first, so this PR adds a paragraph to the body instead.
  2. Restructuring code-reviewer.md: Rejected because behavior-shaping prompt changes require evaluation evidence. This PR changes the skill's placeholder list to match the template and leaves the template and SDD's own review flow as they are.

Does this PR contain multiple unrelated changes?

No. All changes are in one file. The bullet removal, the Example removal and the new paragraph address #1481. The placeholder change corrects references to code-reviewer.md, the template this same skill dispatches.

Existing PRs

This PR carries no text from another contributor's PR.

Environments tested

Harness (e.g. Claude Code, Cursor) Harness version Model Model version/ID
Antigravity CLI 1.5.16 (via Paseo) Gemini 4 Carbon Gemini 4 Carbon (High)
Claude Code 2.1.325 Claude Opus 5.5 (changes), Claude Fable 5.2 (review) claude-opus-5-5, claude-fable-5-2

New harness support (required if this PR adds a new harness)

N/A — does not add support for a new harness.

Evaluation

  • Initial prompt: Fix the factual contradictions in requesting-code-review, receiving-code-review, and subagent-driven-development/references/preflight.md (Clarify that SDD code quality review satisfies requesting-code-review #1481).

  • Verification runs: Run at the final head, 21c67a50:

    • bash tests/skill-size/test-skill-size.sh: PASS: every SKILL.md is under 20000 bytes
    • bash tests/sdd-helper-paths/test-sdd-helper-paths.sh: PASS: all 14 relative helper references under skills/ say to run them by absolute path
    • bash tests/skill-layout/test-no-dev-files-in-skills.sh: PASS: no skill ships pressure scenarios or creation logs
    • git diff --check df2e996a174f49f05aa5d5777ca56fbb0aa972ec HEAD: no output, exit 0

    These are static checks. None of them checks the wording of the edited text, and a search of tests/ and scripts/ for the edited and removed strings finds nothing.

  • Not run: No coding-agent session has exercised the changed skill text. None of the checks planned before merge covers this PR's text.

  • Before/after outcome: Not measured. docs(skills): scope requesting-code-review to the final SDD review #1984 ran a before/after on this contradiction (3 runs each, asking a fresh agent whether it would run requesting-code-review after Task 1 of an SDD plan) and the agent answered NO 3 of 3 in both arms. This PR removes the text that contradicted SDD and adds the statement Clarify that SDD code quality review satisfies requesting-code-review #1481 asked for; it does not fix an observed double review.

Rigor

  • If this is a skills change: I used superpowers:writing-skills and
    completed adversarial pressure testing (paste results below)
  • This change was tested adversarially, not just on the happy path
  • I did not modify carefully-tuned content (Red Flags table,
    rationalizations, "human partner" language) without extensive evals
    showing the change is an improvement

This PR changes skill text, and no pressure testing with agents was done, so the first two boxes are unticked. The diff does not change the skill's Red Flags list, its Common Rationalizations table, or any "your human partner" wording.

What was done: the original diff had an independent review by several reviewers, and each hunk of the diff against dev was then checked against #1481 and the review's findings. The receiving-code-review and preflight.md edits returned to dev's text, and the new paragraph was added. A separate reviewer then checked the rebuilt diff hunk by hunk against dev and re-ran the tests; the last commit, which only adds the two superpowers: prefixes, came after that review. The tests listed above were run at the final head. No test was added or changed, so there was no test to check against a reverted fix.

Human review

  • A human has reviewed the COMPLETE proposed diff before submission

arittr and others added 5 commits November 23, 2026 21:45
…v's text where no issue requires a change

This branch renamed the H1 to "# Receiving Code Review" and dropped
"(explicit instruction-file violation)" from the "You're absolutely
right!" bullet. No issue this PR cites asks for either. Jesse
generalized the parenthetical in 6b9f1b2, and
docs/superpowers/specs/2026-05-05-platform-neutral-config-refs-design.md
records keeping it on purpose. The file returns to dev's text, so this
branch no longer changes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…no issue requires a change

This branch deleted "Rule on everything you find before execution
begins — each finding against the plan text that mandates it — and
record each ruling in the ledger." as a duplicate merge leftover. It is
not a duplicate. It is half of the paragraph composed from #2077 and
#2080, the text merge 419dec7 resolved to because the composed evals
graded it. It tells the controller to rule, before Task 1, on every
finding of the scan, including a plan-mandated defect that has no row in
the table; the sentence after it rules on the conflicts the table
surfaces. No issue this PR cites asks for the change. The file returns
to dev's text, so this branch no longer changes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1481 asks requesting-code-review to say that subagent-driven
development's own review covers each task. Removing the per-task SDD
bullet and the per-task Example ends the contradiction, but nothing in
the skill tells a plan executor that loads it after a task that its own
review steps already cover that task, and the description still
triggers on "completing tasks". Add a paragraph after the "Optional but
valuable" list: subagent-driven-development reviews each task with its
own task reviewer, both it and executing-plans end with one whole-branch
review using code-reviewer.md, and the agent follows those steps instead
of adding a review after each task. The frontmatter description is left
as it is: changing when the skill fires needs a trigger check first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The "Executing a plan?" paragraph named subagent-driven-development and
executing-plans as bare words. Skill prose in this library names a skill
with the superpowers: prefix (writing-skills' discovery.md section 5,
and the mentions of both skills in executing-plans, writing-plans and
the SDD references), and this paragraph was the only prose mention of
either skill in a skill file without it, apart from frontmatter names,
graph nodes and one backticked mention. The bare name also opened the
sentence after the bold lead-in as a lowercase word. Write both as
superpowers:subagent-driven-development and superpowers:executing-plans;
the rest of the paragraph is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@danishkumar26 danishkumar26 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this change does: Aligns skills/requesting-code-review/SKILL.md with subagent-driven-development: drops "review after each task" from the mandatory list (each SDD task already has its own task reviewer, and executing-plans ends with one whole-branch review), renames placeholders from {NAME} to [NAME], and deletes the worked Example section.

  1. (Nice to have) Deleting the Example removes a concrete walkthrough for new users; the placeholder rename is cosmetic. Not a blocker.
  2. (Nice to have) Edits the same file as open #2754; check for conflicts when either merges.

Verdict: Ship.

Not checked: none (docs-only change).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants