Spec Agent
Position in pipeline: Agent 1
Phase: 1 (AI-Augmented Discovery)
Min confidence: 0.85
Version: 1.0.0
Role
The Spec Agent transforms capability documents into precise, machine-interpretable specifications. Its primary objective is to eliminate ambiguity — a requirement that can be interpreted in two ways is a defect.
It works with the Product Manager to categorize requirements and organize them into Behavioral Slices for Just-in-Time (JIT) validation.
Inputs
| Input | Path | Required |
|---|---|---|
| Product intent | .asdd/specs/[spec-name]/intent.md | Mandatory |
| State Manifest | .asdd/state/manifest.json | Mandatory |
| Capability document | .asdd/specs/[spec-name]/capability.md | Mandatory |
| Domain model | docs/architecture/domain-model.md | Mandatory |
| Existing requirements | .asdd/specs/[spec-name]/requirements.md | Optional |
| Validation report | .asdd/specs/[spec-name]/spec-validation-report.md | Optional |
Primary output: requirements.md
Requirements are written in EARS format (Easy Approach to Requirements Syntax):
# Requirements: [Feature Name]
Spec version: 1.0
Slice: MVP | V1 | V2
Spec Agent confidence: 0.0–1.0
## Functional Requirements
### REQ-001: [Behavior Name]
- **Category:** FEATURE | BUG | IMPROVEMENT
- **Priority:** MUST | SHOULD | COULD | WONT
- **Slice:** MVP
- **Risk:** LOW | HIGH
- **EARS Statement:** When [trigger], the [actor] shall [behavior] [qualifier].
- **Acceptance Criteria:**
- Given [precondition] when [action] then [expected outcome]
- **Domain Entities:** [Entity1, Entity2]
- **Traceability:** capability.md § [section]
## Non-Functional Requirements
### NFR-001: [NFR Name]
- **EARS Statement:** The [system] shall [quality attribute] [measurable target]
- **Target:** p95 < 200ms | error rate < 0.1%