OpenSpec
OpenSpec is a powerful CLI tool designed to streamline API specification management and validation workflows. It provides comprehensive functionality for parsing, validating, and transforming OpenAPI specifications, enabling developers to maintain consistent API documentation standards across projects. The tool offers automated schema validation, specification linting, format conversion between different API specification formats, and integration capabilities with CI/CD pipelines. Key features include real-time validation feedback, customizable rule sets, and support for multiple specification versions. OpenSpec is ideal for API-first development teams, DevOps engineers implementing automated testing, and organizations requiring standardized API governance. Its lightweight design and extensive configuration options make it perfect for both local development environments and production deployment pipelines.
Latest Releases
All releasesOpenSpec now has a skill router. Type
/openspec, say what you want, and the router picks the right OpenSpec skill and runs it.How to upgrade
Run
openspec update. The update adds the openspec router skill and changes no other skill.New: the
/openspec skill router- One command for everything -
/openspecaccepts any OpenSpec request in plain words. In Codex the command is$openspec. - The router picks the skill - You no longer need to know which of the 12 workflow skills to call.
- The router answers questions - Ask "where does add-auth stand?" and the router checks your project, then tells you the status and the next step.
- The router runs several steps in order - Ask "verify add-auth, then archive it" and the router runs both skills, pausing wherever a step needs your approval.
- Every existing skill still works -
/openspec-proposeand the other 11 skills keep their names, their tab completion and their behavior. - Every profile gets the router - Core and custom profiles both install the router, and
openspec config profiledoes not list it because the router is not a workflow you choose.
New: reference files for skills
- A skill can now ship a
references/folder - The folder sits next toSKILL.mdand holds detail the agent opens only when a task needs it. - The router is the first skill with references -
openspec initandopenspec updateinstall, refresh and remove reference files together with their skill.
Improved
openspec updaterepairs reference files - A reference file that was deleted or edited is restored on the nextopenspec update.
Fixed
- Windows install no longer fails on a locked file - The install script now retries for up to five seconds when Windows still has the new
openspec.exelocked.
Full Changelog: https://github.com/Fission-AI/OpenSpec/compare/v2.1.1...v2.2.0
This release smooths out a handful of rough edges. Skills now install straight from the CLI, with no Git and no network needed. Archive is more careful with your main specs, and
validate --strict catches two problems before they reach archive. Your workflows don't change.How to upgrade
Update the OpenSpec CLI, then run this in each project:
``
bashopenspec update`
Skills install from the CLI itself
- No more Git or GitHub needed to install skills. In 2.1.0,
openspec init and openspec update cloned the skills from GitHub, so they failed without Git, behind a strict firewall, or offline. The skills now come from the CLI package you already installed, so setup works anywhere and the skills always match your CLI version.npx skills add installs stay up to date. If you added the OpenSpec skills to a project with npx skills add, openspec update used to skip them. It now finds them and refreshes them like any other install.The continue workflow hands off to apply again. When planning is complete, the continue skill tells you the plan is ready to review and that you can ask your agent to apply it.
Archive is safer with your specs
- Archive won't half-finish. If the archive folder for a change already exists, the archive workflow now stops before it touches any main spec. Before, it could update your main specs and then fail, leaving them out of step with the archive.
- New main specs come out formatted. When archive creates a main spec, it puts a blank line after
## Purpose, so the file passes Prettier and markdownlint without a reformat.Retiring a capability reads wrapped lines correctly. A requirement line that wraps onto a line starting with <, like <args> are passed on to the script, used to be read as stray HTML and block the retirement. It's now read as part of the sentence.
Validate catches more, earlier
- Frontmatter at the top of a delta spec is allowed.
openspec validate --strict no longer fails on a delta spec that starts with a YAML frontmatter block.Overlong edits are flagged before archive. When a MODIFIED requirement grows past the 500-character limit, validate --strict now warns you, so you can trim it while you're still working on the change.
Upgrade advice that fits your install
- Homebrew and Nix users get the right update command.
openspec version --check and openspec update used to tell every install to run npm install -g, and even offered to run it. A Homebrew install is now told to run brew upgrade openspec`, and a Nix install is no longer told to use npm.Full changelog: [v2.1.0...v2.1.1](https://github.com/Fission-AI/OpenSpec/compare/v2.1.0...v2.1.1)
OpenSpec now supports global skills for coding agents. Install the skills once and your agent can use them in every project on your machine.
As more teams adopt Vercel’s
skills installer, it’s becoming a common way to install skills across coding tools. OpenSpec is adopting it too, so we can spend less time maintaining installer code and more time improving the skills themselves.The OpenSpec workflows themselves haven't changed.
What changed
- Skills can be installed globally. Vercel’s installer handles the location for each supported agent, whether it reads
~/.agents/skills/or uses its own folder. openspec updateasks where a project's skills should live. In a repo that has its own OpenSpec skills, you choose once between keeping them in the repo and switching to global. Nothing changes until you choose.openspec init --tools <ids>in a new repo installs globally. In 2.0 it wrote the skills into the repo. Add--scope projectto keep them there.- Skills are installed by Vercel’s
skillspackage. Installing or refreshing them needs Git and access to GitHub.
How to upgrade
Update the OpenSpec CLI, then run this in each project:
``
bashopenspec update`
In a repo that has its own OpenSpec skills, you'll see this choice:
`textWhere should OpenSpec keep this project’s skills?
❯ Keep in this project Keep the skills in this repo. Switch to global Install the skills globally, for every project on this machine.`
Keep in this project. Press Enter. The skills stay in your repo. Commit openspec/config.yaml, which records your choice so your teammates aren’t asked. Choose this if GitHub’s hosted Copilot agent reads the skills from the repo. You can switch later with openspec init --scope global.
Switch to global. We recommend this for most teams. The skills are installed globally on your machine, and the copies in the repo are removed. Commit the removed files. Each teammate then pulls, runs openspec update, and answers Yes when it offers to set up skills on their machine. Upgrade everyone’s CLI before you switch a repo: earlier versions only know project skills.
In CI or from an agent there is no question: update refreshes the skills where they are.
If a script sets up your repos, add --scope project to keep new repos' skills in the repo:
`bashopenspec init --scope project --tools claude`
Note: openspec update replaces the built-in skill folders. If you edited a built-in skill or added a file inside one, save it first. openspec update --dry-run shows what will change.
An npm install needs Node 22.20.0 or newer. The standalone executable needs nothing. If you already ran npx skills add, keep that install and run openspec update.
See the [upgrade guide](https://openspec.dev/docs/upgrade-2-1) for more details.
Fixes
- The Windows executables are now labeled as OpenSpec, published by FISSION AI INC. Their file properties used to name the build tool, and an antivirus product removed
openspec.exe` as a threat. If the download disappears or won't run, the installer now says antivirus is the likely cause and shows the npm install command.Full changelog: [v2.0.0...v2.1.0](https://github.com/Fission-AI/OpenSpec/compare/v2.0.0...v2.1.0)
OpenSpec now installs skills in
.agents/skills/ instead of keeping a separate copy for each coding agent. Tools that don't read this folder, like Claude Code and Kiro, get links to the same skills.We're also removing the
/opsx:* slash commands. Each command already has a matching skill, so there's no need to maintain both.The OpenSpec workflows themselves haven't changed.
What changed
- Skills are installed in
.agents/skills/. Every tool uses the same skills, without duplicate files across folders. /opsx:*commands are removed. For example,/opsx:proposebecomes/openspec-propose(or$openspec-proposein Codex). You can also just ask your agent for the work.openspec updateremoves files generated by older versions. This includes old slash commands and duplicate skills. Files you've changed in the old locations are kept and listed.- The
deliverysetting is no longer needed. Existing configs keep working. - Amazon Q Developer support is removed because it can't load skills. We recommend Kiro instead.
How to upgrade
Update the OpenSpec CLI, then run this in each project and commit the changes:
``
bashopenspec update`
To preview the changes first, run openspec update --dry-run.
Note: if you edited OpenSpec's skills directly in .agents/skills/, openspec update overwrites those edits. Save them before upgrading.
See the [upgrade guide](https://openspec.dev/docs/upgrade-to-2) for more details.
Fixes
openspec completion install no longer edits PowerShell profiles when run from Windows cmd.exe.openspec instructions apply no longer cuts off tasks that span several lines in tasks.md`.Full changelog: [v1.17.0...v2.0.0](https://github.com/Fission-AI/OpenSpec/compare/v1.17.0...v2.0.0)
openspec update now upgrades a project from any older release in one run, and announces that command files go away in OpenSpec 2.0.> Heads-up: command files (
/opsx:*) go away in OpenSpec 2.0. Your OpenSpec skills stay and do the same work. To switch now, run openspec config set delivery skills && openspec update. The plan is in [#2022](https://github.com/Fission-AI/OpenSpec/issues/2022).New
- 2.0 notice - While a configured tool still gets command files,
openspec updateends with a short notice that they go away in 2.0, plus the one command to switch early. It stays silent once you use skills only, and for tools without command files, such as Codex.
Improved
- Upgrades from any release -
openspec updatenow upgrades a project made by any release since 0.12 in one run, without stopping to ask for--force. It removes old OpenSpec files nobody edited, including leftover copies that made some tools show every skill twice, and keeps any file you changed. - Safer cleanup - Cleanup never touches files outside your project, even when a folder inside it links somewhere else, and never removes anything when a tool fails to set up.
Fixed
- Switching to skills only -
openspec config set delivery skillsfollowed byopenspec updateno longer deletes command files you edited. Only files OpenSpec generated are removed; edited ones are kept and listed. - Windows installer -
irm https://openspec.dev/cli/install.ps1 | iexno longer fails withunsupported CPUon Windows PowerShell 5.1 machines that report no CPU architecture.
Full Changelog: https://github.com/Fission-AI/OpenSpec/compare/v1.16.1...v1.17.0
Installation
npm install -g @fission-ai/openspec@latest