name: to-spec description: "Transform high-level feature requests and ideas into formal, token-efficient technical specifications with clear contracts, data structures, error handling, and test criteria." metadata: version: "1.0.0"
Skill: To Spec
Convert loose user requirements or concept notes into a hardened technical specification.
Specification Checklist
- Overview & Objectives: 2-3 sentence executive summary of the target functionality.
- Interface Contracts: Precise function signatures, type annotations, and schemas (avoiding
Any). - Data Flow & State Transitions: Step-by-step lifecycle of input to output.
- Boundary & Error Matrix: Explicit behavior for edge cases (missing files, network timeouts, invalid inputs).
- Architectural Guardrails: Hard constraints (Ponytail Decision Ladder check: YAGNI, codebase reuse, stdlib-first; file line limits < 300, no god objects, token budgets).
- Acceptance Criteria: Verifiable assertions and test cases.
Output the specification directly into the planning artifact or docs/specs/<feature>.md.