
Spec
Turns an approved problem into testable acceptance criteria, each mapped to a test
Spec 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
- 19
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Spec
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.
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 (15 KB) on GitHub on 1 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 mokata plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add JasGujral/mokata-oss
/plugin install mokata@mostackOr copy only this skill to ~/.claude/skills/spec:
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.
Copy the skill folder to ~/.agents/skills/spec to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/spec to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/JasGujral/mokata-oss.git --path src/mokata/skills/specOr copy the folder to ~/.gemini/skills/spec yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/spec:
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.
Get the folder:
git clone --depth 1 https://github.com/JasGujral/mokata-oss.gitThen 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.
What it does
- 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
Spec 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.
More from JasGujral/mokata-oss

Makes the agent design API contracts first and check callers before changing them
- Open source
- 19 GitHub stars
- Developer tools

Gives an agent NestJS rules for guards, DTO validation, modules and tests
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent through Socratic exploration of an approach before any spec or code
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent to capture live browser console, network and page state for tests
- Open source
- 19 GitHub stars
- Developer tools

Guides the agent to reproduce a reported bug with a failing test before fixing it
- Open source
- 19 GitHub stars
- Developer tools

Guides an agent on CI/CD pipelines, release builds and pinned supply-chain posture
- Open source
- 19 GitHub stars
- Developer tools




