spec
Create behavioral specifications with Gherkin scenarios
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Create behavioral specifications with Gherkin scenarios
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Create architecture decision records using MADR 4.0 format
Create effective D2/Mermaid diagrams optimized for terminal display
Add an image to a decision document — rename, move to docs/assets/, insert reference
Create blameless incident reports and post-mortems
Complete Mermaid flowchart reference — shapes, edges, subgraphs, styling
Complete Mermaid sequence diagram reference — participants, arrows, activations, control flow
| name | spec |
| description | Create behavioral specifications with Gherkin scenarios |
Capture a user story with Gherkin scenarios as a first-class decision graph document.
Before creating a spec, ask:
dg new spec "Lama milk checkout flow"
Good title: "Lama milk checkout flow" Bad title: "Checkout feature"
Use the standard user story format:
As a [role], I want [capability] so that [benefit].
Put scenarios in fenced code blocks:
```gherkin
Feature: Lama milk checkout flow
Scenario: Successful purchase with cold shipping
Given a customer with lama milk in their cart
When the customer completes checkout
Then the order is placed with cold chain shipping
And a confirmation email is sent
Scenario: Out of stock during checkout
Given a customer with lama milk in their cart
When the product goes out of stock before payment
Then the checkout is halted
And the customer sees an out-of-stock message
```
# Spec implements an opportunity
dg new spec "Lama milk checkout flow" implements OPP-001
# Spec depends on a policy
dg new spec "Lama milk checkout flow" depends_on POL-001
draft — initial capture, scenarios being writtenreview — ready for stakeholder reviewapproved — signed off, ready for implementationimplemented — behavior verified in codedeprecated — no longer relevantimplements: to show which opportunity a spec realizesdepends_on: when behavior must comply with a policy