Draft
Add requirement granularity guidance to spec template, AGENTS.md section, and README#5
Conversation
Copilot
AI
changed the title
[WIP] Add guidance on manageable requirement granularity
Add requirement granularity guidance to spec template, AGENTS.md section, and README
Jul 22, 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.
Agents drafting first-pass feature specs tend to over-decompose into 20+
MUSTrequirements, making the coverage/review cycle disproportionately heavy before a team has decided which behaviors are core product promises. This adds guidance nudging toward 3–8 workflow-level requirements per feature.Changes
specs/REQ-010-granularity-guidance.md— new spec formalizing the granularity guidance requirements (REQ-010.1–3)src/init.ts—AGENTS_MD_SECTION— new "Requirement granularity" paragraph with:"MUST cover"/"MUST test"anti-patternssrc/init.ts—SPEC_TEMPLATE— restructured from a generic single section to four explicit sections:README.md— new## Requirement granularitysection with guidance, good/bad examples, sizing smells checklist, and starter spec structuretests/granularity.test.ts— four tests covering REQ-010; each assertion verified by fresh-context reviewers to be genuinely falsifiable (e.g., REQ-010.2.1 extracts and checks that the Core workflows section contains aMUST, not just that the heading exists)