planning-bdd-atdd
Use when the user asks to write Gherkin scenarios, Given/When/Then, BDD or ATDD, Cucumber, Reqnroll (formerly SpecFlow), Behave, example mapping or three…
от j4flmao★ 47 звёзд на GitHub
Установить planning-bdd-atdd в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
BDD and ATDD
Purpose
Drive development through shared examples and executable specifications using Behavior-Driven Development and Acceptance Test-Driven Development. Ensures shared understanding across business and technical stakeholders, produces living documentation that stays in sync with the code, and enables automated validation of business rules.
Agent Protocol
Trigger
"BDD", "ATDD", "behavior-driven development", "acceptance test-driven development", "Gherkin", "Cucumber", "SpecFlow", "Reqnroll", "specification by example", "executable specification", "living documentation", "three amigos", "example mapping", "acceptance criteria", "scenario", "feature file", "step definition".
Input Context
- Feature or user story to be implemented
- Business rules and acceptance criteria (existing or to be defined)
- Technical stack: programming language, test framework, BDD tool
- Key examples of expected behavior (inputs, outputs, edge cases)
- Stakeholders available for three amigos session
- Existing test infrastructure (CI pipeline, reporting)
Output Artifact
Gherkin feature files with scenarios, step definition stubs, and example maps that serve as executable specifications and living documentation.
Response Format
## Feature: {name}
{feature description in business language}
### Scenario: {scenario name}
Given {precondition}
When {action}
Then {expected outcome}
### Scenario Outline: {name}
Given {precondition with <placeholder>}
When {action with <placeholder>}
Then {expected outcome with <placeholder>}
Examples:
| placeholder1 | placeholder2 |
| value1 | value2 |
## Example Map
{structured examples table: Rule | Example | Expected Result}
No preamble. No postamble. No explanations.
Completion Criteria
- Feature files written in Gherkin with business-readable language
- Scenarios cover happy path, error cases, and edge cases
- Scenario Outlines used for data-driven scenarios
- Step definitions mapped to automation implementation
- Three amigos session completed with shared understanding
- Example map documented linking rules to concrete examples
- Tags applied for organization and selective execution
- CI pipeline configured to run feature files as automated tests
Max Response Length
7000 tokens
Decision Trees
When to Use BDD vs ATDD vs Both
Are you defining acceptance criteria for a user story?
|-- YES --> Is there ambiguity in business rules?
| |-- YES --> Use Three Amigos + Example Mapping first
| | Output: shared understanding, concrete examples
| |-- NO --> Is the feature complex with many edge cases?
| |-- YES --> Use ATDD with example mapping
| |-- NO --> Use standard acceptance criteria
|-- NO --> Are you automating validation of business rules?
|-- YES --> Use BDD with Gherkin + step definitions
|-- NO --> Consider unit or integration tests instead
Are you writing automated tests for an existing feature?
|-- YES --> Are you adding new behavior?
| |-- YES --> BDD (write scenarios first)
| |-- NO --> Integration or unit tests
|-- NO --> Start with Three Amigos
Gherkin Structure Decision Tree
How many data variations does the scenario need?
|-- 1 set of values --> Use Scenario (Given-When-Then)
|-- 2-10 sets --> Use Scenario Outline + Examples table
|-- 10+ sets --> Use Scenario Outline + Data Table from external source
|-- Dynamic/runtime data --> Use Scenario with Data Table
Does the scenario need setup steps shared across scenarios?
|-- YES --> Use Background section
|-- NO --> Keep Given steps in each scenario
BDD Maturity Model
| Level | Name | Characteristics | Practices |
|---|---|---|---|
| 1 | Initial | No BDD, manual testing, requirements in prose | Ad-hoc acceptance criteria |
| 2 | Structured | Gherkin feature files, basic step definitions | Three amigos occasionally |
| 3 | Integrated | Scenarios drive development, CI execution | TDD + BDD, living documentation |
| 4 | Optimized | Specification by Example, automated reporting | Example maps, behavior analytics |
Workflow
Step 1: Three Amigos Session
Bring together business analyst (what problem to solve), developer (how to build it), and tester (what could go wrong). Walk through the feature or story. Define shared vocabulary — agree on the terms used in scenarios. Identify key examples that capture the behavior. Surface assumptions and implicit rules early. The output is a shared understanding and a set of concrete examples, not a specification document.
Session structure: 30-60 minutes, whiteboard or digital collaboration tool. Begin with the feature description. Each amigo describes their understanding. Identify differences in interpretation — those are the highest-value areas for examples. Document rules explicitly. Capture questions for follow-up. End with 3-10 concrete e
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/atdd-workflow.md
- references/bdd-atdd-advanced.md
- references/bdd-atdd-fundamentals.md
- references/bdd-tools.md
- references/gherkin-deep-dive.md
- references/spec-example.md
FAQ
Что делает скилл planning-bdd-atdd?
Use when the user asks to write Gherkin scenarios, Given/When/Then, BDD or ATDD, Cucumber, Reqnroll (formerly SpecFlow), Behave, example mapping or three amigos sessions. Produces executable specifications and step definitions. Not for UAT sign-off (use quality-acceptance-testing) or unit tests (use quality-unit-testing).
Как установить скилл planning-bdd-atdd?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл planning-bdd-atdd запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…