ワンクリックで
ba-writing
[Agentic] Requirements Writing - transform notes into high-quality user stories (SKILL-03)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
[Agentic] Requirements Writing - transform notes into high-quality user stories (SKILL-03)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
[Meta] How to use BA-Kit effectively. Use when starting with BA-Kit, unsure which agent to invoke, or when an AI agent needs to map user intent to the right skill.
[Agentic] Agile BA Practices - User Story Mapping, MVP Definition, Hypothesis-Driven Development
[Agentic] Business Rules Management - decision tables, decision trees, rule catalog, conflict detection
[Agentic] Change Management - ADKAR, readiness assessment, training needs, go-live planning, benefits realization
[Agentic] Communication & Reporting - audience-adapted messaging, status reports, executive summaries
[Agentic] Conflict Resolution & Negotiation - resolve stakeholder disagreements (SKILL-06)
| name | ba-writing |
| description | [Agentic] Requirements Writing - transform notes into high-quality user stories (SKILL-03) |
| version | 1.0.0 |
If input is unclear, incomplete, or out-of-scope:
When NOT to use:
When activated via @ba-writing, perform the following cognitive loop:
Generate a User Story with these sections:
| Section | Content | Quality Check |
|---|---|---|
| ID | US-[Num] | Unique? |
| Story | "As a [Role], I want to [Action], so that [Benefit]" | Clear value? |
| Business Flow | Numbered steps describing the user journey | ≥3 steps? |
| RBAC Matrix | Table: Data Field × Role × Access Right | All roles covered? |
| Acceptance Criteria | Structured AC sections (see format below) | Testable? |
| Definition of Done | Measurable completion criteria | Has metrics? |
| Edge Cases | Table: Case × Severity × Expected Behavior | ≥2 cases? |
Style A — Gherkin (preferred for automation):
#### AC1. [Title]
**Scenario**: Happy Path
- Given [precondition]
- When [action]
- Then [expected result]
Style B — Structured Bullets (preferred for complex UI/workflow):
#### AC1. [Title]
- [Specific behavior with measurable criteria]
- [Field validation rule with threshold]
- [UI behavior with response time ≤ Ns]
Rule: Both styles are acceptable. Use Gherkin for API/logic-heavy stories; Structured Bullets for UI/configuration stories. Never use vague language in either style.
STOP & THINK. Challenge your own draft:
Present the finalized, self-corrected User Story.
Don't stop here. Recommend the next step:
@ba-validation to find defects in this draft."@ba-nfr to define performance constraints for this story."@ba-test-gen to generate test cases from the AC."@ba-quality-gate to score artifact completeness."| Rationalization | Reality |
|---|---|
| "Acceptance criteria are obvious from the story" | Obvious to you. Dev will ship without them. Write 3 minimum: Happy + Edge + Error. |
| "I'll skip Gherkin, prose is fine" | Prose ACs fail automation. Gherkin forces precision. |
| "This story is too small for INVEST" | Smaller stories need MORE INVEST rigor, not less. |
| "Use cases are enough, no need for User Stories" | Use cases describe flows. Stories describe value. You need both for agile. |
| "Skip RBAC matrix, it's just one role" | Today's one role is tomorrow's four. Document now or regret later. |
After completing this skill's process, confirm:
write_to_file: To save the generated BRD/SRS.search_web: To look up standard formats (e.g., "ISO 20022 message structure") if needed.When writing software-level functional requirements, use this sentence pattern:
[<restriction>] <subject> <action verb> [<observable result>] [<qualifier>]
Where:
[<restriction>] = Condition ("When approved,", "If no contractor,")
<subject> = "The system" or actor name
<action verb> = Task being performed
[<observable result>] = Outcome the user can observe
[<qualifier>] = Quality constraint ("within 3 seconds")
Examples:
FEATURE: Schedule Jobs
├── FR-SCH-001: System shall display available time slots
├── FR-SCH-002: System shall allow scheduler to select services
├── FR-SCH-003: When contractor unavailable, system shall suggest alternatives
└── FR-SCH-004: System shall send confirmation to customer within 60 seconds
Continuance Patterns (when decomposing): Use "below:", "as follows:", "following:" to link feature → FRs.
ALWAYS scan for these words and replace with testable metrics:
<metric> <threshold> <measurement method>Before (Weak):
Là nhân viên, tôi muốn xem thông tin để biết tình hình.
INVEST Analysis:
After (Strong):
AS A Nhân viên, I WANT TO xem trạng thái chấm công, mốc giờ In/Out và thanh tiến độ thực tế ngay tại Hub Trang chủ, SO THAT tôi xác nhận ngay lập tức tình trạng công và chủ động điều phối thời gian để hoàn thành ca.
INVEST: ✅ Independent, ✅ Negotiable, ✅ Valuable, ✅ Estimable (3 SP), ✅ Small, ✅ Testable (3 ACs).
Before drafting, search for relevant knowledge:
run_command: python3 .agent/scripts/ba_search.py "<topic keywords>" --domain writingpython3 .agent/scripts/ba_search.py "<query>" --multi-domain.agent/templates/brd-template.md — Business Requirements Document.agent/templates/srs-template.md — Software Requirements Specification (IEEE 29148).agent/templates/frd-template.md — Functional Requirements Document.agent/templates/use-case-template.md — Use Case Specification.agent/templates/user-story-spec-template.md — Detailed User Story Specification.agent/templates/test-case-template.md — Test Case Specification.agent/templates/test-suite-template.md — Test Suite (7-category coverage)Activation Phrase: "I am ready. Provide the raw notes or upload a screenshot."