Awesome-omni-skill BDD from API Spec
Generate Gherkin BDD feature files from API handler definitions — map endpoints to executable business scenarios
install
source · Clone the upstream repo
git clone https://github.com/diegosouzapw/awesome-omni-skill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/diegosouzapw/awesome-omni-skill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/testing-security/bdd-from-api-spec" ~/.claude/skills/diegosouzapw-awesome-omni-skill-bdd-from-api-spec && rm -rf "$T"
manifest:
skills/testing-security/bdd-from-api-spec/SKILL.mdsource content
BDD from API Spec Skill
Automatically generate Gherkin feature files from API handler definitions, producing executable business specifications for each endpoint.
Trigger Conditions
- New handler file is created
- Existing handler endpoint is modified
- BDD scenarios are requested
- User invokes with "write BDD" or "bdd-from-api-spec"
Input Contract
- Required: Path to handler files
- Optional: OpenAPI spec for additional context
Output Contract
- Gherkin
files per handler/resource.feature - Scenario coverage: happy path, error cases, edge cases, auth checks
- Step definition stubs (Go/Godog format)
Tool Permissions
- Read: Handler files, DTO files, service interfaces, OpenAPI spec
- Write: Feature files in
directory, step definition stubsfeatures/ - Search: Grep for handler methods, route registrations
Execution Steps
- Extract endpoints: Parse handler files for all endpoint methods with HTTP method and path
- Identify scenarios: For each endpoint, generate scenarios:
- Happy path (valid request, successful response)
- Authentication failure (missing/invalid token)
- Authorization failure (wrong user/scope)
- Validation failure (invalid input)
- Business rule failure (e.g., insufficient funds, account frozen)
- Idempotency (duplicate request returns same result)
- Generate Gherkin: Write
files with Given/When/Then format.feature - Generate step stubs: Create step definition file stubs for Godog