nwave-ai/nwave/nw-bdd-requirements
Claude Code and agent skill by nwave-ai/nwave
- community
Checking that the SKILL.md file is still in the repository.
BDD requirements discovery methodology - Example Mapping, Three Amigos, conversational patterns, Given-When-Then translation, and collaborative specification
Install
npx vskill@latest install nwave-ai/nwave/nw-bdd-requirementsSKILL.md
The same SKILL.md was published earlier as nwave-ai/nwave/nw-bdd-requirements.
BDD Requirements Discovery
"If you're not having conversations, you're not doing BDD." -- Liz Keogh
BDD discovers "what we don't know we don't know" through collaborative exploration with concrete examples, not tools or formats.
Facilitate product understanding
The PO owns DISCUSS, not merely story decomposition. Start from one actor, concrete situation and intended benefit. Ask one consequential question or a small related group; reflect the answer in the actor's language and invite correction. Use existing answers instead of repeating discovery. Make alternatives and their consequences clear without leading the human toward your preferred formal property. Offer an example when abstraction prevents understanding.
Separate confirmed decisions, proposals, assumptions and open questions. Silence is not agreement; a repeated answer supports those examples, not general model fidelity. Honor interactive, final-review or explicitly delegated work. A delegated PO relays questions through its host; it does not pretend to have interviewed a person. Stop exploring when remaining questions do not change the current scope, observable behavior or material trade-off; retain relevant unknowns visibly.
Natural questions that can reveal properties
Use only questions relevant to the operation and current uncertainty. These are candidate distinctions, not a completeness theorem or a compulsory checklist. Do not name the algebra to the human unless it helps them.
| Ask in the domain | Distinction for downstream design | |
|---|---|---|
| If the person submits twice, what should happen? | Repetition / idempotence | |
| If these actions arrive in the opposite order, what changes? | Order dependence / commutativity | |
| Can they undo it, and until when? | Reversibility / terminal state | |
| When this amount is moved or split, what total must stay the same? | Conservation | |
| Can both of these be true at once? | Mutual exclusion | |
| If it stops halfway, what does the person see and what can they do? | Failure / recovery / compensation | |
| Could doing this leave them with no safe next action? | Progress / non-trapping |
Accept answers such as “order matters” or “we have not decided”. Select operation pairs that share a resource or rule; do not enumerate every mathematical pairing. Record the answer and conditions before deriving a law. Examples remain product choices; the architect determines the appropriate types, laws and proof bounds.
Visual exploration and human view
For a changed human interface, offer a proportionate sketch, wireframe or navigable prototype. Explain the uncertainty it resolves; reuse existing components and honor a declined offer. The host can select nw-ux-designer and a bounded nw-spike; distinguish simulated behavior from real integration. Discuss relevant loading, empty, error, permission and recovery states, without inventing a quota of scenarios. Record what feedback changed, not just that a prototype exists.
Use the brief's nwdes HTML view as the shared reading surface. Put intent, journey, examples, decisions and open questions before formal detail. Ask the human to explain or challenge a concrete consequence when understanding is uncertain; do not turn comprehension checks into an examination or approval ceremony. The renderer cannot repair unclear semantic input.
The Three Amigos
Three perspectives revealing each other's blindspots:
- Problem Owner (PO, BA, Domain Expert): business need | acceptance criteria | domain knowledge
- Problem Solver (Developer, Engineer): technical constraints | implementation complexity | technical edge cases
- Skeptic (Tester, QA): failure modes | edge cases and boundaries | challenge assumptions
Session Structure (25-minute timebox)
- Read user story aloud (2 min) -- shared context
- Identify acceptance criteria/rules (8 min) -- "what must be true for done?"
- Explore examples per rule (12 min) -- concrete scenarios, edge cases
- Capture questions (ongoing) -- unknowns on red cards
- Review and summarize (3 min) -- shared understanding check
If unmappable in 25 min: too large (split) | too uncertain (spike) | team needs practice.
Example Mapping
Four Card Types
- Yellow: User Story (1 per session) | Blue: Business Rules/AC | Green: Concrete Examples | Red: Questions/Unknowns (blockers)
Visual Layout
When to Use Example Mapping
Use when: story entering sprint | multiple edge cases | team uncertain about scope | cross-functional clarification needed. Skip when: trivial well-understood story | pure technical refactoring with no behavior change | strong shared understanding already.
Conversational Patterns
Pattern 1: Context Questioning
Template: "Is there any other context which, when this event happens, will produce a different outcome?"
Purpose: discover edge cases and alternative scenarios.
Result: three rules discovered from one statement.
Pattern 2: Outcome Questioning
Template: "Given this context, when this event happens, is there another outcome that's important?"
Result: one simple statement revealed five important outcomes.
Pattern 3: Concrete Examples
Template: "Can you give me a concrete example?"
Abstract rules hide assumptions. Concrete examples force decisions.
From Examples to Given-When-Then
Translation Rules
- Given = context (preconditions, system state)
- When = event/action (user action, system trigger)
- Then = outcome (observable results, state changes)
Scenario Titles: Business Outcomes Only
Scenario titles describe WHAT the user achieves, never HOW the system implements it.
| BAD (implementation) | GOOD (business outcome) | |
|---|---|---|
| FileWatcher triggers TreeView refresh | Dashboard updates in real-time | |
| Observer writes state.json on event | Wave progress is captured when a phase completes | |
| Debounce prevents rapid writes | Rapid progress changes render smoothly | |
| Atomic write prevents partial reads | Dashboard always sees consistent data |
Rule: If the title contains a class name, method name, file name, or protocol detail, rewrite it as the user-observable outcome.
Example Translation
Example card: "Balance $500, transfer $300 -> succeeds"
Choose examples that distinguish the rule
Use a typical case and add boundary or failure cases when they expose relevant uncertainty. There is no fixed count per rule.
Business Outcome Focus: Five Whys
Apply Five Whys to connect stories to business value:
Focus on behaviors contributing to business results. Challenge features lacking clear business value.
Acceptance Criteria Style
Traditional (implementation-focused) -- avoid:
- "API endpoint accepts POST requests" | "Response returns JSON with 201 status"
BDD-style (outcome-focused) -- use:
- "Customer can submit order even when offline" | "Order confirmed within 2 seconds" | "Customer receives email confirmation"
Shift from "system does X" to "user achieves Y."
Confirmation Bias Defense
Technique 1: Reverse Assumptions
Assumption: "Users fill out the form correctly." Reverse: empty form | garbage data | 50,000 characters | 100 submissions in 10 seconds.
Technique 2: Evil User Persona
"Malicious Mike" tries SQL injection, URL manipulation, unauthorized access. "Careless Cathy" never reads instructions, clicks back mid-process, refreshes constantly.
Technique 3: Challenge the example
Consider a boundary, unusual valid case or failure when it can change the rule. Choose the smallest contrasting example; do not require every category per rule.
Red Card Management
Red cards are unresolved questions. Identify which prevent the current value from being understood and which can be deferred explicitly. Never silently turn an open question into a requirement; do not block unrelated understood work.
Resolution process:
- Capture during session | 2. Assign owner (usually BA/PO) | 3. Set deadline (before dev starts) | 4. Follow-up session if answer reveals new complexity
Good red cards: "Character limit for product descriptions?" | "PDFs or only images?" | "What happens to orders if payment gateway is down?"
Requirements Document Structure
BDD hierarchy:
Each level includes: business value | user context | concrete examples | Given-When-Then scenarios | tracked questions with resolution status.
Bridging Business and Technical Perspectives
Same scenario, understood differently by each role:
- Executive sees: "Platinum customers get priority" (business rule)
- Customer sees: "My urgent issues get fast response" (user benefit)
- Developer sees: "Filter by membership tier and priority" (implementation)
- Tester sees: "Verify queue ordering and SLA compliance" (test case)
Same scenario, multiple valid interpretations, zero translation loss.
Discovery Workshop Format (90 minutes)
Participants: 6-8 people (PO, BA as facilitator, 2-3 developers, 1-2 testers, optional SME).
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingnWave/skills/nw-bdd-requirements/SKILL.md
Popularity
- Repository stars
- 576
- Repository forks
- 58
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 14 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nwave-ai/nwave/nw-bdd-requirements)