Prerequisites
- Node.js 22 or higher
- npm or npx
- Git
- A supported AI coding platform, such as Claude Code, Codex, Cursor, Gemini CLI, OpenCode, or ZCode
1. Install the CLI
2. Initialize a project
Run the install entry point from your project root:comet init detects platforms, installs the Comet Skill, and decides the default workflow for /comet during project-level initialization. New projects default to Native; projects with an existing explicit Classic state stay Classic. You can also choose explicitly:
Install scope: project or global
When unsure, start with project scope — it’s the easiest way to keep the whole team on the same Comet behavior.
Install mode: copy or symlink
Classic or both initialization asks for the install mode after you pick platforms:- Copy (default): copies an independent set of Skill files for each platform, suited for cross-device sync (committed to the repo).
- Symlink: creates symlinks in each platform’s
skills/directory pointing to.comet/skills/, so multiple platforms share one central store and a single update applies everywhere.
3. Update Comet
Update Comet as follows — it pulls the new npm package and refreshes the installed Skill, Rule, Hook, Runtime, and config:comet update, the corresponding npm packages are updated as well (the global package is attempted at most once).
When you limit the scope to a single project with
—current-project or —json, it refreshes assets only and does not update the npm package by default. To also update the package in that mode, add —self-update.4. Health check
Whenever something looks off, runcomet doctor for a full installation health check:
doctor checks Skill, scripts, working directory, and change state:
failis a blocking issue (such as a missing Skill or corrupted state) and must be addressed first.warnis usually non-blocking (such as the openspec CLI not installed when the project doesn’t depend on it).
5. Uninstall
comet uninstall removes only the Skill, rules, and hooks managed by Comet, and keeps your OpenSpec changes, design docs, implementation plans, and project code.
--all-projects. See comet uninstall.
When to reinstall or update
- After upgrading
@rpamis/comet. - When
comet doctorreports a Skill or script version mismatch. - When switching between Chinese and English Skills.
- After your team updates the project-level Comet config.
- When the install summary shows
failedfor a platform, or a hook reports[COMET-HOOK] crashon file writes — usually an incomplete install. Re-runcomet init/comet updateto fill in the missing files.
Next steps
- Full first-run walkthrough: Quickstart.
- All supported platforms: Supported platforms.
- More questions about installation and initialization: CLI FAQ.

