OpenSpec is a spec-driven workflow for AI agents: propose a change, implement it, then archive it. Its skills work with Claude Code, Codex and Pi.
For the general rules, and for other frameworks, see ADD-A-FRAMEWORK.md.
The agents run openspec while they work, and the setup command below uses it too.
-
With Docker or Podman: add this line to your
Dockerfile.tools, as explained in Tools for your project's tests, then rebuild:RUN npm install -g @fission-ai/[email protected] && npm cache clean --force
-
With a local installation: install it on your computer (Node.js 22.12 or newer):
npm install -g @fission-ai/openspec@latest
Choose one:
-
At every run, without changing your repository: in the workflow's Source node, set Setup command to:
openspec init --tools claude,codex,pi -
Once, in your repository: in your project folder, run the same command and commit:
openspec init --tools claude,codex,pi git add . git commit -m "Add OpenSpec"
Both add the OpenSpec skills for the three agents (.claude/, .agents/skills/, .pi/)
and an openspec/ folder for your specs.
-
Make your project available to rightcommit: with Docker or Podman, put it in the
sourcesfolder of rightcommit; or push it to a Git repository. -
In a workflow, add a Source node that points to it (Folder in /sources or HTTPS Git repository).
-
Add an Agent node with the runtime you want: Claude Code, Codex or Pi.
-
Add Task nodes that use that agent:
Task Skill Prompt Propose openspec-proposePropose this change: <your idea>Implement openspec-apply-changeImplement the change.Archive openspec-archive-changeArchive the change.When the run starts, rightcommit checks that these skills exist for the Agent's runtime.
-
Optionally, add a Review node after "Propose" to approve the plan before any code is written.
The skill names are the same for Claude Code, Codex and Pi, so the same workflow works with any of the three.