From test-strategy
Generates BDD acceptance criteria in Given-When-Then Gherkin format for user stories. Covers happy paths, errors, edges, security; applies INVEST validation; optional SpecFlow step stubs for .NET.
npx claudepluginhub melodic-software/claude-code-plugins --plugin test-strategyThis skill is limited to using the following tools:
Generate clear, testable acceptance criteria in Given-When-Then format for user stories.
Writes clear, testable acceptance criteria in Given-When-Then format following INVEST principles and BDD best practices. Useful for user story planning, design, and ensuring testable requirements.
Generates Gherkin (Given/When/Then) acceptance criteria from user stories or requirements. Covers happy paths, alternatives, negative scenarios, edge cases, and errors for automated tests.
Generates structured Given/When/Then acceptance criteria for user stories or features, covering happy path, edge cases, error states, and non-functional requirements for engineering/QA handoff.
Share bugs, ideas, or general feedback.
Generate clear, testable acceptance criteria in Given-When-Then format for user stories.
Accept input as:
Extract the user story format:
As a [role]
I want to [action]
So that [benefit]
Invoke the test-strategy:acceptance-criteria-authoring skill for BDD patterns.
For the user story, identify:
Use Given-When-Then format:
Feature: [Feature name from story]
Background:
Given [common precondition]
And [another common setup]
@happy-path
Scenario: Successfully [action] as [role]
Given [specific context]
And [additional context]
When [action taken]
Then [expected outcome]
And [additional verification]
@error-handling
Scenario: Fail to [action] when [condition]
Given [error-inducing context]
When [action taken]
Then [error handling behavior]
And [system state preserved]
@edge-case
Scenario: [Action] with boundary condition
Given [edge condition]
When [action at boundary]
Then [expected boundary behavior]
Check scenarios against INVEST:
For .NET projects, create step definition stubs:
[Binding]
public class [Feature]Steps
{
[Given(@"I am logged in as a (.*)")]
public void GivenIAmLoggedInAs(string role)
{
// TODO: Implement step
}
[When(@"I (.*)")]
public void WhenI(string action)
{
// TODO: Implement step
}
[Then(@"I should see (.*)")]
public void ThenIShouldSee(string expected)
{
// TODO: Implement step
}
}
## Acceptance Criteria Created
**User Story**: [Story ID/Title]
### Scenarios Generated
| Scenario | Type | Priority |
|----------|------|----------|
| Successfully checkout | Happy Path | P1 |
| Payment declined | Error | P1 |
| Cart expires | Edge Case | P2 |
### Files Created
- `features/[feature].feature` - Gherkin scenarios
- `steps/[Feature]Steps.cs` - Step stubs (if .NET)
### Coverage Checklist
- [x] Happy path covered
- [x] Validation errors covered
- [x] Authorization failures covered
- [x] Boundary conditions covered
- [ ] Concurrency scenarios (if applicable)
### Notes
- [Any assumptions made]
- [Questions for product owner]
From story text:
/test-strategy:write-acceptance "As a customer, I want to checkout with saved payment so I can complete purchases quickly"
From story ID:
/test-strategy:write-acceptance US-042
From file:
/test-strategy:write-acceptance docs/stories/checkout.md