# Rid traceability

> Rid traceability is an open-source agent skill for developer tools. Gives agents the rules for Requirement IDs that link specs, tests and code. 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/zerotechdebt/ffflow/tree/main/plugin/skills/rid-traceability
- **Repository:** https://github.com/zerotechdebt/ffflow
- **GitHub stars:** 6
- **License:** Apache-2.0
- **Skill name:** rid-traceability
- **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 assigning and checking Requirement IDs (RIDs) in projects that use the FFFlow workflow. It defines the RID format, requires one RID per Gherkin scenario, and explains how RIDs stay unique across feature files and test sources, how sub-RIDs extend a parent requirement, and how retired requirements are marked deprecated rather than deleted.

The skill describes the traceability chain that RIDs form: a scenario tag flows into the test runner's output and then into coverage data, so gaps can be reported. It also lists the checks the specdrive audit performs, including directory matching for bounded contexts and duplicate detection. It is meant to be loaded as context by other FFFlow commands rather than invoked on its own.

The skill assumes a project that uses FFFlow and the specdrive tooling, with Gherkin .feature specs and JUnit XML test output. It is a single markdown file with no bundled scripts.

## When your agent uses it

> Requirement ID format, assignment, uniqueness, and audit enforcement — the traceability backbone of FFFlow. L3 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/rid-traceability)
- [License: Apache-2.0](https://github.com/zerotechdebt/ffflow/tree/HEAD/plugin/skills/rid-traceability)

## Features

- **RID format and rules:** Defines the tag pattern, naming segments and the four rules on uniqueness, immutability and non-reuse.
- **Context-to-directory matching:** Requires the RID context segment to match the first directory under the specs folder.
- **Sub-RID suffixes:** Covers lowercase suffixes for several test cases that trace back to one requirement.
- **Deprecation handling:** Explains marking retired scenarios with a deprecated tag while keeping their RIDs reserved.
- **Traceability chain:** Describes how spec tags, test runner output and coverage data link requirements to code.
- **Audit checks:** Lists the checks specdrive audit runs, intended to be run in continuous integration.

## Good for

- Assign the next free requirement ID to a new login scenario
- Check a spec folder for duplicate or malformed RID tags
- Add a sub-RID for a second test case covering an existing requirement
- Mark a retired scenario as deprecated without breaking traceability
- Explain how requirement IDs link specs to test results and coverage

## 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/rid-traceability`:

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

For one project only, put the folder in `.claude/skills/rid-traceability` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/rid-traceability` 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/rid-traceability &&
cp -R "$tmp/plugin/skills/rid-traceability" ~/.agents/skills/rid-traceability &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/rid-traceability` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/rid-traceability` 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/rid-traceability &&
cp -R "$tmp/plugin/skills/rid-traceability" ~/.cursor/skills/rid-traceability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/rid-traceability` 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/rid-traceability
```

Or copy the folder to `~/.gemini/skills/rid-traceability` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/rid-traceability` inside it instead.

### Other agents

Get the folder:

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

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

## FAQ

### Does Rid traceability run any scripts or tools itself?

No. It is a reference document loaded as context by other FFFlow commands and is not invoked as a tool. It mentions specdrive audit, which is a separate tool.

### Where must RIDs be placed?

On Gherkin scenarios, not on features or rules. Test files may also carry RIDs in comments or test names, and each RID must be unique across all of them.

### What happens when a requirement is retired?

The scenario is kept and tagged with @deprecated alongside its RID. The audit warns rather than fails, and the RID stays reserved.

### What format do RIDs follow?

They use the form @RID-CONTEXT-NAME-NNN, with an optional lowercase letter suffix for sub-RIDs. The context must match the first directory under specs.

### How do I install Rid traceability in Claude Code?

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

### Does Rid traceability 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 Rid traceability?

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 Rid traceability?

The closest alternatives to Rid traceability are Writing specs, TDD loop, Spec first development, TDD and Total specification.

## Where this comes from

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

## Alternatives

- [Writing specs](https://ai-powered.com/skills/writing-specs-zerotechdebt): Writing specs is an open-source agent skill for developer tools.
- [TDD loop](https://ai-powered.com/skills/tdd-loop-zerotechdebt): TDD loop is an open-source agent skill for developer tools.
- [Spec first development](https://ai-powered.com/skills/spec-first-development): Spec first development is an open-source agent skill for developer tools.
- [TDD](https://ai-powered.com/skills/tdd): TDD 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.
- [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.
- [Ghm id register](https://ai-powered.com/skills/ghm-id-register): Ghm id register is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/rid-traceability
