Skip to content
AIRepoHub

OpenSpec

by Fission-AI

Spec-driven development tool that helps AI coding assistants plan work from a written specification.

ProductivityTypeScriptMIT license
Stars
75,662
stars
Forks
5.2k
forks
Last push
today
Activity
Active
OpenSpec: quick start
# Install (macOS or Linux)$ curl -fsSL https://openspec.dev/cli/install.sh | sh# Set it up in your project$ cd your-project
openspec init

Commands from the project's README. Run them after installing (see below).

Overview

Understand OpenSpec in 60 seconds

What it does
OpenSpec is a spec framework for AI coding assistants. Before code is written, your AI drafts a proposal, requirements, a design and a task list as plain Markdown in your repo; you review the plan, then the AI implements it and archives the change.
The problem it solves
AI coding assistants often start writing code before anyone agrees on what should be built. OpenSpec adds a lightweight planning step with reviewable specs, and keeps those specs up to date as changes are archived.
Why choose it
Choose it for a fluid, iterative spec workflow built for brownfield code, with plain Markdown specs. Stores for cross-repo planning are still in beta.
Who should use it
  • Developers using Claude Code, Cursor, Codex and 30+ other AI tools
  • Teams working on existing codebases
  • Teams coordinating features across several repos
  • Anyone wanting reviewable plans before AI writes code
Setup difficulty

You'll need:

  • macOS, Linux or Windows
  • Optional: Node.js 22.20+ for the npm install
  • An AI coding assistant

How OpenSpec works

After openspec init, you use skills in your AI assistant. /openspec-explore is a thinking partner that reads your code and shapes a plan. /openspec-propose creates a change folder with proposal.md, specs, design.md and tasks.md. /openspec-apply-change implements the tasks, and /openspec-archive-change archives the change and updates the specs.

Specs are plain Markdown with requirements and concrete WHEN and THEN scenarios, so there is no special syntax. OpenSpec is built with OpenSpec, and its own specs and in-flight changes are in the repository as examples.

For teams, Stores (in beta) put planning in a repository of its own so one change can span several code repos and a platform team can own shared requirements. It supports 30+ tools and installs via a script, npm, Homebrew, pnpm, yarn, bun or Nix.

Features

Key features

Explore first

A no-stakes planning conversation before any code.

Proposals

proposal.md, specs, design.md and tasks.md per change.

Plain Markdown specs

Requirements with WHEN and THEN scenarios.

Apply and archive

Implement tasks, then archive and update specs.

30+ tools

Works with Claude Code, Cursor, Codex and more.

Stores (beta)

Cross-repo planning in a shared repository.

Strengths

  • Lightweight and iterative
  • Designed for existing codebases
  • Plain Markdown, easy to review
  • MIT licensed

Limitations

  • Adds a planning step that small changes may not need
  • Stores are in beta
  • Quality of specs depends on your AI and your review

Practical use cases

Plan a feature

Explore and propose a change before coding.

Cross-repo work

Plan one change spanning API, web and library repos with Stores.

Living requirements

Keep specs updated as changes are archived.

Installation

Install OpenSpec

Based on official documentation

Commands come from OpenSpec's README. AIRepoHub hasn't run them yet. View source

Prerequisites

  • An AI coding assistant

Supported systems

  • macOS
  • Linux
  • Windows
  1. 1

    Install the CLI

    Shell
    curl -fsSL https://openspec.dev/cli/install.sh | sh
  2. 2

    Initialise your project

    Shell
    cd your-projectopenspec init

Configuration and API keys

SettingWhat it's for

First run

  1. 1

    In your AI assistant, start exploring

    Text
    /openspec-explore

OpenSpec's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.

Your first project

Plan and build a feature with OpenSpec

Add dark mode with a reviewed plan first.

Before you start

  • OpenSpec installed and openspec init run
  • An AI coding assistant
  1. 1

    Propose the change

    Creates openspec/changes/add-dark-mode with a proposal, specs, design and tasks.

    Text
    /openspec-propose add-dark-mode
  2. 2

    Review the plan

    Read the specs and tasks before any code is written.

  3. 3

    Implement

    Text
    /openspec-apply-change
  4. 4

    Archive

    Moves the change to the archive and updates the specs.

    Text
    /openspec-archive-change

What to expect

A reviewed plan, an implementation that follows its task list, and updated specs in openspec/specs.

Next steps

  • Try /openspec-explore for open questions
  • Enable the expanded workflow profile
  • Read the Stores guide for team setups

Costs and requirements

What it costs to run

License
MIT. Free to use, modify and use commercially.Free
Software
Free and open source.Free
AI assistant
Uses your existing assistant's plan.Depends

Troubleshooting

Common setup issues

Not sure your tool is supported

Check the supported tools list at openspec.dev/docs; 30+ tools are supported.

Source: README.md

Slash command doesn't work in Codex

Codex uses $openspec-propose; openspec init prints the right form for your tools.

Source: README.md

npm install fails

The npm package needs Node.js 22.20.0 or higher.

Source: README.md

Alternatives

Similar AI repositories