Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spec

Spec is a Markdown-first planning skill for coding agents. It creates project context, routes each request through the relevant checks, and writes implementation prompts with scope, risks, tests, and rollback notes.

Spec does not generate application code, call a hosted service, or collect telemetry.

Requirements

  • Node.js 18 or newer
  • A coding agent that can read Markdown instructions

Install

Run this in the project where you want to use Spec:

npx spec-skill install --all

Install one adapter when you only use one agent:

spec install --codex
spec install --claude
spec install --cursor
spec install --antigravity
spec install --generic

Restart the agent after installation.

Use

Initialize the project context inside the agent:

Agent Init command Request command
Codex $spec init $spec <request>
Claude Code /spec init /spec <request>
Cursor /spec init /spec <request>
Generic agent spec init spec <request>

The terminal spec command is used for installation and CI checks. The init and request commands are interpreted by the agent.

Installed files

Every install creates .spec/ with:

  • SKILL.md, routing rules, commands, and runtime modules
  • Markdown templates for context, product, architecture, risks, permissions, and tests
  • sessions/, prompts/, and tasks/ for project memory and generated work

The adapter adds the agent-specific instruction file:

Adapter Additional files
Generic AGENTS.md
Codex .agents/skills/spec/, AGENTS.md
Claude Code .claude/skills/spec/, CLAUDE.md
Cursor .cursor/rules/spec.mdc, AGENTS.md
Antigravity .agents/rules/spec.md

Existing context files are preserved. Spec replaces only its marked block in AGENTS.md or CLAUDE.md.

Request pipeline

For each request, Spec selects the relevant modules and produces a structured response covering:

  1. Work classification and domain research
  2. Foundation and product-gap review
  3. Project impact, security, validation, and regression risks
  4. MVP scope, tests, rollback, and implementation tasks
  5. A prompt file under .spec/prompts/ and a memory update

Use spec check --ci to verify that a project has the required Spec files before an agent request.

Development

Clone the repository and run:

npm install
npm run test:all

The test suite covers public-file hygiene, routing evals, CLI installation, generated skill mirrors, package contents, and installation from an npm tarball.

Useful individual checks:

npm test
npm run public:check
npm run eval
npm run eval:agent -- repair-checkout
npm run pack:check
npm run skill:pack
npm run distribution:test

npm run skill:pack creates a standalone skill bundle in dist/spec/, with SKILL.md at its root and no repository-only files.

npm run eval:agent -- <fixture> runs one fixture through the installed Codex CLI in an isolated temporary workspace. It requires a working Codex login and is intentionally kept outside the default CI suite; the deterministic output evaluator remains part of test:all.

Code style favors clear names, small functions, and comments only where they explain a non-obvious reason or constraint. Public checks reject generated-content and authorship markers.

Documentation

License

MIT. See LICENSE.

About

Spec is a Markdown-first planning skill for coding agents. It creates project context, routes each request through the relevant checks, and writes implementation prompts with scope, risks, tests, and rollback notes.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages