agentic-workflows-blueprint.workflow.mattpocock.to-spec
Goal
Goal
Synthesize orientation briefs, grilling decision logs, domain models, technical research spikes, and prototype learnings into a rigorous, unambiguous executable technical specification saved at docs/tasks/task.<reference>.md.
Scope
- Applies to: Transforming conceptual discovery and research artifacts into executable implementation specifications and task breakdowns.
- Does not cover: Direct code execution or preliminary discovery (use upstream Matt Pocock skills or execution phase).
Triggers
- "/to-spec"
- "Convert findings to executable spec"
- "Generate specification from prototype and domain model"
- "To-spec conversion"
Inputs
wayfinderBrief: Orientation brief (wayfinder.md).
decisionLog: Grilling decision log (decision-log.md).
domainModel: Domain entity & state machine specification (domain-model.md).
researchReport (optional): Technical research spike report (research-spike.md).
prototypeReport (optional): Prototype retrospective (prototype-report.md).
projectSlug: Short identifier for the repository.
Invariants (Guardrails)
- Unambiguous Task Mapping: Every task in
docs/tasks/task.<reference>.md must specify exact target file paths, explicit dependencies, step-by-step code changes, and verification commands.
- Enforce UUIDv7 Identity Standards: Ensure all data models, schemas, and resource IDs in the spec mandate UUIDv7 for time-ordered sorting.
- Strict Phase Gating: The generated specification (
docs/tasks/task.<reference>.md) must obtain explicit user approval before execution (Phase 9 of embed-aihero-radioactive).
- Isolated Task File Path: Save specifications under
docs/tasks/task.<reference>.md to avoid cluttering root and prevent overwriting tasks from other sessions.
Procedure
1) Consolidate Upstream Evidence
- Gather all upstream artifacts:
wayfinder.md, decision-log.md, domain-model.md, research-spike.md, and prototype-report.md.
- Verify that all critical unknowns have been resolved and domain entities have UUIDv7 primary keys.
2) Structure Technical Specification (docs/tasks/task.<reference>.md)
Produce a structured task specification file at docs/tasks/task.<reference>.md formatted as follows:
# Technical Specification & Execution Plan: <Feature Title>
## 1. Executive Context & Objectives
- **Goal**: Clear 1-2 sentence objective.
- **Scope**: Explicit In-Scope vs. Out-of-Scope boundaries.
- **Key Invariants**: UUIDv7 primary keys, security rules, performance SLA.
## 2. Architecture & Domain Model
- Summary of entities, UUIDv7 schemas, state machines, and API endpoints.
- Embedded Mermaid ER / State diagrams from Phase 3.
## 3. Sequential Task Breakdown
- [ ] Task 1: <Task Title>
- **Target Files**: `path/to/file.ext`
- **Dependencies**: None / Task X
- **Changes Required**: Detailed description of code/schema edits.
- **Verification Command**: `npm run test` or `bun test path/to/spec`
- [ ] Task 2: <Task Title>
- **Target Files**: `path/to/file.ext`
- **Dependencies**: Task 1
- **Changes Required**: Detailed description of edits.
- **Verification Command**: `npm run test`
## 4. Quality Assurance & Test Strategy
- Unit test requirements, integration tests, and performance/security verification steps.
## 5. Rollback & Operational Safety Playbook
- Pre-change snapshot commands, change window constraints, and step-by-step rollback procedures.
3) Review & Sanity-Check Specification
- Verify that all target file paths exist or have parent directories defined.
- Ensure task dependencies form a directed acyclic graph (DAG) without circular loops.
- Confirm that verification commands are non-interactive and testable.
4) Present Specification & Gate on User Approval
- Present
docs/tasks/task.<reference>.md to the user.
- Gate on explicit user approval before proceeding to Phase 8 (Blueprint Contract) and Phase 9 (Execute).
Outputs
docs/tasks/task.<reference>.md: Comprehensive technical specification and execution breakdown ready for implementation.
Review gate
References
../../../SKILL.md
../domain-modeling/SKILL.md
../prototype/SKILL.md
../../plan-to-blueprint/SKILL.md
../../embed-aihero-radioactive/SKILL.md
- Interactive HTML View
1---2name: to-spec3description: Specification synthesis protocol to transform wayfinder orientation, grilling logs, domain models, research spikes, and prototypes into actionable, executable technical plans.4---56## agentic-workflows-blueprint.workflow.mattpocock.to-spec78### Goal910### Goal1112Synthesize orientation briefs, grilling decision logs, domain models, technical research spikes, and prototype learnings into a rigorous, unambiguous executable technical specification saved at `docs/tasks/task.<reference>.md`.1314---1516### Scope1718- **Applies to**: Transforming conceptual discovery and research artifacts into executable implementation specifications and task breakdowns.19- **Does not cover**: Direct code execution or preliminary discovery (use upstream Matt Pocock skills or execution phase).2021---2223### Triggers2425- "/to-spec"26- "Convert findings to executable spec"27- "Generate specification from prototype and domain model"28- "To-spec conversion"2930---3132### Inputs3334- `wayfinderBrief`: Orientation brief (`wayfinder.md`).35- `decisionLog`: Grilling decision log (`decision-log.md`).36- `domainModel`: Domain entity & state machine specification (`domain-model.md`).37- `researchReport` (optional): Technical research spike report (`research-spike.md`).38- `prototypeReport` (optional): Prototype retrospective (`prototype-report.md`).39- `projectSlug`: Short identifier for the repository.4041---4243### Invariants (Guardrails)44451. **Unambiguous Task Mapping**: Every task in `docs/tasks/task.<reference>.md` must specify exact target file paths, explicit dependencies, step-by-step code changes, and verification commands.462. **Enforce UUIDv7 Identity Standards**: Ensure all data models, schemas, and resource IDs in the spec mandate UUIDv7 for time-ordered sorting.473. **Strict Phase Gating**: The generated specification (`docs/tasks/task.<reference>.md`) must obtain explicit user approval before execution (Phase 9 of embed-aihero-radioactive).484. **Isolated Task File Path**: Save specifications under `docs/tasks/task.<reference>.md` to avoid cluttering root and prevent overwriting tasks from other sessions.4950---5152### Procedure5354#### 1) Consolidate Upstream Evidence55561. Gather all upstream artifacts: `wayfinder.md`, `decision-log.md`, `domain-model.md`, `research-spike.md`, and `prototype-report.md`.572. Verify that all critical unknowns have been resolved and domain entities have UUIDv7 primary keys.5859#### 2) Structure Technical Specification (`docs/tasks/task.<reference>.md`)6061Produce a structured task specification file at `docs/tasks/task.<reference>.md` formatted as follows:6263```markdown64# Technical Specification & Execution Plan: <Feature Title>6566## 1. Executive Context & Objectives67- **Goal**: Clear 1-2 sentence objective.68- **Scope**: Explicit In-Scope vs. Out-of-Scope boundaries.69- **Key Invariants**: UUIDv7 primary keys, security rules, performance SLA.7071## 2. Architecture & Domain Model72- Summary of entities, UUIDv7 schemas, state machines, and API endpoints.73- Embedded Mermaid ER / State diagrams from Phase 3.7475## 3. Sequential Task Breakdown76- [ ] Task 1: <Task Title>77 - **Target Files**: `path/to/file.ext`78 - **Dependencies**: None / Task X79 - **Changes Required**: Detailed description of code/schema edits.80 - **Verification Command**: `npm run test` or `bun test path/to/spec`8182- [ ] Task 2: <Task Title>83 - **Target Files**: `path/to/file.ext`84 - **Dependencies**: Task 185 - **Changes Required**: Detailed description of edits.86 - **Verification Command**: `npm run test`8788## 4. Quality Assurance & Test Strategy89- Unit test requirements, integration tests, and performance/security verification steps.9091## 5. Rollback & Operational Safety Playbook92- Pre-change snapshot commands, change window constraints, and step-by-step rollback procedures.93```9495#### 3) Review & Sanity-Check Specification96971. Verify that all target file paths exist or have parent directories defined.982. Ensure task dependencies form a directed acyclic graph (DAG) without circular loops.993. Confirm that verification commands are non-interactive and testable.100101#### 4) Present Specification & Gate on User Approval1021031. Present `docs/tasks/task.<reference>.md` to the user.1042. **Gate on explicit user approval** before proceeding to Phase 8 (Blueprint Contract) and Phase 9 (Execute).105106---107108### Outputs109110- `docs/tasks/task.<reference>.md`: Comprehensive technical specification and execution breakdown ready for implementation.111112---113114### Review gate115116- [ ] All upstream artifacts (wayfinder, decision log, domain model, research, prototype) integrated.117- [ ] Tasks contain exact file paths, explicit edits, and verification commands.118- [ ] UUIDv7 primary key standard enforced for all data models.119- [ ] Specification presented to user and explicit approval obtained.120121---122123### References124125- `../../../SKILL.md`126- `../domain-modeling/SKILL.md`127- `../prototype/SKILL.md`128- `../../plan-to-blueprint/SKILL.md`129- `../../embed-aihero-radioactive/SKILL.md`130- [Interactive HTML View](./README.html)