/comet invocation.
Prerequisites
Make sure the following are available on your machine before installing Comet.
- Node.js 20+ — Comet requires Node 20 or later (
node --versionto check) - npm / npx — bundled with Node.js; used to install and run the CLI
- Git — required for branch/worktree isolation during the build phase
- Bash-compatible shell — macOS and Linux are supported natively; Windows users should use Git Bash or an equivalent bash environment for the workflow scripts
- An AI coding tool — Claude Code, Cursor, Windsurf, GitHub Copilot, Gemini CLI, or any of the 28 supported platforms
Step 1: Install Comet Globally
Install the Comet CLI from npm so thecomet command is available anywhere on your system.
Step 2: Navigate to Your Project Directory
Comet installs skills relative to your project root (or to your home directory for a global install). Change into the project you want to use Comet with:If you haven’t started a project yet, create a new directory and initialise a Git repository first:
mkdir my-app && cd my-app && git init.Step 3: Run comet init
The interactive initialiser installs OpenSpec skills, Superpowers skills, and Comet skills to your chosen AI coding platforms.
comet init guides you through the following prompts in order:
| Prompt | What to choose |
|---|---|
| Install scope | project installs skills into the current directory (committed with your repo). global installs to your home directory for all projects. |
| Language | Choose English or 中文 for the Comet skill text. OpenSpec and Superpowers skills use their own language settings. |
| Platform selection | Pick the AI coding tools you use. Comet auto-detects existing platform config directories (e.g. .claude/, .cursor/) and pre-selects them. |
| Conflict handling | If skills already exist, choose to overwrite all, skip all, or decide per component. |
Example comet init Output
comet init completes, your project will contain a skills directory for each selected platform (e.g. .claude/skills/) containing the full Comet, OpenSpec, and Superpowers skill files and automation scripts.
Step 4: Verify with comet doctor
Run the built-in health check to confirm everything is wired up correctly:
Expected Healthy Output
✗, the output includes a suggested fix. Re-run comet init or consult the CLI Reference for remediation options.
Step 5: Open Your AI Coding Tool and Type /comet
Launch your AI coding tool (Claude Code, Cursor, Windsurf, etc.), open the project, and enter:
- Scans for active specs — looks for in-progress changes in
openspec/changes/. - Reads
.comet.yaml— determines the current workflow phase (open,design,build,verify, orarchive). - Dispatches to the correct sub-skill —
/comet-openif no spec exists yet, or the appropriate phase skill to resume an interrupted workflow. - Presents a selection list if multiple active specs are found, so you choose which to continue.
/comet starts Phase 1 (/comet-open) and asks you to describe the change you want to make.
Using OpenClaw, Hermes, or Other Generic Platforms
For platforms that use the genericskills CLI directly (such as OpenClaw and Hermes), install the Comet skill package with:
Keeping Comet Up to Date
To get the latest features and fixes:comet update refreshes both the npm package and the installed skill files across all detected project and global targets.
Next Steps
Workflow Deep Dive
Understand the five phases, guard conditions, state machine, and preset paths.
Platforms
See all 28 supported AI coding platforms and their skills directory paths.
CLI Reference
Full options for
comet init, comet doctor, comet status, and comet update.Scripts Overview
Learn how the guard, handoff, state, and archive scripts protect your workflow.