Skip to main content
Comet (@rpamis/comet) is an npm CLI tool that installs AI coding Skills and chains two best-in-class skill sets — OpenSpec and Superpowers — into a single, fully automated five-phase development pipeline. Install it once and every AI coding session gains a structured, stateful workflow from idea to archived spec.

What Is Comet?

  • OpenSpec handles the WHAT: requirements proposals, spec lifecycle management, delta-spec tracking, and archival.
  • Superpowers handles the HOW: brainstorming, TDD-driven coding, subagent-driven development, code review, and plan writing.
Comet chains both, wiring their skills together with guard scripts, a YAML state machine, and a smart main entry (/comet) that auto-detects where you are in the workflow and resumes from that exact point — no token-wasting re-reads of documents or manual phase tracking required.

The Problem Comet Solves

AI coding workflows break down in two common ways:
ProblemRoot Cause
Agents re-examine all documents on resume, wasting tokensNo stateful record of which phase completed and what remains
Spec documents fall out of sync with code changesDocument synchronisation depends on manual reminders to the Agent
Phase transitions happen prematurely (“done” without evidence)No guard conditions enforcing real exit criteria
Skills trigger “look-alike” operations instead of real skill callsNested skill invocation is poorly understood
Comet fixes all of these by:
  1. Recording phase, execution mode, verification results, and archive status in .comet.yaml — a dedicated Comet workflow state file decoupled from OpenSpec’s own .openspec.yaml.
  2. Running guard scripts (comet-guard.sh) at every phase boundary to check tasks, YAML fields, verification evidence, and archive conditions before allowing the workflow to advance.
  3. Automating handoff, state updates, validation, and archive sync inside scripted flows so users never have to remind the Agent to “update the design doc” or “sync the spec”.
Comet does not simply trust the Agent saying “done”. Each phase exit is validated by scripts that check real evidence — file existence, field values, SHA256 hashes, and task completion — before advancing state.

The Five-Phase Pipeline

Comet organises every piece of work into five sequential phases. The main entry /comet dispatches to the correct phase automatically by reading the active spec’s state from .comet.yaml.
/comet
  ↓ auto-detect phase
┌──────────────┐    ┌───────────────┐    ┌───────────────┐    ┌────────────────┐    ┌────────────────┐
│  1. OPEN     │───▶│  2. DESIGN    │───▶│  3. BUILD     │───▶│  4. VERIFY     │───▶│  5. ARCHIVE    │
│ /comet-open  │    │ /comet-design │    │ /comet-build  │    │ /comet-verify  │    │ /comet-archive │
│  (OpenSpec)  │    │ (Superpowers) │    │ (Superpowers) │    │   (Both)       │    │  (OpenSpec)    │
└──────────────┘    └───────────────┘    └───────────────┘    └────────────────┘    └────────────────┘

Phase Summary

PhaseCommandOwnerKey Artifacts
1. Open/comet-openOpenSpecproposal.md, design.md, tasks.md
2. Deep Design/comet-designSuperpowersDesign Doc, delta spec
3. Plan & Build/comet-buildSuperpowersImplementation plan, code commits
4. Verify & Finish/comet-verifyBothVerification report, branch handling
5. Archive/comet-archiveOpenSpecDelta→main spec sync, archive

Preset Paths

For smaller changes, Comet ships two preset paths that skip phases where full design overhead isn’t warranted:
PresetPathSkips
/comet-hotfixopen → build → verify → archiveBrainstorming/deep design
/comet-tweakopen → lightweight build → light verify → archiveBrainstorming and full plan
Brainstorming is non-skippable in the full workflow. Every substantive change must pass through deep design before implementation. This is a deliberate guard, not an oversight.

Key Benefits

Automatic Phase Detection on Resume

Close your AI coding session mid-way through Phase 3? Just type /comet when you return. Comet reads the active spec from .comet.yaml, dynamically identifies which phase was executing, and continues — without re-reading every document or guessing progress. If multiple active specs exist, Comet presents a selection list so you choose which one to resume.

Guard-Script-Enforced Transitions

Every phase exit is gated by comet-guard.sh:
  • Entry verification — checks file existence and state consistency before starting a phase; outputs [HARD STOP] with actionable suggestions on failure.
  • Exit validation — verifies tasks are truly complete, verification reports exist, and branch status is handled before advancing state.
  • --apply modecomet-guard.sh --apply auto-updates .comet.yaml so no manual state editing is ever required.

YAML State Machine

Two decoupled state files track the full lifecycle:
FileOwnerPurpose
.openspec.yamlOpenSpecSpec lifecycle, change metadata
.comet.yamlCometWorkflow phase, execution mode, verification status
This separation means Comet can be upgraded or replaced without affecting OpenSpec’s data, and agents have a clean, well-defined interface to query state via comet-state.sh.

Support for 28 AI Coding Platforms

comet init installs skills to 28 AI coding platforms — from Claude Code and Cursor to GitHub Copilot, Gemini CLI, Amazon Q Developer, and many more. The interactive installer auto-detects which platforms you already have configured in your project and pre-selects them. See the full Platforms list.

What You’ll Learn From Comet

Beyond the workflow itself, the Comet project is a working reference implementation for advanced AI coding patterns:
  • How to reliably trigger nested Skills — ensuring the Agent truly invokes a skill (with visible print output) rather than performing a “look-alike” operation based on a description.
  • How to make combined Skills flow automatically across phases — wiring multiple skill sets into a single coherent pipeline without manual intervention at each handoff.
  • How to turn the Spec lifecycle into a resumable workflow — linking OpenSpec and Superpowers artifacts with stateful YAML so agents can resume mid-task correctly.
  • How to turn document synchronisation into automation — scripting handoff, state updates, validation, and archive sync so users never need to remind the Agent.
  • How to design guard conditions that Agents can execute — replacing “the agent says done” with script-checked evidence.
  • How to distribute and install Skills across platforms — handling project vs global scopes, language selection, and platform-specific directory differences in a CLI installer.
  • How to turn shell scripts into Agent workflow infrastructure — writing cross-platform scripts (macOS, Linux, Windows Git Bash) that move fragile workflow control out of Prompt text and into testable, reusable tools.

What Comet Enables

With Comet installed and running, your AI coding sessions gain:
  • ✅ A structured proposal and design phase before any code is written
  • ✅ TDD-driven implementation backed by Superpowers methodology
  • ✅ Automatic commit discipline (one commit per task, message reflects design intent)
  • ✅ Verified, evidence-backed phase transitions — no premature advances
  • ✅ Delta spec tracking throughout implementation, synced at archive
  • ✅ A complete, archived record of every change from idea to merged spec

Ready to Get Started?

Install Comet and run your first workflow in under five minutes.

Quickstart →

Install Comet globally, run comet init, and invoke /comet in your AI coding tool.