openspec
БесплатноБез исполняемых скриптовНе проверенOpenSpec is a command-line tool plus a set of slash commands that make an AI coding agent write a reviewable plan — proposal, requirements with scenarios…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
OpenSpec — Agree on the spec before the agent writes code
Overview
OpenSpec keeps two things in an openspec/ folder in the repository: specs that describe how the system behaves today, and changes that propose how it should behave next. Each change holds a proposal, delta specs, a design and a task list, all in plain Markdown. The human reviews the plan, the agent implements the tasks, and archiving merges the deltas into the main specs.
Instructions
Installation
node --version # must be 20.19.0 or higher
npm install -g @fission-ai/openspec@latest
openspec --version # 1.13.2 at the time of writing
Alternatives: brew install openspec, pnpm add -g @fission-ai/openspec@latest, bun add -g @fission-ai/openspec@latest.
Initialize a project
Run init in the repository root and name the tools, so that no interactive prompt appears:
cd ~/code/invoice-api
openspec init --tools claude,codex,gemini
This creates openspec/specs/, openspec/changes/ and openspec/config.yaml, and writes skill and command files for each tool (.claude/, .gemini/, and .agents/skills/ for Codex). Tool IDs include claude, codex, gemini, cursor, github-copilot, cline, continue, opencode, zed; all and none are also accepted. Restart the assistant afterwards, because most tools load commands at startup.
Where each command runs
openspec ... commands run in the terminal. /opsx:... commands are typed into the AI assistant's chat. The spelling depends on the tool:
| Tool | How to start a proposal |
|---|---|
| Claude Code, Gemini CLI | /opsx:propose add-login-rate-limit |
| Cursor, GitHub Copilot | /opsx-propose add-login-rate-limit |
| Codex | $openspec-propose add-login-rate-limit |
The core workflow
The default core profile installs six commands:
/opsx:explore think through an idea; writes nothing unless asked
/opsx:propose NAME create the change folder with proposal, specs, design and tasks
/opsx:apply implement the tasks and tick them off in tasks.md
/opsx:update revise the plan and keep the artifacts consistent
/opsx:sync merge delta specs into openspec/specs/ without archiving
/opsx:archive merge the deltas and move the change to changes/archive/
Six more (/opsx:new, /opsx:continue, /opsx:ff, /opsx:verify, /opsx:bulk-archive, /opsx:onboard) belong to the expanded set. The user enables them with openspec config profile, which is an interactive picker, and then runs openspec update in the project.
Drive a change from the terminal
An agent can run the whole planning loop with the CLI. All commands below except archive accept --json.
openspec new change add-login-rate-limit \
--description "Rate-limit POST /auth/login to 5 attempts per minute per IP"
openspec status --change add-login-rate-limit # which artifact is next
openspec instructions proposal --change add-login-rate-limit # template and rules for it
openspec validate add-login-rate-limit --strict
openspec list # active changes with task progress
openspec list --specs # capabilities in openspec/specs/
openspec show auth --type spec --json --no-scenarios
openspec archive add-login-rate-limit --yes
Change names are lowercase kebab-case. Artifacts are written in dependency order: proposal, then specs and design, then tasks. openspec status marks the ones that are blocked.
Write delta specs
A change describes its effect on the specs in openspec/changes/NAME/specs/CAPABILITY/spec.md:
## Purpose
Rules for authenticating users and protecting the login endpoint.
## ADDED Requirements
### Requirement: Login rate limit
The system SHALL reject more than 5 login attempts per minute from the same client IP.
#### Scenario: Sixth attempt within a minute
- **WHEN** a client sends a sixth POST /auth/login within 60 seconds
- **THEN** the system responds with HTTP 429 and a Retry-After header
Use ## ADDED Requirements for new behaviour, ## MODIFIED Requirements with the full new text for changed behaviour, and ## REMOVED Requirements for behaviour that goes away. Every requirement needs SHALL or MUST and at least one #### Scenario: block. ## Purpose is only used when the capability is new. A change without any spec delta fails validation unless its .openspec.yaml contains skip_specs: true.
Project configuration
openspec/config.yaml injects project knowledge into every artifact the agent writes:
schema: spec-driven
context: |
Tech stack: TypeScript, Express 5, PostgreSQL 16, Redis 7
All public endpoints are documented in docs/api.md
We keep backwards compatibility for /v1 routes
rules:
proposal:
- Include a rollback plan
specs:
- Cover at least one error case per requirement
Установить openspec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл openspec?
OpenSpec is a command-line tool plus a set of slash commands that make an AI coding agent write a reviewable plan — proposal, requirements with scenarios, design and task list — before it changes any code. Use when a user asks to set up spec-driven development, run openspec init, propose a change with /opsx:propose, write a spec before coding, validate or archive an OpenSpec change, or keep requirements in the repository for Claude Code, Codex, Gemini CLI or Cursor.
Как установить скилл openspec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл openspec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic