
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
@rpamis/comet
Advanced tools
██████╗ ██████╗ ███╗ ███╗███████╗████████╗
██╔════╝██╔═══██╗████╗ ████║██╔════╝╚══██╔══╝
██║ ██║ ██║██╔████╔██║█████╗ ██║
██║ ██║ ██║██║╚██╔╝██║██╔══╝ ██║
╚██████╗╚██████╔╝██║ ╚═╝ ██║███████╗ ██║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝ ╚═╝
OpenSpec + Superpowers dual-star development workflow — one command from idea to archive.
OpenSpec handles WHAT (outlines, proposals, spec lifecycle, archiving).
Superpowers handles HOW (technical design, planning, execution, wrap-up).
Comet chains both into a five-phase automated pipeline.
[!IMPORTANT] 0.3.7 Highlights — One-step CodeGraph semantic code indexing (official: cost ↓16%, tool calls ↓58%);
New Beta context compression cutting Build-phase input tokens by 25–30%; New active context compression mechanism to release context consumed by reading specs and brainstorming, preserving window space for the subsequent Build phase. 6 default-on workflow token optimizations; New
auto_transitionconfig for automatic or manual phase handoff; Hook+Rule anti-drift phase guard; Optional TDD mode and subagent dispatch confirmation; Large PRD split into multiple changes; Pre-archive confirmation with reopen, verify retry limit, systematic debugging interception, and verification completion check.See NEWS.md for details.
OpenSpec excels at managing requirements, creating proposals, managing Spec lifecycles, and archiving, but its proposals and tasks lack the detail of Superpowers brainstorming.
Superpowers generates Spec documents after brainstorming, but these documents typically lack stateful design — after completing requirements, Specs only have tasks checked off in the document, and Agents even forget to check them off. This causes the Agent to re-examine documents and project code to verify on resumption, wasting many tokens.
Comet combines the strengths of both, integrating the core workflow into 5 phases
The main entry /comet supports current Spec state detection, suitable for long tasks — after closing your AI coding
session midway, just /comet and Comet will automatically read the active Spec (lists multiple for selection),
dynamically identify which phase is currently executing, and continue.
At the same time, Comet provides full Spec lifecycle management. During execution, it links OpenSpec change/spec artifacts with Superpowers design and planning documents, then automates handoff, state updates, validation, and archive sync so users do not have to repeatedly remind the Agent to keep documents synchronized and connected.
Many excellent Skill projects exist in the current Skill market, but they generally have preference issues — users may only like some features. For example, when using both OpenSpec and Superpowers, one might only use OpenSpec's Spec management capabilities, but prefer Superpowers' TDD-driven approach for coding.
Long-term Skill users know these capabilities can be freely combined, but exactly how to do so still requires real practice. The Comet project can serve as a reference:
How to reliably trigger nested Skills — Not letting the Agent rely on document descriptions to perform "look-alike Skill trigger" operations (like writing files based on Skill descriptions), but truly triggering Skills (key feature: Skill trigger prints on CC). Comet triggers many capabilities from OpenSpec and Superpowers. How is this Prompt written?
How to make combined Skills flow automatically across phases — Not relying on manual intervention. Comet's 5-phase flow can automatically trigger Skills for the core process except for necessary user choices, while the state machine also protects state transition reliability.
How to turn the Spec lifecycle into a resumable workflow — Comet links OpenSpec change/spec artifacts with
Superpowers design and planning documents, then records phase, execution mode, verification results, and archive
status in .comet.yaml, so the Agent can resume after interruption instead of rereading documents and guessing
progress.
How to turn document synchronization from "user reminders" into automation — Comet puts handoff, state updates, validation, and archive sync into scripted flows, reducing repeated prompts like "remember to update the design doc", "remember to sync the spec", and "remember to archive the change".
How to design guard conditions that Agents can execute — Comet does not simply trust the Agent saying "done" at
phase exits. Scripts such as comet-guard.sh, comet-yaml-validate.sh, and comet-state.sh check tasks, state
fields, verification evidence, and archive conditions before allowing the workflow to advance.
How to distribute and install Skills across platforms — Comet supports multiple AI coding platforms, project/global installation, Chinese/English Skill choices, and platform-specific directory differences such as Antigravity using different project-level and global paths. It can be a reference for CLI installers and Skill package structure.
How to turn shell scripts into Agent workflow infrastructure — Comet's scripts need to work across macOS, Linux, and Windows Git Bash while handling hashes, YAML fields, state machines, and archive flows. It shows how to move fragile workflow control out of scattered Prompt text and into testable, reusable tools.
Requirements:
npm install -g @rpamis/comet
cd your-project
comet init
comet init will:
docs/superpowers/specs/ and docs/superpowers/plans/ working directories for project-scope installs[!TIP] update version
comet updateornpm install -g @rpamis/comet@latestto get the latest features and fixes.
For platforms that use the generic skills CLI directly, you can install the Comet skill package with:
npx skills add rpamis/comet
Auto-install OpenSpec & Superpowers, one-click dev environment setup
Multi-phase Skill entry, auto-detects current Spec stage, auto-triggers core flow, manual review at key nodes
comet init [path] — Initialize Comet workflowInitializes OpenSpec, Superpowers, and Comet skills for selected AI coding platforms.
| Option | Description |
|---|---|
--yes | Non-interactive mode, auto-select detected platforms (or all if none detected) |
--scope <scope> | Install scope: project or global |
--skip-existing | Skip already installed components |
--overwrite | Overwrite already installed components |
--json | Output structured JSON |
When multiple existing components are found on the same platform, interactive init offers one bulk choice: overwrite all, skip all, or choose per component.
comet status [path] — Show active changes and next workflow commandDisplays active changes, task progress, and the recommended next Comet workflow command.
| Option | Description |
|---|---|
--json | Output active changes with nextCommand |
comet doctor [path] — Diagnose Comet installation healthChecks project/global installation health, working directories, installed skills, scripts, and Comet state files.
| Option | Description |
|---|---|
--json | Output structured diagnostic results |
--scope <scope> | Diagnose auto, project, or global scope (default: auto) |
comet update [path] — Update Comet package and skillsUpdates the npm package and refreshes installed Comet skills in detected project/global targets.
| Option | Description |
|---|---|
--json | Output npm and skill update results as JSON |
--language <lang> | Override detected skill language (en, zh) |
--scope <scope> | Update only global or project scope |
| Command | Description |
|---|---|
comet --help | Show help |
comet --version | Show version |
comet init supports 28 AI coding platforms:
| Platform | Skills Dir | Platform | Skills Dir |
|---|---|---|---|
| Claude Code | .claude/ | Cursor | .cursor/ |
| Codex | .codex/ | OpenCode | .opencode/ |
| Windsurf | .windsurf/ | Cline | .cline/ |
| RooCode | .roo/ | Continue | .continue/ |
| GitHub Copilot | .github/ | Gemini CLI | .gemini/ |
| Amazon Q Developer | .amazonq/ | Qwen Code | .qwen/ |
| Kilo Code | .kilocode/ | Auggie | .augment/ |
| Kiro | .kiro/ | Lingma | .lingma/ |
| Junie | .junie/ | CodeBuddy | .codebuddy/ |
| CoStrict | .cospec/ | Crush | .crush/ |
| Factory Droid | .factory/ | iFlow | .iflow/ |
| Pi | .pi/ | Qoder | .qoder/ |
| Antigravity | .agents/ | Bob Shell | .bob/ |
| ForgeCode | .forge/ | Trae | .trae/ |
Some platforms use different project and global directories. For example, OpenCode global installs use
.config/opencode, Lingma global installs use .lingma, and Antigravity global installs use .gemini/antigravity.
After comet init, three groups of skills are installed to the selected platform's skills/ directory:
| Skill | Description |
|---|---|
/comet | Main entry — auto-detects phase and dispatches to sub-commands |
/comet-open | Phase 1: Open a change (proposal, design, task breakdown) |
/comet-design | Phase 2: Deep design (brainstorming, Design Doc) |
/comet-build | Phase 3: Plan and build (implementation plan, code commits) |
/comet-verify | Phase 4: Verify and finish (testing, verification report) |
/comet-archive | Phase 5: Archive (delta spec sync, status annotation) |
/comet-hotfix | Preset: Quick bug fix (skips brainstorming) |
/comet-tweak | Preset: Small change (skips brainstorming and full plan) |
| Script | Purpose |
|---|---|
comet-env.sh | Script discovery helper — exports bundled script paths such as COMET_GUARD, COMET_STATE, COMET_HANDOFF, and COMET_ARCHIVE |
comet-guard.sh | Phase transition guard — validates exit conditions, --apply auto-updates .comet.yaml |
comet-handoff.sh | Design handoff — generates deterministic context packages from OpenSpec artifacts with SHA256 tracing |
comet-archive.sh | One-command archive — validates state, syncs specs, moves to archive, updates status |
comet-yaml-validate.sh | Schema validator — validates .comet.yaml structure and field values |
comet-hook-guard.sh | Phase write guard — PreToolUse hook, blocks file writes during open/design/archive phases |
comet-state.sh | Unified state management — init/set/get/check/scale, agents' exclusive YAML interface |
Spec lifecycle management: propose, explore, sync, verify, archive, and more.
Development methodology: brainstorming, TDD, subagent-driven development, code review, plan writing, and more.
/comet
↓ auto-detect
/comet-open --> /comet-design --> /comet-build --> /comet-verify --> /comet-archive
(OpenSpec) (Superpowers) (Superpowers) (Both) (OpenSpec)
/comet-hotfix (preset path, skips brainstorming)
open --> build --> verify --> archive
/comet-tweak (preset path, skips brainstorming and full plan)
open --> lightweight build --> light verify --> archive
| Phase | Command | Owner | Artifacts |
|---|---|---|---|
| 1. Open | /comet-open | OpenSpec | proposal.md, design.md, tasks.md |
| 2. Deep Design | /comet-design | Superpowers | Design Doc, delta spec |
| 3. Plan & Build | /comet-build | Superpowers | Implementation plan, code commits |
| 4. Verify & Finish | /comet-verify | Both | Verification report, branch handling |
| 5. Archive | /comet-archive | OpenSpec | delta→main spec sync, archive |
/comet-verify must pass before /comet-archiveComet uses a decoupled state architecture with separate YAML files:
| File | Owner | Purpose |
|---|---|---|
.openspec.yaml | OpenSpec | Spec lifecycle, change metadata |
.comet.yaml | Comet | Workflow phase, execution mode, verification status |
All states and execution phases are updated via scripts, and each phase verifies that tasks are truly complete before advancing. Compared to storing complex state rules only in Skill text, this script-backed state machine gives Comet more reliable phase transitions, correct YAML, and easier breakpoint recovery; agents can read the current Spec situation through Comet's built-in commands.
Key Fields in .comet.yaml:
workflow: full
auto_transition: true
phase: build
build_mode: subagent-driven-development
build_pause: null
isolation: branch
verify_mode: null
tdd_mode: null
subagent_dispatch: null
design_doc: docs/superpowers/specs/YYYY-MM-DD-topic-design.md
plan: docs/superpowers/plans/YYYY-MM-DD-feature.md
verify_result: pending
verification_report: null
branch_status: pending
verified_at: null
archived: false
direct_override: false
build_command: null
verify_command: null
handoff_context: openspec/changes/<name>/.comet/handoff/design-context.json
handoff_hash: <sha256>
In full workflow, build_mode, build_pause, isolation, verify_mode, tdd_mode, and subagent_dispatch may
temporarily be null; build_mode and isolation must be resolved before build → verify. auto_transition controls automatic vs manual skill invocation after phase completion — see AUTO-TRANSITION.md. build_pause records an internal build-phase pause point:
null means no pause, while plan-ready means the plan has been generated and the user paused before choosing
isolation and execution mode. It is not an execution mode and must not be written into build_mode.
verification_report stays null until verification writes a report, and verify-pass requires that report to exist
plus branch_status: handled. Fields after archived in the example are optional or script-derived: direct_override
is only needed for full-workflow direct builds, project commands may be absent unless configured, and
handoff_context / handoff_hash are recorded by comet-handoff.sh before leaving design. Projects can configure
build_command / verify_command in the change or repo root, and guard will run those commands first and print failure
output.
Comet ensures agent execution reliability through automated state transitions:
Entry Verification — Each phase validates preconditions before execution
[HARD STOP] with actionable suggestions if validation failsAutomated State Transitions — comet-guard.sh --apply updates .comet.yaml automatically
guard --applycomet-state.sh is the agents' exclusive interface for state operationscomet-state.sh internally for state managementSchema Validation — comet-yaml-validate.sh ensures data integrity
direct_overridedesign_doc, plan, and handoff_context paths exist, plus handoff_hash formatBuild Decision Enforcement — Guard and state transitions both block skipped build choices
isolation must be branch or worktreebuild_mode must be selected before leaving buildbuild_pause: plan-ready is a recoverable pause after plan generation, not a build_modebuild_mode: direct requires direct_override: trueVerification Evidence — Guard enforces proof before phase advance
verify-pass transition requires verification_report pointing to an existing report filebranch_status must be handled before verify can passverification_report exists and branch_status=handled as hard prerequisitesArchive Automation — comet-archive.sh handles the full archive flow in one command
archived: true--dry-run for previewyour-project/
├── .comet/
│ └── config.yaml # Project-level global config (context_compression, auto_transition, etc.)
├── .claude/skills/ # Platform skills dir (Comet + OpenSpec + Superpowers)
│ ├── comet/SKILL.md
│ │ └── scripts/
│ │ ├── comet-guard.sh # Phase transition guard (--apply auto-updates state)
│ │ ├── comet-env.sh # Script discovery helper
│ │ ├── comet-handoff.sh # Design handoff (OpenSpec → Superpowers context tracing)
│ │ ├── comet-archive.sh # One-command archive automation
│ │ ├── comet-yaml-validate.sh # Schema validator
│ │ ├── comet-hook-guard.sh # Phase write guard (PreToolUse hook)
│ │ └── comet-state.sh # Unified state management (init/set/get/check/scale)
│ ├── comet-*/SKILL.md
│ ├── openspec-*/SKILL.md
│ └── brainstorming/SKILL.md
├── openspec/ # OpenSpec — WHAT
│ ├── config.yaml
│ └── changes/
│ └── <name>/
│ ├── .openspec.yaml # OpenSpec state
│ ├── .comet.yaml # Comet workflow state (decoupled)
│ ├── proposal.md
│ ├── design.md
│ ├── specs/<capability>/spec.md
│ └── tasks.md
└── docs/superpowers/ # Superpowers — HOW
├── specs/ # Design documents
└── plans/ # Implementation plans
Comet supports context compression at the Design → Build handoff. When enabled, comet-handoff.sh generates a compact
context package that reduces Build-phase input tokens by 25–30% without affecting implementation correctness.
| Mode | Behavior | Token Savings |
|---|---|---|
off | Full Spec excerpts in handoff context | Baseline |
beta | Design Doc + SHA256 hash references only | ~25–30% |
Key findings from benchmark testing:
Enable in .comet/config.yaml: context_compression: beta
See CONTEXT-COMPRESSION.md for the full benchmark report, compression principles, and reproduction steps.
auto_transition controls whether Comet automatically invokes the next skill after a phase completes, or pauses for
manual handoff. Phase advancement itself always happens — this setting only affects skill invocation.
| Value | Behavior |
|---|---|
true | Auto-invoke the next skill after each phase (default) |
false | Pause after each phase; user manually triggers the next skill |
Three-layer configuration with precedence: COMET_AUTO_TRANSITION env var > .comet/config.yaml (project) > .comet.yaml (change).
See AUTO-TRANSITION.md for configuration details, workflow mapping, and FAQ.
See CONTRIBUTING.md | 中文版 for development setup, commit conventions, PR process, branch workflow, and guidance for adding platforms, skills, scripts, or changelog entries.
See CHANGELOG.md for version history and updates.
Track our development progress and upcoming features on the Comet Roadmap.
![]() DouYin (Recommended) |
![]() |
![]() |
FAQs
OpenSpec + Superpowers dual-star development workflow
We found that @rpamis/comet demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.