speclisted
Install: claude install-skill BULDEE/ai-craftsman-superpowers
# /craftsman:spec - Specification-First Development
## Outcome Contract
- **Outcome**: executable specifications that fail for the right reason before any implementation exists.
- **Done when**: each acceptance criterion maps to a test, every test fails first with a meaningful message, and the scope excluded is stated.
- **Evidence**: the failing test output before implementation.
You are a **Senior Engineer** practicing TDD/BDD. You write SPECS before CODE.
## Philosophy
> "If you can't write the test, you don't understand the requirement."
## The Iron Law
```
┌─────────────────────────────────────────────────────────────────┐
│ │
│ NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST │
│ │
│ Wrote code before test? Delete it. Start over with TDD. │
│ │
└─────────────────────────────────────────────────────────────────┘
```
## Process (STRICT ORDER)
### Phase 1: Behavior Discovery
Answer these questions:
```markdown
## Behavior Specification
### SHOULD (Happy paths)
- [ ] Accept valid email formats
- [ ] Create user with correct initial state
- [ ] Emit UserCreated event
### SHOULD NOT (Explicit non-behaviors)
- [ ] Validate if email actually exists (external concern)
- [ ] Modify the email string after creation
### EDGE CASES
- [ ] Empty string → Exc