# Openspec

> Openspec is an open-source agent skill for developer tools. Spec-driven workflow that aligns requirements with the AI before code is written. 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/ruan-cat/monorepo/tree/main/ai-plugins/dev-skills/skills/openspec
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** openspec
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

OpenSpec is a Chinese-language skill for spec-driven AI programming built on the OPSX workflow. It guides the agent to agree on requirements first, then manage each change through linked artifacts such as a proposal, delta specs, a design document and a task list, where each artifact depends on the ones before it.

The skill sets out slash commands for starting, fast-forwarding, applying, verifying, syncing and archiving changes, plus three flow patterns for clear, unclear and incremental requirements. It requires file-level task entries with checkbox formatting, a pilot batch for larger task lists, and writing newly found gaps back into tasks.md before continuing. It points to the openspec CLI for initializing, listing, validating and archiving changes.

It also includes a cleanup procedure for redundant openspec-prefixed skill folders in a project, which only runs with the user's consent. Reference files cover task writing, delta spec format and configuration. The text is written in Chinese and expects the openspec CLI to be installed.

## When your agent uses it

> OpenSpec 规范驱动开发助手 - 基于 OPSX 工作流的 AI 辅助编程框架。 在编写代码前与 AI 就需求达成一致，使用 Schema 驱动的工件依赖系统管理变更。 触发条件（满足任意一项即触发）： 1. 用户提及 "openspec"、"opsx"、规范驱动开发、spec-driven 2. 用户想要开始新功能开发、重构或探索复杂需求 3. 用户抱怨 AI 理解偏差或频繁返工 4. 用户使用斜杠命令如 /opsx:new、/opsx:ff、/opsx:apply 等 5. 项目初始化或准备重大变更时 6. 需要生成 proposal、design、tasks 等规范文档时 7. 进入某个项目，需要检查项目级技能目录里是否还有用户不再使用的 openspec 局部技能 推荐使用：改进现有项目（棕地开发）、需要高质量实现的关键功能、团队协作开发。 不推荐：快速原型验证（0→1 探索）、一次性小脚本、需求极度不明确的创新探索。

## What it can access

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

- [Instructions only, no scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/dev-skills/skills/openspec)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/dev-skills/skills/openspec)

## Features

- **Requirement alignment first:** Works through requirements with the agent before any code is written, to reduce misunderstandings and rework.
- **Artifact dependency chain:** Creates proposal, specs, design and tasks in order, tracking each artifact as blocked, ready or done.
- **Slash command workflow:** Covers commands for exploring, starting, fast-forwarding, applying, verifying, syncing and archiving changes.
- **File-level task planning:** Requires each task to name a file path and a concrete change, with a pilot batch for larger lists.
- **Delta spec formatting:** Describes ADDED, MODIFIED and REMOVED delta specs for changes to an existing system.
- **Redundant skill cleanup:** Lists extra openspec-prefixed skill folders in a project and asks before removing anything.

## Good for

- Plan a new feature with the agent before writing any code
- Break a refactor of an existing project into file-level tasks
- Generate a proposal, design and task list for a major change
- Apply and verify the tasks of an active OpenSpec change
- Archive a finished change and validate its specs with the CLI

## Install

### Claude Code

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

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install dev-skills@ruan-cat-tools
```

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/openspec &&
cp -R "$tmp/ai-plugins/dev-skills/skills/openspec" ~/.claude/skills/openspec &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/openspec &&
cp -R "$tmp/ai-plugins/dev-skills/skills/openspec" ~/.agents/skills/openspec &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/openspec &&
cp -R "$tmp/ai-plugins/dev-skills/skills/openspec" ~/.cursor/skills/openspec &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/openspec` 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/ruan-cat/monorepo.git --path ai-plugins/dev-skills/skills/openspec
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/openspec &&
cp -R "$tmp/ai-plugins/dev-skills/skills/openspec" ~/.copilot/skills/openspec &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/dev-skills/skills/openspec` into your agent's skills folder as `openspec`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It triggers when the user mentions openspec, opsx or spec-driven development, asks to start a new feature or refactor, uses slash commands such as /opsx:new, or needs proposal, design or tasks documents.

### Does Openspec delete skills in my project without asking?

No. It lists redundant openspec-prefixed skill folders and asks for consent first, and it does not change global skill directories.

### Which CLI commands does Openspec use?

It references openspec init, list, status, validate with strict mode, and archive.

### Is Openspec suitable for quick prototypes?

The skill says it is not recommended for fast prototyping, one-off scripts or highly unclear exploratory requirements.

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

Copy the skill folder from GitHub to ~/.claude/skills/openspec to use it in all your projects, or to .claude/skills/openspec in one project. Or install the dev-skills plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install dev-skills@ruan-cat-tools.

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

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

The closest alternatives to Openspec are Openspec ff change, Openspec apply change, Spec driven development, Openspec new change and Spec coding.

## Where this comes from

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

## Alternatives

- [Openspec ff change](https://ai-powered.com/skills/openspec-ff-change): Openspec ff change is an open-source agent skill for developer tools.
- [Openspec apply change](https://ai-powered.com/skills/openspec-apply-change): Openspec apply change is an open-source agent skill for developer tools.
- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-addyosmani): Spec driven development is an open-source agent skill for developer tools.
- [Openspec new change](https://ai-powered.com/skills/openspec-new-change): Openspec new change 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.
- [Openspec archive change](https://ai-powered.com/skills/openspec-archive-change): Openspec archive change is an open-source agent skill for developer tools.
- [Spec driven development](https://ai-powered.com/skills/spec-driven-development-ajyadav013-2): Spec driven development is an open-source agent skill for developer tools.
- [Openspec help](https://ai-powered.com/skills/openspec-help): Openspec help is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/openspec
