# Requirements engineering

> Requirements engineering is an open-source agent skill for developer tools. Turns vague feature requests into testable specs before any code is written. 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/SwiftyJourney/requirements-engineering-skill/tree/main/skills/requirements-engineering
- **Repository:** https://github.com/swiftyjourney/requirements-engineering-skill
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** requirements-engineering
- **Collection:** https://github.com/SwiftyJourney/requirements-engineering-skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through pinning down a loosely defined feature or ticket before implementation starts. It works through clarifying questions, then produces the specification artifacts a feature needs, such as behavior-driven narratives with Given/When/Then acceptance criteria, use cases with data, primary, error and cancel courses, model tables, request and response payload contracts, flowcharts and module dependency diagrams.

The skill is written for specification work only. It defines what a system must do and which contracts it must honor, and it explicitly hands implementation questions such as architecture layers, concurrency and view code to a separate iOS architecture skill. It also stresses that artifacts should match the feature's real behavior, so an online-only feature does not get offline scenarios it does not need.

It is built around Swift and iOS examples, and the reference files cover clarification, narratives, use cases, model specs, diagrams, domain language and a worked example. Nothing in the content indicates scripts or external tools are required.

## When your agent uses it

> Use this skill to turn vague, ambiguous, or "lousy" requirements into precise, testable specifications BEFORE any code is written -- even when the user never says "BDD", "use case", or "acceptance criteria". Trigger when someone has a half-baked feature idea, an under-specified ticket, or a business brief that's "open to interpretation" and needs it pinned down: clarifying questions, As-a/I-want/So-that narratives, Given/When/Then acceptance criteria, use cases (data inputs, happy path, error and cancel courses), model-spec tables, request/response payload contracts, flowcharts, and module-dependency diagrams. This is the SPECIFICATION altitude -- WHAT to build and the contracts to honor. Hand off the implementation to the iOS architecture skill (composition root, layers, packages, concurrency), SwiftUI view code, and Swift Testing syntax -- do NOT use this skill to write or refactor that code, only to define what it must satisfy.

## What it can access

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

- [Instructions only, no scripts](https://github.com/SwiftyJourney/requirements-engineering-skill/tree/HEAD/skills/requirements-engineering)
- [License: MIT](https://github.com/SwiftyJourney/requirements-engineering-skill/tree/HEAD/skills/requirements-engineering)

## Features

- **Clarifying question bank:** Structured questions about users, scenarios, offline behavior and errors that remove assumptions from a brief.
- **Behavior-driven narratives:** Writes user-type narratives and Given/When/Then acceptance criteria tied to concrete preconditions.
- **Use case structure:** Lays out data inputs, primary course, error courses and cancel courses for each operation.
- **Model and payload contracts:** Produces property and type tables and HTTP payload contracts with status codes and example JSON.
- **Flowcharts and dependency diagrams:** Describes decision flows with error branches and module dependency graphs with a notation legend.
- **Domain language alignment:** Keeps terminology consistent across all artifacts so the feature uses the experts' own words.

## Good for

- Turn a half-baked feature idea into a testable specification before coding starts
- Write acceptance criteria in Given/When/Then form for an under-specified ticket
- Define use cases with inputs and error paths for a networked feature
- Document the request and response contract between an app and its backend
- Review an existing feature spec for missing error or cancel behavior

## Install

### Claude Code

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

```sh
/plugin marketplace add SwiftyJourney/requirements-engineering-skill
/plugin install requirements-engineering@requirements-engineering-skill
```

Or copy only this skill to `~/.claude/skills/requirements-engineering`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SwiftyJourney/requirements-engineering-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/requirements-engineering &&
cp -R "$tmp/skills/requirements-engineering" ~/.claude/skills/requirements-engineering &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/requirements-engineering` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SwiftyJourney/requirements-engineering-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/requirements-engineering &&
cp -R "$tmp/skills/requirements-engineering" ~/.agents/skills/requirements-engineering &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/requirements-engineering` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SwiftyJourney/requirements-engineering-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/requirements-engineering &&
cp -R "$tmp/skills/requirements-engineering" ~/.cursor/skills/requirements-engineering &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/requirements-engineering` 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/SwiftyJourney/requirements-engineering-skill.git --path skills/requirements-engineering
```

Or copy the folder to `~/.gemini/skills/requirements-engineering` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/SwiftyJourney/requirements-engineering-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/requirements-engineering &&
cp -R "$tmp/skills/requirements-engineering" ~/.copilot/skills/requirements-engineering &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/SwiftyJourney/requirements-engineering-skill.git
```

Then copy `requirements-engineering-skill/skills/requirements-engineering` into your agent's skills folder as `requirements-engineering`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Requirements engineering trigger?

It triggers when someone has a vague feature idea, an under-specified ticket or a brief that is open to interpretation and needs it pinned down before code is written.

### Does Requirements engineering write the implementation code?

No. The skill is limited to defining what to build and the contracts to honor. Implementation, view code and test syntax are handed off to other skills.

### Which artifacts does Requirements engineering produce?

Depending on the feature, it can produce BDD narratives, acceptance criteria, use cases, model specs, payload contracts, flowcharts and an architecture diagram. It omits artifacts that do not apply.

### How do I install Requirements engineering in Claude Code?

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

### Does Requirements engineering 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 Requirements engineering?

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 Requirements engineering?

The closest alternatives to Requirements engineering are Spec driven development, Requirements to spec, Spec driven development, Spec coding and Writing specs.

## Where this comes from

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

## Alternatives

- [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.
- [Requirements to spec](https://ai-powered.com/skills/requirements-to-spec): Requirements to spec is an open-source agent skill for productivity.
- [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 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): Writing specs is an open-source agent skill for developer tools.
- [Gather requirements](https://ai-powered.com/skills/gather-requirements): Gather requirements is an open-source agent skill for developer tools.
- [Mt spec](https://ai-powered.com/skills/mt-spec): Mt spec is an open-source agent skill for developer tools.
- [Create specification](https://ai-powered.com/skills/create-specification): Create specification is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/requirements-engineering
