Skip to content
Skill

Openspec

Spec-driven workflow that aligns requirements with the AI before code is written

Openspec 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
5
Last commit
License
MIT
Listing updated

Similar skills

About Openspec

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 探索)、一次性小脚本、需求极度不明确的创新探索。

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 4 files (21 KB) on GitHub on 4 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 dev-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from ruan-cat/monorepo

  1. Works through an OpenSpec change's task list, implementing and checking off each task

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates all OpenSpec planning artifacts for a change in one pass

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Starts a new OpenSpec change and shows its first artifact template for review

    • Open source
    • 5 GitHub stars
    • Developer tools
  5. Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns incident reports and repeated failures into durable, verifiable agent skill rules

    • Open source
    • 5 GitHub stars
    • Developer tools