--- name: to-spec description: > Spec-writing stage skill for the architect factory: synthesizes the run's conversation, repo evidence, and research findings into `docs/spec/.md` after grounding. Invoked by the strategist subagent the orchestrator dispatches during `/architect` intake — or directly by the orchestrator in `/architect-fast` (that skill's stage-skill deltas apply) — before decomposition into issues. --- # To Spec Synthesize the spec from what grounding, intake, and research evidence already surfaced; do not interview. Anything genuinely unanswered goes through step 4. ## Process 1. Read the codebase-design vocabulary (`skills/codebase-design/SKILL.md`) before writing a line. Reuse its module, interface, seam, adapter, depth, and locality terms exactly; never substitute component, service, boundary, or API for module or interface. 2. Name the seam(s) this run will exercise before drafting any section. Existing seams are preferred to new ones, at the highest point possible; the ideal number is one. Record them under `## Implementation decisions`. 3. Do not include specific file paths or code snippets in the spec body — they may end up being outdated very quickly. Exception: if a prototype produced a snippet that encodes a decision more precisely than prose can (state machine, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts. 4. Never run the timed-ruling protocol yourself or wait on the human: return every open question to the orchestrator, one line each — `RULING NEEDED: | options: | default: