What it is for
Produces a specification for a change before any code is written. It is a delta spec: only what changes, grounded in the invariants, reusable components and acceptance criteria that already exist in the code. Use it when- You want a spec, design or plan before building.
- The project uses GitHub Spec Kit or has a
.specifyfolder.
- You are ready to build with no spec step (use Feature Implementation).
Prerequisites
- A repository that CoreStory v3 has indexed. The skill checks this first with
statusandcorpus_info, and stops if the snapshot is missing or the last ingest failed. Setup is on the CoreStory v3 playbooks overview. - The
corestory-localplugin or the MCP connection, so the agent can reach the CoreStory v3 tools. - Optional: GitHub Spec Kit, if you want its artifacts. Without it, the spec is a single file.
How to invoke it
- Automatic. With the Claude Code plugin, a session hook points the agent to the matching skill before it edits or answers. The agent picks
spec-driven-developmentwhen the request fits. - By name. Ask for it directly (
/spec-driven-developmentin Claude Code; the plugin may show it ascorestory-local:spec-driven-development), or say “use the spec-driven-development skill” in other agents. - From a rules file. Without the plugin hook, add the one-line fallback from the overview to
CLAUDE.mdorAGENTS.md. - With a
.specify/folder, the skill feeds Spec Kit’s commands and does the grounding and validation itself.
What it produces
SPEC.mdin the repository root (or the file you name; with Spec Kit,.specify/memory/features/<name>/spec.md): grounding, invariants, reuse, delta, acceptance criteria, a pre-mortem, a file-level plan, andNot verified.
How it works
- Preflight with
statusandcorpus_info. - Ground first:
search,connectionsandread_filefor patterns and reusable parts;searchwithkind:"sao:Rule"andentitywith evidence for invariants, including those enforced in other layers. - Specify in order: invariants, reuse, delta, and testable acceptance criteria. Mark anything inferred.
- Pre-mortem:
rules_foron each file the delta touches, thenentityandread_file, and record conflicts and failure modes. - Write the file-level plan, ordered by dependency using
connections. - If you ask for it, write failing tests from the criteria, implement, and record what was tested.
Limits
- CoreStory does not validate specs. The pre-mortem is the agent’s reading of the rules and source, and it is recorded as such.
- Spec Kit has no command for the validate and verify steps, so the skill does those itself and edits the artifacts directly.
- CoreStory reads and indexes code. It does not run or test it. Any test results in the output are the agent’s own, from commands it ran.
- Results describe the ingested snapshot, which may differ from your working tree if files changed since.
- Hits from
searchare leads, not proof. The skill reads the cited lines before it relies on a rule, and lists what it could not check underNot verified. - Compared with the hosted playbook: the hosted playbook starts from generated product and technical documents in a hosted project. This one grounds the spec in rules and code read from the local graph.
Skill source
The full recipe is the skill file itself:spec-driven-development/SKILL.md on GitHub.