comet init, Comet establishes a clear directory structure that separates WHAT (OpenSpec artifacts) from HOW (Superpowers documents), with skills installed to your AI platform’s skills directory. Everything Comet needs to track, resume, and archive a change lives on disk — not in conversation history.
Directory Tree
Skills Directory
The platform skills directory (shown as.claude/skills/ above) varies by AI coding platform. Comet supports 28 platforms — each has its own directory convention:
| Platform | Skills Directory |
|---|---|
| Claude Code | .claude/ |
| Cursor | .cursor/ |
| Gemini CLI | .gemini/ |
| Windsurf | .windsurf/ |
| GitHub Copilot | .github/ |
| Codex | .codex/ |
comet init, you select one or more platforms and Comet installs the skills to the appropriate directory for each. See the Supported Platforms page for the full list of 28 platforms and their directory mappings.
All Comet automation scripts live under <platform-skills-dir>/comet/scripts/ and are located at runtime via comet-env.sh — paths are never hardcoded.
OpenSpec Directory
Theopenspec/ directory is managed by OpenSpec and contains everything that defines WHAT is being built:
config.yaml— Project-level OpenSpec configurationchanges/<name>/— One subdirectory per active change, containing:proposal.md— Problem description, motivation, goals, and scopedesign.md— Architecture decisions and solution designtasks.md— Task checklist (each task is checked off as it completes)specs/<capability>/spec.md— Delta spec for the affected capability (created when existing acceptance scenarios are modified).openspec.yaml— OpenSpec’s own state file for this change.comet.yaml— Comet’s decoupled workflow state for this change
changes/archive/YYYY-MM-DD-<name>/— Completed changes moved here at archivespecs/<capability>/spec.md— Main specs (delta specs are merged in at archive time)
Superpowers Directory
Thedocs/superpowers/ directory is managed by Superpowers and contains everything that defines HOW the change is built:
docs/superpowers/specs/— Design documents. Each Design Doc is a technical RFC created during the design phase, namedYYYY-MM-DD-<topic>-design.md. At archive, the doc’s frontmatter is annotated witharchived-withstatus.docs/superpowers/plans/— Implementation plans. Each plan is generated during the build phase, namedYYYY-MM-DD-<feature>.md. Plan file headers containchange:anddesign-doc:metadata linking them to their associated OpenSpec change.
State Files
Two state files live inside each active change directory and serve distinct purposes:| File | Owner | Purpose |
|---|---|---|
.openspec.yaml | OpenSpec | Spec lifecycle and change metadata — tracks the change’s identity, creation date, and OpenSpec-level status |
.comet.yaml | Comet | Workflow phase, execution mode, verification status, archive flag, and links to Design Doc and Plan |
.comet.yaml exclusively through comet-state.sh — agents should never edit it directly.
See the State Management concept page for full field-by-field documentation of both files.
Project-Level vs. Global Install
Thedocs/superpowers/ working directories are only created for project-level installs:
- Project-level (
comet initin your project directory): Createsdocs/superpowers/specs/anddocs/superpowers/plans/in the project. Skills are installed to the platform’s project-scoped skills directory. - Global (
comet init --scope global): Skills are installed to the platform’s home-directory-level skills directory. Thedocs/superpowers/working directories are not created — they are expected to exist in each project you work in.