comet doctor runs a suite of health checks on your Comet installation, helping you diagnose missing skills, misconfigured state files, or broken script paths.
Usage
path defaults to . (the current directory) when omitted.
Checks Performed
comet doctor runs the following checks in order:
| Check | What it verifies |
|---|---|
| openspec CLI | Whether the openspec command is available on PATH, and if so, which version is installed. |
| Working directories | Whether docs/superpowers/specs/ and docs/superpowers/plans/ exist inside the project (skipped for --scope global). |
| Skills per platform | For each detected platform (project and/or global), whether all files listed in the Comet skill manifest are present. Reports the number of missing files if any. |
| Scripts present | Whether the bundled Comet shell scripts (e.g. comet-guard.sh, comet-state.sh) are accessible from the installed package assets. |
.comet.yaml validity | For each change directory under openspec/changes/, whether the top-level keys in .comet.yaml are all recognised field names. Unknown or misspelled keys are reported as fail. |
Check Result Levels
| Status | Icon | Meaning |
|---|---|---|
pass | ✓ | The check completed successfully — no action needed. |
warn | ⚠ | Not critical, but worth addressing (e.g. openspec CLI is not installed). |
fail | ✗ | Something is broken and should be fixed before continuing (e.g. unknown field in .comet.yaml). |
Example Output
openspec is not installed, the CLI check produces a warn result with an install hint:
Flags
Output all check results as structured JSON instead of formatted text. See JSON output below.
Scope to diagnose. Accepted values:
auto (default), project, or global.auto— Checks both project and global scopes (skips global if the project path equals the home directory).project— Checks only the project directory; includes the working-directories check.global— Checks only the global (home) directory; skips the working-directories check.
JSON Output
Valid .comet.yaml Fields
comet doctor validates the following top-level keys in each .comet.yaml state file. Any key not in this list is flagged as fail: