Set up OpenSpec for spec-driven development in this project.
Steps:
Verify Node.js ≥ 20.19.0 is available. Run
node --version. If Node is missing or older than 20.19.0, stop and tell the user to upgrade Node.js first.Check whether the OpenSpec CLI is already installed globally:
npm list -g @fission-ai/openspec --depth=0If it is not installed (command exits non-zero or output does not mention
@fission-ai/openspec), install it:npm install -g @fission-ai/openspec@latestRun OpenSpec initialization in the current project directory:
openspec init --tools claudeReport what was done:
- Whether openspec was already installed or newly installed
- The output of
openspec init --tools claude - The skills and commands that are now available (
/opsx:explore,/opsx:propose,/opsx:apply,/opsx:archive)