<!-- Adapted from mattpocock/skills (MIT), path skills/engineering/to-spec, retrieved 2026-10-09 --> --- name: to-spec description: Turn what the current session observed into a cleanroom feature spec (EARS requirement + acceptance criteria) and register it in the inventory. Use after a behavior-recording or observation pass, or when the user says "write the spec", "spec this feature", "capture what we observed". --- Synthesis, not interview. Do not question the user again and do not open the...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of To Spec?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/climashscape-to-spec)
<!-- Adapted from mattpocock/skills (MIT), path skills/engineering/to-spec, retrieved 2026-10-09 -->
---
name: to-spec
description: Turn what the current session observed into a cleanroom feature spec (EARS requirement + acceptance criteria) and register it in the inventory. Use after a behavior-recording or observation pass, or when the user says "write the spec", "spec this feature", "capture what we observed".
---
Synthesis, not interview. Do not question the user again and do not open
the reference implementation (R1). Your sources are what this session
already holds: behavior recordings, public specifications, the behavior
record, prior devlog entries and parity numbers.
## Process
1. Read `docs/03-specifications.md` and
[templates/spec/feature-spec.md](../../../templates/spec/feature-spec.md)
first. Use the inventory's vocabulary (feature ids, area names) so
the spec is diffable against it.
2. Plan the oracles before writing prose. For each acceptance criterion
pick the oracle family (golden master / corpus / pixel / inventory
check) at the highest public surface available, and confirm the set
with the user before implementation starts. Fewer oracle points,
higher up: prefer one end-to-end golden over several internal
probes. One-line note per oracle: what it catches, what it misses.
3. Write `spec/<feature-id>.md` from the template:
- **Requirement (EARS style)**: `WHEN <condition> THE SYSTEM SHALL
<observable response>`. If you cannot name the oracle for a line,
the requirement is not ready.
- **Acceptance criteria**: numbered, each mapped to an oracle id.
- **Public-spec basis**: cite document and section, or the behavior
record anchor. If neither exists, stop and record behavior first;
a spec without a basis is a guess.
- **Decisions, not code**: no file paths or code snippets in the
spec; decisions age slower than their implementations. Exception:
a snippet that encodes a decision more precisely than prose
(state machine, header layout, schema) may be inlined, trimmed to
the decision, and labeled with where it was observed.
- **Out of scope / open questions**: every unresolved point marked
`[NEEDS CLARIFICATION]`. Behavior is never guessed at spec time.
4. Register the feature in `templates/spec/inventory.toml` (or the
host project's inventory): id, area, title, links to spec and
acceptance test. Status stays `draft` until reviewed.
5. Report the coverage delta the new entries represent, and list any
acceptance criteria that still lack an oracle — those are the
spec's open risks, not details.
## References
- Specification layer and `[NEEDS CLARIFICATION]` convention:
`docs/03-specifications.md`
- Feature spec template and inventory shape: `templates/spec/`
- Failure catalogue rows 2 (scope drift) and 6 (spec rot):
`docs/10-failure-modes.md`