openspec-install
OpenSpec Install Skill
Install the OpenSpec CLI so that openspec is available globally. This skill covers only installing the CLI; it does not run openspec init. For project initialization after install, use openspec-initial.
When to Use
- First-time OpenSpec setup ("install OpenSpec", "get started with OpenSpec").
- User reports "openspec: command not found".
- Upgrading to the latest version.
- CI or scripts that need the CLI pre-installed.
Prerequisites
- Node.js 20.19.0 or higher — Check with
node --version. If not installed, guide the user to install Node.js first (e.g. via nvm, fnm, or official installer).
Workflow
-
Check if already installed
- Run
openspec --version. If it succeeds, the CLI is already installed; suggest openspec-initial for project setup or upgrading vianpm install -g @fission-ai/openspec@latest.
- Run
-
Choose package manager and install
- npm (most common):
npm install -g @fission-ai/openspec@latest - pnpm:
pnpm add -g @fission-ai/openspec@latest - yarn:
yarn global add @fission-ai/openspec@latest - bun:
bun add -g @fission-ai/openspec@latest - nix (one-time, no install):
nix run github:Fission-AI/OpenSpec -- init - nix (persistent):
nix profile install github:Fission-AI/OpenSpec
- npm (most common):
-
Verify installation
- Run
openspec --versionto confirm.
- Run
-
Upgrade existing installation
- Same command as install — e.g.
npm install -g @fission-ai/openspec@latest.
- Same command as install — e.g.
Outputs
openspeccommand available globally in PATH.
Next Steps
- Use openspec-initial to run
openspec initin a project. - Or use openspec-onboard for a guided tutorial.
Different Environments
| Environment | Command |
|---|---|
| npm | npm install -g @fission-ai/openspec@latest |
| pnpm | pnpm add -g @fission-ai/openspec@latest |
| yarn | yarn global add @fission-ai/openspec@latest |
| bun | bun add -g @fission-ai/openspec@latest |
| nix (one-time) | nix run github:Fission-AI/OpenSpec -- init |
| nix (persistent) | nix profile install github:Fission-AI/OpenSpec |
| CI | npm install -g @fission-ai/openspec@latest in a cacheable step |
Troubleshooting
- Node.js version too old: OpenSpec requires Node.js 20.19.0+. Upgrade Node.js first.
- Permission errors (npm): Use
npm install -gwithout sudo if using nvm/fnm; otherwise consider using nvm. - Command not found after install: Ensure the global bin directory is in PATH (check
npm bin -g). - nix not available: Install nix or use npm/pnpm/yarn/bun instead.
References
More from partme-ai/openspec-skills
openspec-explore
Think through ideas, investigate problems, and clarify requirements before committing to a change using `/opsx:explore`. Use when the user says "explore an idea", "think through this", "investigate options", or wants to brainstorm before creating a formal change.
50openspec-new
Start a new OpenSpec change with `/opsx:new`, creating a change folder with metadata and scaffolding. Use when the user says "start a new change", "new feature", "/opsx:new", or "create an OpenSpec change".
29openspec-ff
Fast-forward through artifact creation with `/opsx:ff`, generating all planning artifacts (proposal, specs, design, tasks) at once. Use when the user says "fast forward", "create all artifacts", "/opsx:ff", or has a clear picture of what to build.
24openspec-initial
Run `openspec init` to initialize OpenSpec in a project directory, creating the openspec/ folder structure and configuring AI tool integrations. Use when the user says "initialize OpenSpec", "openspec init", or "set up OpenSpec in this project".
24openspec-verify
Validate that implementation matches change artifacts using `/opsx:verify`, checking completeness, correctness, and coherence. Use when the user says "verify implementation", "check my work", "/opsx:verify", or wants quality validation before archiving.
23openspec-onboard
Guided onboarding through the complete OpenSpec workflow using `/opsx:onboard`, walking the user through a real change in their codebase. Use when the user says "onboard me", "tutorial", "/opsx:onboard", "how does OpenSpec work", or is new to OpenSpec.
22