# Spec

> Spec is an open-source agent skill for developer tools. Turns an approved problem into testable acceptance criteria, each mapped to a test. 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/JasGujral/mokata-oss/tree/main/src/mokata/skills/spec
- **Repository:** https://github.com/jasgujral/mokata-oss
- **GitHub stars:** 19
- **License:** Apache-2.0
- **Skill name:** spec
- **Collection:** https://github.com/JasGujral/mokata-oss
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Spec is a planning skill from the mokata toolkit. Once an approach has been agreed and before coding starts, it guides the agent to inspect the real code a change touches, including symbols, callers, existing tests and nearby conventions, so that acceptance criteria rest on actual names and behaviour rather than guessed interfaces.

The workflow has the agent write concrete acceptance criteria, map every criterion to a test, and break the work into small ordered tasks with the files each one may touch and a check to prove it. It also asks the agent to state what it is not building and to flag assumptions it could not verify from the code, so the human can answer them before the spec is saved.

The skill is written for mokata's command-line tool and its spec-saving and approval commands, and it expects a project that can be searched for symbols and tests. It is a single SKILL.md file with no bundled scripts, and it is also packaged as a Claude Code plugin in the mostack marketplace.

## When your agent uses it

> mokata · Turn the problem into testable acceptance criteria; map each to a test.

## What it can access

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

- [Instructions only, no scripts](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/spec)
- [License: Apache-2.0](https://github.com/JasGujral/mokata-oss/tree/HEAD/src/mokata/skills/spec)

## Features

- **Code-grounded criteria:** Requires the agent to read the real symbols, signatures and callers before writing any acceptance criterion.
- **Criterion-to-test mapping:** Each acceptance criterion must be tied to at least one named test before the spec can be saved.
- **Ordered task breakdown:** Splits the change into small tasks, each listing its criteria, the files it may touch and a verification check.
- **Explicit deferrals:** Asks the agent to record what is out of scope so that the work is bounded and reviewable.
- **Assumption handling:** Marks anything that cannot be verified from the code as an assumption to confirm with the user.
- **Human-gated saving:** Previews the spec and writes it only after the user approves it through the mokata approval step.

## Good for

- Write acceptance criteria for a feature after the design has been approved
- Map each requirement of a change to a test before any code is written
- Break a refactor into small ordered tasks with files and checks
- Revise a saved spec when the scope of a change needs to widen

## Install

### Claude Code

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

```sh
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostack
```

Or copy only this skill to `~/.claude/skills/spec`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/spec &&
cp -R "$tmp/src/mokata/skills/spec" ~/.claude/skills/spec &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/spec &&
cp -R "$tmp/src/mokata/skills/spec" ~/.agents/skills/spec &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/spec &&
cp -R "$tmp/src/mokata/skills/spec" ~/.cursor/skills/spec &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/spec` 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/JasGujral/mokata-oss.git --path src/mokata/skills/spec
```

Or copy the folder to `~/.gemini/skills/spec` yourself.

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/spec &&
cp -R "$tmp/src/mokata/skills/spec" ~/.copilot/skills/spec &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/JasGujral/mokata-oss.git
```

Then copy `mokata-oss/src/mokata/skills/spec` into your agent's skills folder as `spec`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Spec trigger?

It engages when an approach has just been approved and needs turning into acceptance criteria, when the user asks to define the spec for a change, or when tests are about to be planned and no saved spec exists. It should not run before an approach is approved or after coding has started.

### Does Spec write code or tests?

No. The skill states that it does not write code or tests. It produces the acceptance criteria, the test mapping and the task plan.

### Does Spec need an approved design first?

The skill works best after a brainstorm or refinement step. If none is on record, it asks the user whether to run that step first or write the spec standalone.

### What tools does Spec depend on?

It relies on mokata's spec emit and check commands and its code query tools, such as callers and implementers lookups. Those tools are part of the mokata toolkit.

### How do I install Spec in Claude Code?

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

### Does Spec 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 Spec?

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 Spec?

The closest alternatives to Spec are Mt spec, Test, Requirements to spec, Create specification and Spec coding.

## Where this comes from

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

## Alternatives

- [Mt spec](https://ai-powered.com/skills/mt-spec): Mt spec is an open-source agent skill for developer tools.
- [Test](https://ai-powered.com/skills/test): Test 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.
- [Create specification](https://ai-powered.com/skills/create-specification): Create 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.
- [Update specification](https://ai-powered.com/skills/update-specification): Update specification 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.
- [Develop](https://ai-powered.com/skills/develop): Develop is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/spec-jasgujral
