# Spec driven dev

> Spec driven dev is an open-source agent skill for developer tools. Gates an AI coding agent through spec, plan, build, test, review and ship phases. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/LichAmnesia/lich-skills/tree/main/skills/spec-driven-dev
- **Repository:** https://github.com/lichamnesia/lich-skills
- **GitHub stars:** 233
- **License:** MIT
- **Skill name:** spec-driven-dev
- **Collection:** https://github.com/LichAmnesia/lich-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill sets up a six-phase workflow that an AI coding agent follows for non-trivial work. Each phase has a goal, inputs, steps, exit criteria and a table of common excuses for skipping it, and the agent is told not to advance until the current gate is closed. Each phase is meant to leave a named artifact in the repository, such as a spec file, a plan file, a review note and a launch note with rollback guidance.

The build phase asks for small, revertible commits that keep the build and existing tests green, with scope kept to the current task. The test phase favors writing tests before code, reproducing bugs with a failing test before fixing them, and checking UI work in a real browser. The review phase applies a five-axis check covering correctness, readability, architecture, security and performance, with severity labels on comments. The ship phase covers staged rollouts, feature flags and rollback triggers.

The skill is written as Markdown instructions and includes templates for the spec, plan, review and ship documents. It does not ship scripts, and it expects a git repository and a project test command to be available to the agent.

## When your agent uses it

> Use when starting any non-trivial feature, refactor, or new project that will touch more than one file. Drives an AI coding agent through a gated Spec → Plan → Build → Test → Review → Ship lifecycle so work is specified before it is built, verified before it is reviewed, and reviewed before it ships.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/spec-driven-dev)
- [License: MIT](https://github.com/LichAmnesia/lich-skills/tree/HEAD/skills/spec-driven-dev)

## Features

- **Gated six-phase lifecycle:** Moves work through spec, plan, build, test, review and ship, with each gate closed before the next phase starts.
- **Spec and plan templates:** Provides templates for writing a spec and an ordered task plan saved in the repository.
- **Incremental build rules:** Asks for thin, compilable, single-purpose commits that leave the tree green after each slice.
- **Test-first verification:** Covers red-green-refactor, bug reproduction tests and a test pyramid guideline.
- **Five-axis code review:** Checks correctness, readability, architecture, security and performance, with severity labels on findings.
- **Staged launch checklist:** Describes feature-flagged rollouts, rollback triggers and first-hour post-deploy checks.

## Good for

- Plan a multi-file feature before the agent starts writing code
- Break a large refactor into small reviewable commits
- Write a spec and task plan for a new service
- Add regression tests before fixing a reported bug
- Review a finished change across correctness, security and performance
- Prepare a staged rollout with a rollback plan

## Install

### Claude Code

This skill ships in the `lich-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skills
```

Or copy only this skill to `~/.claude/skills/spec-driven-dev`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spec-driven-dev &&
cp -R "$tmp/skills/spec-driven-dev" ~/.claude/skills/spec-driven-dev &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/spec-driven-dev` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/spec-driven-dev` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spec-driven-dev &&
cp -R "$tmp/skills/spec-driven-dev" ~/.agents/skills/spec-driven-dev &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/spec-driven-dev` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/spec-driven-dev` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spec-driven-dev &&
cp -R "$tmp/skills/spec-driven-dev" ~/.cursor/skills/spec-driven-dev &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/spec-driven-dev` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/spec-driven-dev
```

Or copy the folder to `~/.gemini/skills/spec-driven-dev` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/spec-driven-dev`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spec-driven-dev &&
cp -R "$tmp/skills/spec-driven-dev" ~/.copilot/skills/spec-driven-dev &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/spec-driven-dev` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git
```

Then copy `lich-skills/skills/spec-driven-dev` into your agent's skills folder as `spec-driven-dev`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When should the agent use Spec driven dev?

The description says it applies to non-trivial features, refactors or new projects that touch more than one file. The SKILL.md also lists cases to skip, such as one-line fixes and dependency bumps without behavior change.

### What does the workflow produce?

Each phase is meant to produce a named artifact committed to the repo, such as SPEC.md, PLAN.md, code with tests, a review note and a launch note with rollback steps.

### Does Spec driven dev include scripts or tools?

No scripts are included. The skill consists of the SKILL.md instructions and four Markdown templates for spec, plan, review and ship documents.

### Which tools does Spec driven dev require?

The SKILL.md does not list allowed tools. It refers to a test command and to committing to the repository, so a git repo and a project test setup are assumed.

### How do I install Spec driven dev in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/spec-driven-dev to use it in all your projects, or to .claude/skills/spec-driven-dev in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.

### Does Spec driven dev run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Spec driven dev?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Spec driven dev?

The closest alternatives to Spec driven dev are Spec driven develop, Spec coding, Spec driven dev v2, Dev kickoff edho ferdian and Implement.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Spec coding](https://ai-powered.com/skills/spec-coding): Spec coding is an open-source agent skill for developer tools.
- [Spec driven dev v2](https://ai-powered.com/skills/spec-driven-dev-v2): Spec driven dev v2 is an open-source agent skill for developer tools.
- [Dev kickoff edho ferdian](https://ai-powered.com/skills/dev-kickoff-edho-ferdian): Dev kickoff edho ferdian is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-kripu77): Implement is an open-source agent skill for developer tools.
- [Spec workflow](https://ai-powered.com/skills/spec-workflow): Spec workflow is an open-source agent skill for developer tools.
- [Writing specs](https://ai-powered.com/skills/writing-specs): Writing specs is an open-source agent skill for developer tools.
- [Harness review](https://ai-powered.com/skills/harness-review-chachamaru127): Harness review is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/spec-driven-dev
