feat(skills/developing-a-feature): add post-review change choreography for history-sharing PRs#25
Merged
Merged
Conversation
…y for history-sharing PRs
Contributor
There was a problem hiding this comment.
Pull request overview
Adds explicit choreography to the developing-a-feature skill for handling review-driven fixes when multiple open PRs share git history (stacked / concurrent sub-PRs), so fixes land on the correct branch, propagate safely, and the accompanying planning/state artifacts stay consistent.
Changes:
- Adds a new section with rules for “fix at origin”, “merge forward (no rebase)”, and “propagate the decision” across spec/plan/state/issues/PR bodies.
- Introduces a concrete “assert, then write” recipe for scripted state-file PR-table updates (row-keyed assertions + remote head SHA reads).
- Extends the Anti-patterns list and Red flags table with matching entries to reinforce the new guidance.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When a multi-PR feature has several open PRs whose branches share history (stacked sub-PRs, concurrent feature-branch sub-PRs, wave N+1 off wave N) and a human reviews them live, the plugin had no guidance for where a review fix lands or what it must drag along. Observed failures in a real orchestration session:
Change
skills/developing-a-feature/SKILL.mdgains one section (Review-driven changes while several open PRs share history) with three rules — fix where the code lives (establish ownership viagit log -Sbefore editing), propagate by merging forward (never rebase under live review), propagate the decision (spec/plan, state file, issue bodies via writing-github-issues Step 2D, stale PR bodies) — plus a positive recipe for scripted state-file edits (assert every row matched, abort without writing, remote-read SHAs at write time). One matching anti-pattern and three red-flag rows.Verification (writing-skills RED → GREEN)
sed -iwhose non-match no-ops silently, backstopped only by an eyeball diff — the exact observed failure. The fix-at-origin failure is documented from the live session (narration-level baselines passed, so that side ships as compact rules + red-flag counters rather than teaching prose, per writing-skills form-matching).