Fix PRD section numbering gaps when optional sections are omitted - #72
Merged
Conversation
WalkthroughDocumentation and skill instructions were updated to include a missing PRD template section and to require renumbering when optional or removed sections leave gaps. ChangesPRD Numbering Documentation
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
avishayt
force-pushed
the
fix-prd-section-numbering
branch
2 times, most recently
from
July 6, 2026 08:57
2e642fd to
d135c7f
Compare
The draft skill instructed the AI to omit optional sections but never said to renumber the remaining ones, producing gaps like 2.1 → 2.3 or 4 → 6. Add a "Keep numbering sequential" rule to draft, and matching renumber-on-delete instructions to revise and respond. Also fix the README which listed only 7 sections (missing Assumptions). Assisted-by: Claude
avishayt
force-pushed
the
fix-prd-section-numbering
branch
from
July 6, 2026 08:58
d135c7f to
12225b3
Compare
adalton
approved these changes
Jul 6, 2026
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.
Summary
prd/skills/draft.mdso the AI renumbers remaining sections when optional ones (e.g., 2.2 Success Metrics, section 5 Assumptions) are omittedprd/skills/revise.mdandprd/skills/respond.mdprd/README.mdwhich listed only 7 template sections instead of 8 (missing Assumptions, with wrong numbers for Dependencies/Risks/Open Questions)Test plan
/drafton a Jira issue that has no quantifiable success metrics — verify section 2 goes 2.1 Goals, 2.2 Non-Goals (no gap)/drafton a Jira issue with no assumptions or dependencies — verify remaining sections are numbered sequentially/reviseto delete a section — verify remaining sections are renumbered🤖 Generated with Claude Code
Affected workflows: PRD drafting (
/draft), PRD revising (/revise), and PRD responding (/respond).Behavioral changes:
prd/skills/draft.md: adds a “Keep numbering sequential” critical rule so if optional PRD sections/subsections are omitted, subsequent headings are renumbered to eliminate numbering gaps.prd/skills/revise.md: strengthens deletion guidance to remove content while checking for orphaned references; if an entire section/subsection is deleted, remaining sections are renumbered to close numbering gaps.prd/skills/respond.md: when resolving reviewer feedback causes the “Open Questions” section to become empty, the skill instructs removing that section and renumbering subsequent PRD sections to close the gap.Structural changes:
prd/README.md: updates the “PRD Template” outline to include “4. Acceptance Criteria” and corrects numbering/order for “5. Assumptions”, “6. Dependencies”, “7. Risks”, and “8. Open Questions”, ensuring all 8 template sections are listed.Shared resources / cross-workflow conventions:
_shared/.Also:
prd/SKILL.mdincrements the documented workflow version from0.3.0to0.4.0.