
Writing specs
Gherkin 6 conventions for writing behavioral feature specs in FFFlow projects
Writing specs 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 Writing specs
This skill is a reference rulebook for writing Gherkin feature files in the FFFlow workflow. It sets out the standard Gherkin 6 keyword set, a required user-story header for every feature, and guidance on writing Rule blocks as declarative business statements rather than implementation steps.
It explains how spec type is determined by file location under the specs folder, covering entity, value object, use case and acceptance specs, and describes property-based specs that use a property tag and a -properties.feature suffix. It also draws a clear line between behavioral specs and unit tests, and lists what should stay out of feature files, such as framework choices, URLs and deployment details.
The skill is loaded as context by other FFFlow commands when a project is at maturity level L2 or higher rather than invoked directly. It has no scripts and no tool requirements, and the examples are written in plain Gherkin with the Hypothesis or fast-check libraries mentioned only as the tools a step definition would use.
When your agent uses it
Gherkin 6 conventions for FFFlow — Feature structure, Rule blocks, Scenario Outlines, spec types by layer, property-based specs. 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 (7 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/writing-specs:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/writing-specs &&
cp -R "$tmp/plugin/skills/writing-specs" ~/.claude/skills/writing-specs &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/writing-specs inside it instead.
Copy the skill folder to ~/.agents/skills/writing-specs 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/writing-specs &&
cp -R "$tmp/plugin/skills/writing-specs" ~/.agents/skills/writing-specs &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/writing-specs inside it instead.
Copy the skill folder to ~/.cursor/skills/writing-specs 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/writing-specs &&
cp -R "$tmp/plugin/skills/writing-specs" ~/.cursor/skills/writing-specs &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/writing-specs 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/writing-specsOr copy the folder to ~/.gemini/skills/writing-specs yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/writing-specs:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/zerotechdebt/ffflow.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/writing-specs &&
cp -R "$tmp/plugin/skills/writing-specs" ~/.copilot/skills/writing-specs &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/writing-specs inside it instead.
Get the folder:
git clone --depth 1 https://github.com/zerotechdebt/ffflow.gitThen copy ffflow/plugin/skills/writing-specs into your agent's skills folder as writing-specs. Agents that support SKILL.md read one folder per skill.
What it does
- Feature user stories
- Requires every feature file to open with a title and an As a, I want, So that user story.
- Declarative Rule blocks
- Guides naming each Rule as a business statement of what the system does, not how.
- Scenario Outline patterns
- Shows how to enumerate input variations in Examples tables for constraint-heavy rules.
- Spec placement by layer
- Maps folder locations to entity, value object, use case and acceptance spec types.
- Property-based spec conventions
- Describes universal-quantifier scenarios in -properties.feature files for generated-input testing.
- Specs versus unit tests
- Explains how to keep behavioral specs free of class names, methods and implementation detail.
Good for
- Write a Gherkin feature file for a user login or lockout rule
- Turn a business rule into a Scenario Outline with an Examples table
- Decide which folder a new feature spec belongs in
- Draft a property-based spec for an invariant that must always hold
- Review a feature file for implementation details that should be removed
Writing specs FAQ
When does Writing specs get used?
It is loaded as context by plan-chat, characterize and work-issue when a project is at L2 or higher. It is a reference rulebook and is not invoked as a tool.
Does Writing specs need any scripts or extra tools?
No scripts are included and no allowed tools are set. It is a single SKILL.md file.
How does the skill tell spec types apart?
Spec type is set by file location under specs/{context}, using domain, application and context-root folders, with no tags or keywords required.
How do I install Writing specs in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/writing-specs to use it in all your projects, or to .claude/skills/writing-specs in one project. Or install the fff plugin, which includes it: /plugin marketplace add zerotechdebt/ffflow, then /plugin install fff@ffflow.
Does Writing specs 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 Writing specs?
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 Writing specs?
The closest alternatives to Writing specs are Spec first development, Specflow skill, Total specification, Rid traceability and Spec conventions.
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


