# Writing specs

> Writing specs is an open-source agent skill for developer tools. Gherkin 6 conventions for writing behavioral feature specs in FFFlow projects. It is available on Claude Code.

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

## About

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.

## 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/writing-specs)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/writing-specs)

## Features

- **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

## 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/writing-specs`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/writing-specs` 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/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.

### Cursor

Copy the skill folder to `~/.cursor/skills/writing-specs` 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/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.

### 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/writing-specs
```

Or copy the folder to `~/.gemini/skills/writing-specs` yourself.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

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

Then 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.

## 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.

## Alternatives

- [Spec first development](https://ai-powered.com/skills/spec-first-development): Spec first development is an open-source agent skill for developer tools.
- [Specflow skill](https://ai-powered.com/skills/specflow-skill): Specflow skill 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.
- [Rid traceability](https://ai-powered.com/skills/rid-traceability): Rid traceability is an open-source agent skill for developer tools.
- [Spec conventions](https://ai-powered.com/skills/spec-conventions): Spec conventions 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.
- [Learn what defines effective BDD scenarios](https://ai-powered.com/skills/learn-what-defines-effective-bdd-scenarios): Learn what defines effective BDD scenarios is an open-source agent skill for developer tools.
- [Hexagonal architecture](https://ai-powered.com/skills/hexagonal-architecture-zerotechdebt): Hexagonal architecture is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/writing-specs-zerotechdebt
