# Writing specs

> Writing specs is an open-source agent skill for developer tools. Turns a ticket into a buildable, testable spec with numbered acceptance criteria. 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/Nabwinsaud/forgeline/tree/main/skills/writing-specs
- **Repository:** https://github.com/nabwinsaud/forgeline
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** writing-specs
- **Collection:** https://github.com/Nabwinsaud/forgeline
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives an agent a template and rules for writing engineering specs from tickets. A spec covers the goal, numbered Given/When/Then acceptance criteria with stable IDs, API and data changes, UI states for each affected screen, explicit out-of-scope items, a test plan that maps each criterion to a test layer, and a risk rating with the triggers that apply.

The guidance pushes the agent to read the ticket, linked tickets and any domain harness file, then inspect the code the change touches before drafting. If the ticket leaves a design-changing question open, such as who may perform an action or what happens to existing data, the skill tells the agent to stop and ask specific questions instead of guessing.

It is a set of written instructions only, with no scripts. It expects the agent to work from ticket text and a repository, and it references related skills for API design and database migrations.

## When your agent uses it

> How to turn a ticket into a buildable, testable spec - goal, numbered Given/When/Then acceptance criteria, API and data changes, UI states, out of scope, test plan and risk triggers. Use when writing or revising a spec from a ticket, or when judging whether a spec is precise enough to build.

## What it can access

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

- [Instructions only, no scripts](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/writing-specs)
- [License: MIT](https://github.com/Nabwinsaud/forgeline/tree/HEAD/skills/writing-specs)

## Features

- **Spec template:** A fixed markdown outline covering goal, criteria, API, data, UI, scope, tests and risk.
- **Testable acceptance criteria:** Rules for writing observable Given/When/Then criteria with concrete values and unhappy paths.
- **Vague-to-precise examples:** Side-by-side rewrites that turn loose requirements into checkable criteria.
- **Test layer mapping:** Guidance for assigning each criterion to unit, integration, component or end-to-end tests.
- **Risk trigger checklist:** Conditions such as auth, payments, migrations and public APIs that raise the risk rating.
- **Final spec review:** A short checklist to confirm two engineers could build the same thing from the spec.

## Good for

- Turn a feature ticket into a spec with numbered acceptance criteria
- Revise an existing spec that engineers find too vague to build
- Check whether a draft spec is precise enough to start implementation
- Plan which tests cover each acceptance criterion for a change
- Flag which parts of a change need human approval because of risk

## Install

### Claude Code

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

```sh
/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgeline
```

Or copy only this skill to `~/.claude/skills/writing-specs`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/writing-specs &&
cp -R "$tmp/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/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/writing-specs &&
cp -R "$tmp/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/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/writing-specs &&
cp -R "$tmp/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/Nabwinsaud/forgeline.git --path 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/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/writing-specs &&
cp -R "$tmp/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/Nabwinsaud/forgeline.git
```

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

## FAQ

### What does the agent need before using Writing specs?

The skill expects a ticket, any linked tickets, and access to the code the change touches. It also refers to a domain harness file at .factory/domain.md if one exists.

### When should the skill trigger?

It applies when writing or revising a spec from a ticket, or when judging whether a spec is precise enough to build.

### Does Writing specs run any scripts or change files?

No. The skill ships one SKILL.md file with no scripts; it only guides how the agent drafts and reviews a spec.

### What happens when a ticket is ambiguous?

The skill tells the agent to return a needs_human status with specific questions rather than inventing product decisions.

### 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 forgeline plugin, which includes it: /plugin marketplace add Nabwinsaud/forgeline, then /plugin install forgeline@forgeline.

### 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, 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 Writing specs?

The closest alternatives to Writing specs are Spec, Create specification, Mt spec, Requirements to spec and Update specification.

## Where this comes from

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

## Alternatives

- [Spec](https://ai-powered.com/skills/spec-jasgujral): 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.
- [Mt spec](https://ai-powered.com/skills/mt-spec): Mt spec 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.
- [Update specification](https://ai-powered.com/skills/update-specification): Update specification 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.
- [Spec driven dev](https://ai-powered.com/skills/spec-driven-dev): Spec driven dev is an open-source agent skill for developer tools.
- [Testing](https://ai-powered.com/skills/testing-xiaolai-2): Testing is an open-source agent skill for developer tools.

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