Product-org-os user-story
'Write a user story with acceptance criteria in Given/When/Then format. Activate when: "write a user story", "as a user I want", "acceptance criteria", story-level requirements, sprint-ready
install
source · Clone the upstream repo
git clone https://github.com/yohayetsion/product-org-os
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/yohayetsion/product-org-os "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/user-story" ~/.claude/skills/yohayetsion-product-org-os-user-story && rm -rf "$T"
manifest:
skills/user-story/SKILL.mdsource content
Document Intelligence
This skill supports three modes: Create, Update, and Find.
Mode Detection
| Signal | Mode | Confidence |
|---|---|---|
| "update", "revise", "modify" in input | UPDATE | 100% |
File path provided () | UPDATE | 100% |
Story ID mentioned () | UPDATE | 100% |
| "create", "new", "draft" in input | CREATE | 100% |
| "find", "search", "list stories" | FIND | 100% |
| "the story", "the user story" | UPDATE | 85% |
| Just story description | CREATE | 60% |
Threshold: ≥85% auto-proceed | 70-84% state assumption | <70% ask user
Mode Behaviors
CREATE: Generate complete new user story using template below.
UPDATE:
- Read existing story (search if path not provided)
- Preserve unchanged sections exactly
- Update only sections mentioned by user
- Show diff summary: "Updated: [sections]. Unchanged: [sections]."
- Update status and metadata
FIND:
- Search paths below for user stories
- Present results: title, path, status, summary
- Ask: "Update one of these, or create new?"
Search Locations for User Stories
stories/backlog/requirements/stories/epics/
Gotchas
- User stories must follow 'As a [type], I want [action], so that [benefit]' — don't skip the 'so that'
- Acceptance criteria are mandatory — a user story without them is just a wish
- Don't combine multiple stories into one — split until each is independently deliverable
Write a User Story with acceptance criteria.
Vision to Value Phase
Phase 3: Strategic Commitments - User stories are the atomic unit of requirements commitment.
Prerequisites: Feature spec or PRD with scope defined Outputs used by: Sprint planning, engineering implementation, QA verification
Output Structure
# User Story: [Brief Title] **Story ID**: US-[YYYY]-[NNN] **Epic**: [Parent epic] **Owner**: [PM Name] **Priority**: Must Have / Should Have / Nice to Have **Status**: Draft / Ready / In Progress / Done ## Story **As a** [user type/persona] **I want to** [action/capability] **So that** [benefit/value] ## Context **Why This Matters**: [Business/user context] **Current State**: [How it works today or doesn't exist] **Desired State**: [How it should work] ## Acceptance Criteria ### Criterion 1: [Name] **Given** [precondition/context] **When** [action taken] **Then** [expected result] ### Criterion 2: [Name] **Given** [precondition/context] **When** [action taken] **Then** [expected result] ### Criterion 3: [Name] **Given** [precondition/context] **When** [action taken] **Then** [expected result] ## Edge Cases | Scenario | Expected Behavior | |----------|-------------------| | [Edge case 1] | [Behavior] | | [Edge case 2] | [Behavior] | | [Edge case 3] | [Behavior] | ## Error Handling | Error Condition | User Message | System Behavior | |-----------------|--------------|-----------------| | [Error 1] | [Message] | [Behavior] | | [Error 2] | [Message] | [Behavior] | ## Dependencies - [Dependency 1] - [Dependency 2] ## Design Notes **UI/UX Considerations**: [Design notes] **Accessibility**: [A11y requirements] ## Technical Notes **Implementation Hints**: [Technical guidance] **API Changes**: [If applicable] ## Definition of Done - [ ] Code complete and reviewed - [ ] Unit tests passing - [ ] Integration tests passing - [ ] Acceptance criteria verified - [ ] Design QA passed - [ ] Documentation updated - [ ] Ready for release
Instructions
- Ask clarifying questions about the user and goal if unclear
- Reference any design or research documents via @file syntax
- Use Given/When/Then format for acceptance criteria
- Include edge cases and error handling
- Save in stories/ or backlog/ folder