用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/llipe/memo-cli --skill activity-generate-stories命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Design consumer/provider contract and schema-compatibility tests from a spec or story. Use when deriving contract test strategy during verifier design mode.
Routes verifier drift findings into task-list/GitHub-checklist expansion, new-issue creation, or PRD/spec changelog write-back with a human-confirmation gate. Use when a verifier fidelity report (Design or Audit Mode) surfaces drift that needs to be acted on.
Generate end-to-end black-box test scenarios from a spec or user stories. Use when deriving E2E compliance scenarios.
| name | activity-generate-stories |
| description | Break a technical specification into user stories with coverage validation. Use after generate-spec. |
Create structured, implementation-ready User Stories from a Technical Specification with built-in coverage validation against the PRD. Use this skill after the specification is approved. Invoked by the product-engineer agent in Feature Mode.
RFC 2119 Notice: The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119.
Create structured, implementation-ready User Stories from a Technical Specification, then validate that all PRD requirements are covered. Each user story MUST provide value independently, fit into a single Pull Request, and contain the detail needed for implementation.
This activity combines story generation and coverage validation into a single pass.
This activity assumes the following documents already exist:
prd-[feature-name].md — Feature requirementsspecification-[prd-name].md — Technical specificationThe user stories document MUST include a Changelog table as the first section after the document title. The changelog tracks the version history of the document.
1.0.1.1, 1.2, …).2.0).@username, developer-agent, planner-agent).## Changelog
| Version | Date | Summary | Author |
| ------- | ---------- | --------------- | ------------------ |
| 1.0 | YYYY-MM-DD | Initial version | @user / agent-name |
Each User Story MUST include:
### Story [ID]: [Title]
**Priority:** [Critical/High/Medium/Low]
**Estimated Size:** [XS/S/M/L]
**Dependencies:** [List any dependent stories or systems]
#### User Story
As a [user role],
I want [goal/capability],
So that [business value/benefit].
#### Context
[Why this story matters, how it fits the larger feature.]
#### Acceptance Criteria
- [ ] [Criterion 1: Specific, testable condition]
- [ ] [Criterion 2]
- [ ] [Criterion 3]
#### Business Rules
- [Business rule 1]
- [Business rule 2]
#### Technical Notes
- [Key technical decisions or patterns to follow]
- [Reference to Technical Guidelines sections]
- [Integration points]
#### Testing Requirements
- **Unit Tests:** [Specific scenarios]
- **Integration Tests:** [Cross-component scenarios]
- **Manual/UI Testing:** [User-visible checks and access path]
- **Edge-Case Matrix:** [Boundary, error, empty-state, concurrency/idempotency cases]
- **Acceptance-Criteria Mapping:** [AC -> test case IDs or commands]
- **Execution Commands:** [Canonical scripts, prefer `pnpm run <script>`]
#### Migration Requirements (When Data Model Changes)
- Migration artifact: [required by default; add explicit opt-out rationale if omitted]
- Rollback/impact notes: [required]
- Apply step: [requires explicit user confirmation before running]
- Verification after apply: [required]
#### Implementation Steps
1. [Step 1]
[Step 2]
[Step 3]
- Brief description
- Unit tests
[ ] Code implemented per technical guidelines
[ ] Unit/integration/manual/edge-case tests written and passing
[ ] Quality gates passing (, , , , )
[ ] Code reviewed and approved
[ ] Acceptance criteria verified
[ ] Acceptance criteria explicitly mapped to test evidence
[ ] Migration lifecycle complete (or documented opt-out) when schema/data-model changes exist
[ ] Pull Request created and merged
pnpm over npm.npm only when pnpm is unavailable or the project is explicitly npm-locked.lint, lint:fixformat, format:checktypechecktest, test:unit, test:integration, test:e2eauditvalidate (aggregate quality gate)Good User Stories:
Poor User Stories:
You SHOULD consider these factors when sequencing:
Before finalizing stories, you MUST validate coverage against the PRD.
You MUST include a summary coverage report at the end of the stories document:
## Coverage Validation
### Summary
- **Total PRD Requirements:** [#]
- **Total User Stories:** [#]
- **Coverage:** [X%]
- **Status:** [Complete / Gaps Identified]
### Requirement Mapping
| PRD Requirement | Story ID(s) | Status |
| --------------- | ------------ | ---------- |
| [Req 1] | S-001 | ✅ Covered |
| [Req 2] | S-002, S-003 | ✅ Covered |
| [Uncovered Req] | — | ❌ GAP |
### Gaps (if any)
- **Gap [#]:** [Requirement not covered] — **Recommendation:** [Create new story / Modify existing story]
### Non-Goals Validation
- [ ] [Out-of-scope item 1] — Confirmed NOT in any story
- [ ] [Out-of-scope item 2] — Confirmed NOT in any story
If gaps are found, you MUST propose additional stories or modifications to close them before presenting for review.
.md)/workstream/user-stories-[prd-name].md