Overview
This is a companion guide to the Spec-Driven Development playbook. It covers how to integrate GitHub’s Spec Kit — a specification-driven development framework — with CoreStory’s architecture-grounded SDD workflow. Read the main playbook first. It defines the six-phase methodology (Ground, Specify, Validate, Plan, Implement, Verify & Capture) that this guide builds on. This document covers only the Spec Kit-specific integration points: where Spec Kit commands slot into each phase, how its artifact system works alongside CoreStory conversations, and practical patterns for combining the two. The relationship: CoreStory provides architectural grounding. Spec Kit provides structured artifact generation. CoreStory tells you what the architecture actually is; Spec Kit gives you a framework for writing it down in a consistent, machine-readable format. Neither replaces the other. When to use Spec Kit + CoreStory: Projects that benefit from persistent, file-based specification artifacts — particularly teams that want version-controlled specs in their repository alongside the code. Spec Kit’s.specify/memory/ directory gives you a structured artifact trail; CoreStory conversations give you the architectural reasoning behind those artifacts.
When to skip Spec Kit: If you don’t need file-based spec artifacts — if the CoreStory conversation thread is sufficient as your specification record — the main playbook’s workflow works standalone. Spec Kit adds value when you want specs committed to the repo, reviewed in PRs, or referenced across multiple features via a shared constitution.
Prerequisites
Everything from the main Spec-Driven Development playbook, plus: Install Spec Kit:claude, copilot, cursor-agent, gemini, qwen, opencode, codex, windsurf, and others. Run specify init --help for the current list.
Verify: Ask your agent to “List my CoreStory projects” (MCP connection) and check that .specify/ exists in the project root (Spec Kit initialization).
How the Workflows Map Together
The main playbook has six phases. Spec Kit has five commands. Here’s how they align:| Main Playbook Phase | Spec Kit Command | Integration Pattern |
|---|---|---|
| Phase 1 — Ground | /speckit.constitution | CoreStory findings feed the constitution |
| Phase 2 — Specify | /speckit.specify | Delta spec constrains the Spec Kit specification |
| Phase 3 — Validate | (no Spec Kit equivalent) | CoreStory-only — validate the .specify artifacts |
| Phase 4 — Plan | /speckit.plan + /speckit.tasks | Validated spec feeds planning and task breakdown |
| Phase 5 — Implement | /speckit.implement | Standard TDD implementation |
| Phase 6 — Verify & Capture | (no Spec Kit equivalent) | CoreStory-only — verify invariants and capture knowledge |
Spec Kit Artifacts
Spec Kit stores its artifacts in.specify/memory/:
| Artifact | Location | Created By |
|---|---|---|
| Constitution | .specify/memory/constitution.md | /speckit.constitution |
| Feature spec | .specify/memory/features/{name}/spec.md | /speckit.specify |
| Technical plan | .specify/memory/features/{name}/plan.md | /speckit.plan |
| Task breakdown | .specify/memory/features/{name}/tasks.md | /speckit.tasks |
Phase-by-Phase Integration
Follow the main playbook for the full workflow. This section covers only the Spec Kit-specific additions at each phase.Phase 1: Ground → Constitution
After completing the main playbook’s Phase 1 grounding queries (architectural patterns, existing services, invariants, design history), feed the findings into Spec Kit’s constitution command:.specify/memory/constitution.md — a constitution with specific file references, real patterns, and actual constraints.
Spec Kit without CoreStory produces constitutions with generic guidance like “follow clean code practices.” Spec Kit with CoreStory produces constitutions that reference UserService by name, specify that all async operations use the TaskQueue pattern, and note that soft deletes are mandatory for audit-sensitive models.
The constitution is a living document. After completing features, ask CoreStory whether new patterns emerged that should be captured, and update the constitution accordingly.
Phase 2: Specify → Specification
After the main playbook’s Phase 2 (writing the delta specification with invariants, reuse, and delta sections), use Spec Kit to structure the output:.specify/memory/features/{name}/spec.md — a specification that inherits the delta structure from the main playbook.
Phase 3: Validate (CoreStory Only)
Spec Kit has no validation command. This is the gap. After Spec Kit generates the specification artifact, submit it to CoreStory for architectural pre-mortem — exactly as described in the main playbook’s Phase 3. Paste the contents of.specify/memory/features/{name}/spec.md into the CoreStory query:
/speckit.specify if the changes are substantial, or edit .specify/memory/features/{name}/spec.md directly for minor corrections.
Phase 4: Plan → Plan + Tasks
After validation, use Spec Kit’s planning and task commands with CoreStory’s file-level mapping:.specify/memory/features/{name}/plan.md and .specify/memory/features/{name}/tasks.md.
Phase 5: Implement
Run/speckit.implement and let the agent follow the task list. The main playbook’s Phase 5 applies in full — write failing tests, implement in dependency order, validate with CoreStory at each step.
The Spec Kit task artifacts provide structured checklists. CoreStory provides real-time validation during implementation. They complement each other.
Phase 6: Verify & Capture (CoreStory Only)
Spec Kit has no verification or capture command. This is the other gap. Follow the main playbook’s Phase 6 in full: verify spec compliance with CoreStory, verify invariant preservation, commit with context, rename the CoreStory conversation. The Spec Kit artifacts in.specify/memory/ persist in the repo; the CoreStory conversation persists as the architectural reasoning record.
Agent Configuration
The main playbook’s Agent Implementation Guides include full configuration files for Claude Code, GitHub Copilot, Cursor, and Factory.ai. To add Spec Kit awareness to those configurations, append the following to the relevant config file.Claude Code — Skill File Addition
Append to.claude/skills/spec-driven-dev/SKILL.md (after the main playbook’s skill content):
GitHub Copilot — Instructions Addition
Append to.github/copilot-instructions.md:
Cursor — Rule Addition
Append to.cursor/rules/spec-driven-dev.mdc:
Factory.ai — Droid Addition
Append to the droid’s instructions in.factory/droids/spec-driven-dev.md:
Tips
CoreStory before Spec Kit at every phase. The pattern is always: query CoreStory → get grounded context → feed context into Spec Kit command. Never run a Spec Kit command without CoreStory context first. The constitution is your highest-leverage artifact. A grounded constitution improves every subsequent Spec Kit command because Spec Kit references it automatically. Invest the most CoreStory query time here. Update the constitution after features ship. After completing a feature, ask CoreStory: “Did this implementation introduce new patterns that should be captured?” Feed learnings back into.specify/memory/constitution.md.
Version-control Spec Kit artifacts. Commit .specify/memory/ to the repo. This gives you PR-reviewable specs and a historical record of feature specifications alongside the code.
Use CoreStory conversations for the “why,” Spec Kit artifacts for the “what.” The spec artifact says what will be built. The CoreStory conversation explains why those decisions were made, what alternatives were considered, and what architectural constraints shaped the design.
Troubleshooting
Spec Kit commands not available. Verify Spec Kit is initialized: check for.specify/ in the project root. If missing, run specify init --here --ai [your-agent]. Ensure you launched the agent from the initialized project directory.
Constitution is too generic despite CoreStory queries.
Run CoreStory queries separately before /speckit.constitution. Review responses, extract the most specific details (file names, class names, patterns), and paste them directly into the constitution prompt. Generic input produces generic output.
Spec Kit plan proposes creating services that already exist.
This means Phase 3 (Validate) was skipped or insufficient. Submit the plan to CoreStory and ask specifically: “What existing services should this feature leverage instead of creating new ones?” Update the plan artifacts.
Spec Kit artifacts and CoreStory conversation diverge.
The CoreStory conversation is the source of truth for architectural reasoning. If the Spec Kit artifacts drift (e.g., someone edits them without CoreStory validation), re-run the validation phase. Paste the updated artifact into CoreStory and ask for a fresh architectural check.
All other issues — CoreStory generic responses, project not found, agent not following the workflow — are covered in the main Spec-Driven Development playbook’s Troubleshooting section.