# Spec first development

> Spec first development is an open-source agent skill for developer tools. Guides agents through a spec-first loop: change Gherkin specs, then implement and test. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/zerotechdebt/ffflow/tree/main/plugin/skills/spec-first-development
- **Repository:** https://github.com/zerotechdebt/ffflow
- **GitHub stars:** 6
- **License:** Apache-2.0
- **Skill name:** spec-first-development
- **Collection:** https://github.com/zerotechdebt/ffflow
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill describes a development cycle where behavior is changed in Gherkin feature files first, the audit fails until the code catches up, and then implementation makes it pass again. It covers how each kind of change starts: new features, bug fixes tied to known-defect tags, behavioral changes, removals, and resolving unverified-intent annotations.

During implementation the agent is told to write two kinds of tests: step definitions that bind scenarios to domain code, and unit tests for boundaries, error messages and edge cases the spec does not enumerate. It also sets rules for amending specs mid-implementation, such as adding new scenarios rather than silently editing reviewed ones and explaining wording changes in the PR body.

The skill is a reference rulebook loaded as context by other FFFlow skills at level L2 or higher. It also covers PR shape, with spec and code shipped together, and commit prefixes that separate spec decisions from implementation work.

## When your agent uses it

> The steady-state development loop — spec change drives implementation, producing both step definitions and unit tests. L2+ reference rulebook.

## What it can access

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

- [Instructions only, no scripts](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/spec-first-development)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/spec-first-development)

## Features

- **Spec-driven change loop:** Walks through the cycle of editing specifications, failing the audit, implementing and passing it again.
- **Change type playbooks:** Explains how to start new features, bug fixes, behavior changes, removals and unverified-intent resolutions.
- **Dual test requirements:** Requires both step definitions binding scenarios to code and unit tests for internal logic and edge cases.
- **Mid-implementation amendments:** Sets rules for adding or correcting scenarios when implementation reveals gaps in the spec.
- **PR and commit conventions:** Specifies shipping spec and code in one PR and using spec: and feat: commit prefixes.
- **Cross-context boundaries:** Keeps each scenario within one bounded context and points integration checks to acceptance or contract tests.

## Good for

- Add a new feature by writing Gherkin scenarios before the code
- Fix a known defect by correcting a @known-defect scenario and implementing the fix
- Change an existing business rule and update its scenarios accordingly
- Structure a pull request so the spec diff and implementation are reviewed together
- Decide which unit tests to add beyond what the Gherkin scenarios cover

## Install

### Claude Code

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

```sh
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflow
```

Or copy only this skill to `~/.claude/skills/spec-first-development`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spec-first-development &&
cp -R "$tmp/plugin/skills/spec-first-development" ~/.claude/skills/spec-first-development &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spec-first-development &&
cp -R "$tmp/plugin/skills/spec-first-development" ~/.agents/skills/spec-first-development &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spec-first-development &&
cp -R "$tmp/plugin/skills/spec-first-development" ~/.cursor/skills/spec-first-development &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/spec-first-development` 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/zerotechdebt/ffflow.git --path plugin/skills/spec-first-development
```

Or copy the folder to `~/.gemini/skills/spec-first-development` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spec-first-development &&
cp -R "$tmp/plugin/skills/spec-first-development" ~/.copilot/skills/spec-first-development &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git
```

Then copy `ffflow/plugin/skills/spec-first-development` into your agent's skills folder as `spec-first-development`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Spec first development get loaded?

It is loaded as context by the work-issue and plan-chat skills when the project is at maturity level L2 or higher.

### Does Spec first development need any scripts or tools?

The skill has no scripts and does not set allowed tools. It is a single SKILL.md file with instructions only.

### Does Spec first development require a specific AI client?

It is distributed as a Claude Code plugin in the ffflow marketplace, and the content ties it to Claude Code-based FFFlow workflows.

### How are bug fixes handled under this workflow?

The existing scenario tagged @known-defect is changed to describe correct behavior and the tag is removed, then the code is fixed until the audit passes.

### How do I install Spec first development in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/spec-first-development to use it in all your projects, or to .claude/skills/spec-first-development in one project. Or install the fff plugin, which includes it: /plugin marketplace add zerotechdebt/ffflow, then /plugin install fff@ffflow.

### Does Spec first development 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 first development?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Spec first development?

The closest alternatives to Spec first development are Spec driven development, Spec driven development, Spec coding, Writing specs and Feature.

## Where this comes from

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

## Alternatives

- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-addyosmani): Spec driven development is an open-source agent skill for developer tools.
- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-ajyadav013-2): Spec driven development 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.
- [Writing specs](https://ai-powered.com/skills/writing-specs-zerotechdebt): Writing specs is an open-source agent skill for developer tools.
- [Feature](https://ai-powered.com/skills/feature-duthaho): Feature is an open-source agent skill for developer tools.
- [Spec driven dev](https://ai-powered.com/skills/spec-driven-dev): Spec driven dev is an open-source agent skill for developer tools.
- [Implement](https://ai-powered.com/skills/implement-evist0): Implement is an open-source agent skill for developer tools.
- [Total specification](https://ai-powered.com/skills/total-specification): Total specification is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/spec-first-development
