Skip to content
Back to skills

To Spec

ASecurity

<!-- 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...

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 28, 2026
developmentgo

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add climashscape/agentic-cleanroom --skill to-spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of To Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for To Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/climashscape-to-spec/badge)](https://www.skillsdirectory.com/skills/climashscape-to-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
<!-- 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`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.