comet init is the first command you run when setting up Comet. It interactively installs OpenSpec, Superpowers, and Comet skills to your chosen AI coding platforms.
Usage
path defaults to . (the current directory) when omitted.
What init Does
Running comet init walks you through the following steps in order:
- Detect existing platforms — Scans for existing AI platform config directories (e.g.
.claude/,.cursor/) and pre-selects them in the platform picker. - Choose install scope —
project(current directory) orglobal(home directory). - Select language —
Englishor中文for Comet skill files. - Select platforms — Choose one or more of the supported AI coding platforms to install skills on. Detected platforms are pre-checked.
- Install OpenSpec skills — Deploys OpenSpec spec-lifecycle skills to the selected platforms.
- Install Superpowers skills — Deploys Superpowers development-methodology skills to the selected platforms.
- Deploy Comet skills — Copies Comet phase-command skills (in your chosen language) to each selected platform’s
skills/directory. - Create working directories — For project-scope installs, creates
docs/superpowers/specs/anddocs/superpowers/plans/.
Flags
Non-interactive mode. Auto-selects all detected platforms (or all supported platforms if none are detected), defaults scope to
project, and skips any existing components rather than prompting.Set the install scope without being prompted. Accepted values:
project (installs into the current directory) or global (installs into the home directory).Automatically skip any skill components that are already installed, without prompting. Mutually exclusive in intent with
--overwrite.Automatically overwrite any skill components that are already installed, without prompting. Mutually exclusive in intent with
--skip-existing.Suppress all interactive output and print a single structured JSON result when the command finishes. See JSON output below.
Interactive Mode
When neither--skip-existing nor --overwrite is set, comet init detects which components are already installed on each platform before writing anything.
- Multiple existing components on the same platform — You are offered a single bulk choice: Overwrite all existing components, Skip all existing components, or Choose per component. Selecting “Choose per component” drops into individual prompts for each conflicting component (OpenSpec, Superpowers, Comet).
- Single existing component — You are prompted per component to overwrite or skip.
Example Output
JSON Output
Pass--json to suppress interactive prompts and receive a machine-readable result:
results has one of three status values per component:
| Value | Meaning |
|---|---|
installed | The component was written successfully. |
skipped | The component already existed and was not overwritten. |
failed | An error occurred while installing the component. |
After
comet init, run comet doctor to verify the installation is complete and healthy.