Claude Code requirements-writing for testable acceptance criteria
Write user stories, normal and error cases, and numbered business rules based on the user’s goal and confirmed constraints.
中文Install in Claude Code
Open add-template in Claude Code or use the same requirements structure. Prepare the current requirements and confirmed business rules.
- Review `.claude/skills/requirements-writing/SKILL.md` and its requirements at the pinned GitHub commit.
- Create `.claude/skills/requirements-writing/` in your project and save the reviewed file as `.claude/skills/requirements-writing/SKILL.md`.
- Start Claude Code from that project's root, then select `/requirements-writing` in the slash menu.
Example task
Requirement req-09 covers a community event title. Its confirmed limit is 32 characters. Use {limit: 32, validLength: 32, invalidLength: 33} as the boundary fixture.What to check
The expected outcomes are {length32: 'saved', length33: 'validation error'}. Give the title length rule a unique reference for implementation and tests.
Original SKILL.md on GitHub · Updated
Frequently asked question
What makes an acceptance criterion ready for testing?
State who performs the action, what the system shows or saves, and relevant boundary or error cases.