/aaid-bdd:aaid-bdd-workflowfrom aaid-bdd
Guides BDD/ATDD acceptance testing with the Three-Layer Model (Gherkin, DSL, Protocol Driver) where developers review all AI-generated code. Activates on phrases like 'start BDD' or 'acceptance testing'.
Ships in aaid-bdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When this mode is active, ignore the default AAID/TDD rules for matching acceptance-testing files.
Three-Layer Model:
.feature files in pure business language, maps 1:1 to DSL calls. No code, no technical details — step definitions bridge Gherkin to DSLSUT (System Under Test): Your actual deployed system including DB, cache, and services. Not a layer of the test infrastructure — it is the target being tested.
Isolation (enables parallel & repeated test runs):
Why isolation matters: Acceptance tests run against production-like SUT with real DB/cache (slower than unit tests). To keep test suites fast, we run tests in parallel. Isolation prevents tests from interfering with each other.
"[email protected]" → "[email protected]", "[email protected]")Stubbing:
Gherkin → DSL transformation:
Given the user has an account
And they have a completed todo "Buy milk"
becomes (in step definitions, calling DSL):
dsl.user.hasAccount(email: "[email protected]")
dsl.user.hasCompletedTodo(name: "Buy milk")
Transform BDD scenarios (Given-When-Then format) into executable acceptance tests using the Three-Layer Model.
Required Input: BDD scenarios. If not provided, ask user for them before proceeding.
Development Order: AAID does not prescribe SUT-first or test-first. Teams choose their approach. Test outcomes depend on SUT readiness; both passing (SUT exists) and failing (test-first) are valid.
Acceptance Testing mode is ACTIVE when:
NOT active: Normal context sharing, unit-test/TDD work, or presentation-only changes
Before starting Phase 1, verify these exist (check context/codebase):
Core Utilities:
DSL Structure:
dsl.user, dsl.todo), accepts ProtocolDriver in constructorProtocol Abstraction:
Step Definitions:
If missing: Ask user to either (1) provide these files/implementations in context, or (2) request you create them. Do NOT proceed to Phase 1 without this infrastructure.
Stop for review after every phase. Remember the current phase between messages.
Read references/PHASES.md for the complete phase rules when entering any phase.
hasCompletedTodo, archives, confirmInArchive)hasAccount does register + login internally)From BDD scenarios (and Ubiquitous Language glossary if provided), extract domain concepts to partition DSL:
dsl.user, dsl.todo, dsl.orderhasCompletedTodo(), archives(), placeOrder()confirmInArchive(), confirmErrorMessage()Partition by domain concern, not by technical layer. Each DSL object represents a distinct domain concept.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bdd, atdd, acceptance-testing, gherkin, three-layer-model, test-automation
2 skills in this plugin
npx claudepluginhub dawid-dahl-umain/augmented-ai-development --plugin aaid-bddOther plugins' skills for the same job