Skip to content
Skill

Writing specs

Turns a ticket into a buildable, testable spec with numbered acceptance criteria

Writing specs is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
8
Last commit
License
MIT
Listing updated

Similar skills

About Writing specs

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.

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 (5 KB) on GitHub on 2 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 forgeline plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

Codex docs on skills

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

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Nabwinsaud/forgeline.git --path skills/writing-specs

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

Gemini CLI docs on skills

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

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Writing specs 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.

More from Nabwinsaud/forgeline

  1. Gives agents conventions for designing HTTP/JSON endpoints, errors and pagination

    • Open source
    • 8 GitHub stars
    • Developer tools
  2. Records a human approve, reject or retry decision on a paused Forgeline job

    • Open source
    • 8 GitHub stars
    • Developer tools
  3. Gives a read-only reviewer agent a prioritized procedure for checking factory PRs

    • Open source
    • 8 GitHub stars
    • Developer tools
  4. Guides agents through safe Postgres schema changes, backfills and sqlc regeneration

    • Open source
    • 8 GitHub stars
    • Databases
  5. Turns one sentence into a Forgeline job that runs through to a reviewed PR

    • Open source
    • 8 GitHub stars
    • Developer tools
  6. Checks whether your machine and repo are ready to run the Forgeline factory

    • Open source
    • 8 GitHub stars
    • Developer tools