A methodology framework for collaborating with Claude on software projects β without losing the plot between sessions.
π Full documentation: tschonsen.github.io/spec-driven-claude-development
Claude has no memory between sessions. Every conversation starts cold. You end up re-explaining the project, re-stating the rules, or β worse β letting Claude make inconsistent decisions across sessions because nothing binds it to a previous one.
The usual answer is to write a CLAUDE.md with the rules. That works for small projects. For anything larger, it decays: the rules get ignored, the plans go stale, the state files drift from reality.
SDCD ships in two complementary layers. Use either, use both.
Two files that the installer drops into ~/.claude/:
CLAUDE.mdβ Β§1 core rules. Loaded automatically in every Claude Code session. Covers context hygiene, decision tiers, code quality, plan-vs-code alignment, state hygiene, and brain files.methodology.mdβ Β§2βΒ§7 detailed procedures. Loaded on demand (project start, audits, planning steps).
Small, opinionated, battle-tested. See the methodology page for the full text.
A plugin at plugin/sdcd/ that operationalises the methodology:
- 11 skills β namespaced as
/sdcd:new-project,/sdcd:data-plan,/sdcd:backend-plan,/sdcd:design-system-plan,/sdcd:frontend-plan,/sdcd:audit,/sdcd:milestone-audit,/sdcd:adopt,/sdcd:session-start,/sdcd:session-end,/sdcd:auto-brain. - 8 subagents β a five-lens challenger pool (security / performance / maintainability / UX / accessibility),
test-designer,sdcd-reviewer,plan-drift-detector. - 4 project archetypes β
cli,web-service,library,full-stack. Each with pre-shaped templates.
See the plugin page for the full catalogue, or jump straight to install instructions.
- Β§1 Core Rules β Stable, in active use. Β§1.6 (brain files) added 2026-04-19.
- Β§2βΒ§7 Methodology Detail β Drafted in English, will be refined as real projects expose gaps.
- Project templates β Minimal but functional, at the root (
project-templates/) and inside the plugin (plugin/sdcd/templates/). - Installer scripts β Working for Windows (PowerShell) and Unix (bash).
plugin/sdcd/β 11 skills + 8 subagents + 4 archetypes. Early access, testable viaclaude --plugin-dir.
This is an early-access repository. Expect edits.
git clone https://github.com/Tschonsen/spec-driven-claude-development.git
cd spec-driven-claude-development
.\install.ps1git clone https://github.com/Tschonsen/spec-driven-claude-development.git
cd spec-driven-claude-development
./install.shThe installer backs up any existing ~/.claude/CLAUDE.md or ~/.claude/methodology.md to .bak files, then copies the SDCD core rules into ~/.claude/.
Once the core rules are live, try the plugin locally:
claude --plugin-dir plugin/sdcdWhen satisfied, install it persistently:
claude plugin install ./plugin/sdcdFull install + verify guide: tschonsen.github.io/spec-driven-claude-development/install.
/sdcd:new-project β Ur-Plan + 3-challenger trio review
/sdcd:data-plan β Data model, storage, indexes
/sdcd:backend-plan β API contract (references Data-Plan)
/sdcd:design-system-plan β Visual direction, tokens, component language
/sdcd:frontend-plan β Routes, components, state (4-challenger quartet)
/sdcd:audit β GO / NO-GO gate over all applicable plans
/sdcd:session-start β onboard each work session cheaply
<implementation under Β§1 rules>
/sdcd:session-end β persist state + refresh brain files
/sdcd:milestone-audit β verify code matches plan after each milestone
Smaller projects skip what doesn't apply. CLI tools don't need a design system; libraries don't need a data plan. See Examples for a full walk-through.
/sdcd:adopt
Scans the repo, detects stack and size, scaffolds a design/ layout, and reverse-engineers an Ur-Plan stub from your existing README + git log + code. Additive only β never modifies existing files. Retrofit guide.
spec-driven-claude-development/
βββ CLAUDE.md # User-level core rules β ~/.claude/CLAUDE.md
βββ methodology.md # Detailed procedures β ~/.claude/methodology.md
βββ install.ps1 # Windows installer
βββ install.sh # Unix installer
βββ project-templates/ # Starter files for new projects
βββ plugin/
β βββ sdcd/
β βββ .claude-plugin/plugin.json
β βββ skills/ # 11 named skills
β βββ agents/ # 8 subagents
β βββ templates/ # 4 project archetypes
β βββ README.md
βββ docs/ # GitHub Pages content (Jekyll, just-the-docs)
βββ index.md # Pages landing
βββ _config.yml # Pages config
SDCD is opinionated, but it is not yours until you fork it.
- Fork and edit β clone your own copy, change rules to match your style, install from your fork.
- Project-level overrides β keep the user-level SDCD as-is, override specific rules in
<project>/CLAUDE.md(per Β§1.5, projects declare their own state-file tier and may override other Β§1 rules with a reason). - Add archetypes β drop a new directory under
plugin/sdcd/templates/<name>/following the shape of the existing ones. - Add challenger lenses β drop a new
challenger-<lens>.mdunderplugin/sdcd/agents/and update the skill procedures that should dispatch it.
A few ideas the framework leans on:
- Claude is a brilliant junior who forgets everything overnight. The methodology is the set of written artifacts that survive the forgetting.
- Plans are living documents, not archaeology. They get updated in the same commits as the code they describe. Stale plans are worse than no plans.
- Duplication is cheaper than the wrong abstraction. Patience before extracting pays off.
- State hygiene scales with stakes. A one-shot script needs nothing; a portfolio-grade project needs the full set.
- Challenger voices belong outside the author. Security, performance, maintainability, UX, accessibility β concerns come from subagents that didn't write the plan. Independent review is cheaper when the reviewer literally cannot see the author's reasoning.
SDCD is not an alternative to TDD, DDD, or Clean Architecture. It is scaffolding that makes those practices sustainable when one of the collaborators is an LLM with no memory between sessions.
SDCD is one person's methodology crystallised. Pull requests are welcome, but the easier path for disagreement is a fork β your workflow is yours, and SDCD is more useful as a reference point than as a mandate.
MIT β see LICENSE.
Built by Tschonsen with Claude as co-author.