
Spec first development
Guides agents through a spec-first loop: change Gherkin specs, then implement and test
Spec first development is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 6
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Spec first development
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the fff plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add zerotechdebt/ffflow
/plugin install fff@ffflowOr copy only this skill to ~/.claude/skills/spec-first-development:
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.
Copy the skill folder to ~/.agents/skills/spec-first-development to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/spec-first-development to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/zerotechdebt/ffflow.git --path plugin/skills/spec-first-developmentOr copy the folder to ~/.gemini/skills/spec-first-development yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/spec-first-development:
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.
Get the folder:
git clone --depth 1 https://github.com/zerotechdebt/ffflow.gitThen 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.
What it does
- 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
Spec first development 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.
More from zerotechdebt/ffflow

Onboards a project onto FFFlow: config, stack setup, then a phased roadmap
- Open source
- 6 GitHub stars
- Developer tools

Runs keep-honest audits on a project and reports drift, stale docs and tech debt
- Open source
- 6 GitHub stars
- Developer tools

Runs another interactive skill unattended, making routine choices from project context
- Open source
- 6 GitHub stars
- Developer tools

Lists and validates the adapter cartridges that FFFlow ports load in a project
- Open source
- 6 GitHub stars
- Developer tools

Extracts a behavioral spec from an unspecified codebase and plans characterization tests
- Open source
- 6 GitHub stars
- Developer tools

Adds GitHub Actions workflows that run FFFlow quality gates on pull requests
- Open source
- 6 GitHub stars
- Developer tools




