Spec-driven workflow covering requirement gathering, spec authoring, implementation review, and verification — with skills, rules, and evaluation scenarios.
96
90%
Does it follow best practices?
Impact
98%
1.19xAverage score across 9 eval scenarios
Passed
No known issues
Create and maintain .spec.md files that capture functional requirements and link to their verification tests.
requirement-gathering produces confirmed requirementsDetermine scope. Decide whether to create a new spec or update an existing one. One spec per logical unit of functionality — don't combine unrelated features.
Write frontmatter. Every spec requires YAML frontmatter:
---
name: Feature Name
description: Brief description of what this spec covers
targets:
- ../src/path/to/implementation.py
- ../src/path/to/related/**/*.py
---name: Human-readable feature namedescription: One-line summarytargets: Relative paths or glob patterns to implementation files. At least one required.Document requirements. Write clear, scannable requirements:
Link tests. Add [@test] links inline, next to the requirements they verify:
- Invalid passwords return 401
`[@test] ../tests/test_auth_invalid_password.py`Review against styleguide. Check the spec against the Spec Styleguide: concise, scannable, context around test links, clear headings, specific about behavior, granular test files.
Save the spec. Place spec files in the project's specs/ directory with a .spec.md extension.
---
name: Shopping Cart
description: Add, remove, and checkout operations for the shopping cart
targets:
- ../src/cart.py
- ../src/checkout.py
---
# Shopping Cart
## Core operations
```python
def add_item(cart_id: str, product_id: str, quantity: int) -> Cart: ...
def remove_item(cart_id: str, product_id: str) -> Cart: ...
def checkout(cart_id: str, payment_method: str) -> Order: ...[@test] ../tests/cart/test_cart_operations.py
ValueError
[@test] ../tests/cart/test_quantity_validation.py[@test] ../tests/cart/test_add_existing_item.pyCheckoutError
[@test] ../tests/cart/test_empty_checkout.py[@test] ../tests/cart/test_stock_check.py## Spec format reference
See [Spec Format](../../docs/spec-format.md) for the complete format specification.