rpamis/comet/assets/skills/comet-design/SKILL.md
comet-design
Use only when explicitly invoked as /comet-design or routed by the root Comet skill/runtime to a full workflow design phase; create or recover the deep technical Design Doc.
- Source repository stars
- 2,640
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-08-05
- Source checked
- 2026-08-05
Decision brief
What it does—and where it fits
Before starting or recovering, read and follow comet/reference/classic-layout.md. Every OpenSpec CLI call in this file must use the adapter, and every file path must use the logical roots bound by that protocol.
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/rpamis/comet --skill "assets/skills/comet-design"Inspect the Agent Skill "comet-design" from https://github.com/rpamis/comet/blob/966d6cbebc2b044a341e6f60968d7d64cbee18dd/assets/skills/comet-design/SKILL.md at commit 966d6cbebc2b044a341e6f60968d7d64cbee18dd. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
0. Entry State Verification (Entry Check)
Locate scripts via comet/reference/scripts.md, then run entry verification. When resuming from any entry point, first run the recovery check in comet/reference/context-recovery.md:
Locate scripts via comet/reference/scripts.md, then run entry verification. When resuming from any entry point, first run the recovery check in comet/reference/context-recovery.md:Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.Idempotency: All design phase operations can be safely re-executed. If handoffcontext and handoffhash already exist, confirm they match current artifacts before deciding whether to regenerate. - 02
Auto-transition to next phase
comet guard design --apply bash comet guard design --apply bash comet state next
NEXT: auto → invoke the skill pointed to by SKILL to enter the next phaseNEXT: manual → do not invoke the next skill; return control with HINT, end the invocation, and do not create another confirmation pointNEXT: done → workflow is complete, no further action needed - 03
Automatic Handoff to Next Phase
Follow comet/reference/auto-transition.md. Key command:
NEXT: auto → invoke the skill pointed to by SKILL to enter the next phaseNEXT: manual → do not invoke the next skill; return control with HINT, end the invocation, and do not create another confirmation pointNEXT: done → workflow is complete, no further action needed - 04
Prerequisites
Responsibility boundary: the open-phase design.md gives the high-level solution framework (architecture decision direction, approach selection, data flow); the design-phase Design Doc is its deep technical refinement (detailed implementation design, technical risks, test strateg…
Active change exists (proposal.md, design.md, tasks.md)No Design Doc (no corresponding file under docs/superpowers/specs/)- Active change exists (proposal.md, design.md, tasks.md) - No Design Doc (no corresponding file under docs/superpowers/specs/) - 05
Steps
Locate scripts via comet/reference/scripts.md, then run entry verification. When resuming from any entry point, first run the recovery check in comet/reference/context-recovery.md:
design-context.json: machine index containing change, phase, canonical spec, source paths, hashdesign-context.md: context for Superpowers to read, containing script markers, source path, line range, sha256, deterministic excerptsWhen exceeding excerpt budget, marks [TRUNCATED] and retains Full source path
Permission review
Static risk signals and limitations
Writes files
The documentation asks the agent to create, modify, or delete local files.
The brainstorming phase does not write to the Design Doc file; it only produces design proposals for Step 1c user confirmation. Only after confirmation should `docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md` be created and delta spec wWrites files
The documentation asks the agent to create, modify, or delete local files.
For context compaction recovery, the agent must incrementally update `brainstorm-summary.md` during brainstorming. After each clarification round or proposal iteration, update the file whenever new confirmed facts, key constraints, candidatEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 88/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 2,640 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- rpamis/comet
- Skill path
- assets/skills/comet-design/SKILL.md
- Commit
- 966d6cbebc2b044a341e6f60968d7d64cbee18dd
- License
- MIT
- Collected
- 2026-08-05
- Default branch
- master
View the original SKILL.md
Comet Phase 2: Deep Design (Design)
Before starting or recovering, read and follow comet/reference/classic-layout.md. Every OpenSpec CLI call in this file must use the adapter, and every file path must use the <classic-*> logical roots bound by that protocol.
Prerequisites
- Active change exists (proposal.md, design.md, tasks.md)
- No Design Doc (no corresponding file under
docs/superpowers/specs/)
Responsibility boundary: the open-phase
design.mdgives the high-level solution framework (architecture decision direction, approach selection, data flow); the design-phase Design Doc is its deep technical refinement (detailed implementation design, technical risks, test strategy, edge cases) — a deepening, not a replacement or rewrite.
Steps
0. Entry State Verification (Entry Check)
Locate scripts via comet/reference/scripts.md, then run entry verification. When resuming from any entry point, first run the recovery check in comet/reference/context-recovery.md:
comet state select <change-name>
comet state check <name> design
Proceed to Step 1 after verification passes. The script outputs specific failure reasons when verification fails.
Idempotency: All design phase operations can be safely re-executed. If handoff_context and handoff_hash already exist, confirm they match current artifacts before deciding whether to regenerate.
1a. Generate OpenSpec → Superpowers Handoff Package
Must be generated by script. Agent writing summaries on the fly is not allowed.
comet handoff <change-name> design --write
The script reads the change .comet.yaml context_compression snapshot, then generates and records the matching handoff package.
Default context_compression: off generates:
<classic-change-dir>/.comet/handoff/design-context.json
<classic-change-dir>/.comet/handoff/design-context.md
Beta mode (classic.context_compression: beta in project .comet/config.yaml, snapshotted into .comet.yaml when the change is created) generates:
<classic-change-dir>/.comet/handoff/spec-context.json
<classic-change-dir>/.comet/handoff/spec-context.md
And writes to .comet.yaml:
handoff_context: <classic-change-dir>/.comet/handoff/design-context.json
handoff_hash: <sha256>
The default handoff package is a compact traceable excerpt, not an agent summary:
design-context.json: machine index containing change, phase, canonical spec, source paths, hashdesign-context.md: context for Superpowers to read, containing script markers, source path, line range, sha256, deterministic excerpts- When exceeding excerpt budget, marks
[TRUNCATED]and retains Full source path
The beta handoff package is a structured spec projection that reduces OpenSpec token load without replacing the canonical spec:
spec-context.json: machine index containing change, phase, canonical spec, source paths, hash, and file rolesspec-context.md: context for Superpowers to read, verbatim-projecting delta spec files and referencing supporting artifacts by hash- OpenSpec delta specs remain canonical; if the projection is missing, stale, or unclear, regenerate the handoff or read the source spec directly instead of writing an agent summary
If full context is genuinely needed, explicitly run:
comet handoff <change-name> design --write --full
Handoff package sources come from OpenSpec open phase artifacts:
proposal.md: goals, motivation, scope, non-goalsdesign.md: high-level architecture decisions, approach constraintstasks.md: initial task boundariesspecs/*/spec.md: delta capability specs
1b. Execute Brainstorming (with Context)
Immediately execute: Use the Skill tool to load the Superpowers brainstorming skill. Skipping this step is prohibited.
When loading the skill, ARGUMENTS must include:
Language: Use the configured Comet artifact language from `comet state get <name> language`
After the skill loads, follow its guidance and use the following context:
Change: <change-name>
OpenSpec Context Pack: <classic-change-dir>/.comet/handoff/design-context.md
Machine handoff: <classic-change-dir>/.comet/handoff/design-context.json
If context_compression is beta, use:
OpenSpec Context Pack: <classic-change-dir>/.comet/handoff/spec-context.md
Machine handoff: <classic-change-dir>/.comet/handoff/spec-context.json
OpenSpec artifacts are the upstream source of truth, but you must not weaken the Superpowers `brainstorming` clarification flow by "skipping redundant context exploration".
Your task is to perform deep technical design based on the handoff package: implementation approach, technical risks, testing strategy, boundary conditions.
If goals, scope, non-goals, acceptance scenarios, or key constraints remain unclear, you must continue asking questions and form the design proposal first; must not create the Design Doc after only one Q&A turn.
Do not rewrite proposal/spec; if you find OpenSpec delta spec missing acceptance scenarios, you may only propose Spec Patches and write them back to OpenSpec delta spec; do not create a second requirements spec in the Design Doc. Spec Patches are limited to supplementing acceptance scenarios, correcting ambiguous descriptions, or adding boundary conditions — they must not substantially rewrite the delta spec's structure or scope. If major changes are needed, flag them as design findings and return to brainstorming for confirmation.
Design Doc frontmatter must be minimal, containing only:
---
comet_change: <change-name>
role: technical-design
canonical_spec: openspec
---
Proceed through the original `brainstorming` skill flow: clarifying questions, 2-3 approaches, and step-by-step design confirmation. Do not write the Design Doc early.
Proceeding without loading this skill is prohibited.
If the Superpowers brainstorming skill is unavailable, stop the process and prompt to install or enable Superpowers skills. Do not substitute this step with normal conversation.
After the skill loads, follow its guidance to produce design proposals (presented as conversation):
- Technical approach: architecture, data flow, key technology choices and risks
- Testing strategy
- Requirement/scope gaps and Spec Patches to be written back
- If acceptance scenarios need supplementing, indicate delta spec changes to be written back
The brainstorming phase does not write to the Design Doc file; it only produces design proposals for Step 1c user confirmation. Only after confirmation should docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md be created and delta spec written back.
For context compaction recovery, the agent must incrementally update brainstorm-summary.md during brainstorming. After each clarification round or proposal iteration, update the file whenever new confirmed facts, key constraints, candidate approaches, trade-offs/risks, testing strategy, or Spec Patch candidates emerge; mark unconfirmed items as "pending" or "candidate". This file is a recovery checkpoint, not the Design Doc, and must not replace the Step 1c user confirmation.
1c. User Confirms Design Proposal (Blocking Point)
After brainstorming produces a design proposal, must follow the comet/reference/decision-point.md protocol to pause and wait for the user to explicitly confirm the design proposal. Must not create the final Design Doc, write design_doc, run design guard, or enter /comet-build before user confirmation.
When pausing, only present essential summary:
- Technical approach adopted
- Key trade-offs and risks
- Testing strategy
- If there are Spec Patches, list the delta spec changes to be written back
Only after the user explicitly confirms, proceed to Step 2. If the user requests adjustments, continue brainstorming iteration until the user confirms.
1d. Brainstorming Checkpoint Finalization
After the user confirms the design proposal, before creating the Design Doc, create or update the incrementally maintained checkpoint file and finalize it as the confirmed design summary:
Use the file tool to ensure <classic-change-dir>/.comet/handoff/ exists; do not rely on a POSIX-only directory command.
<classic-change-dir>/.comet/handoff/brainstorm-summary.md structure:
# Brainstorm Summary
- Change: <change-name>
- Date: <YYYY-MM-DD>
## Confirmed Technical Approach
<summary of the user-confirmed approach>
## Key Trade-offs and Risks
<major trade-offs and risks>
## Testing Strategy
<testing method overview>
## Spec Patches
<delta spec changes to write back, or "None" if none>
Context compaction note: Each incremental update to brainstorm-summary.md is a relatively safe recovery point. After brainstorming completes, if the context window is tight, prefer compacting here. After compaction, reload the following files to continue Step 2:
<classic-change-dir>/.comet/handoff/brainstorm-summary.md<classic-change-dir>/.comet/handoff/design-context.md(orspec-context.mdin beta mode)<classic-change-dir>/.comet/handoff/design-context.json(orspec-context.jsonin beta mode)
1e. Compaction Policy (Non-blocking Here)
brainstorm-summary.md is a recovery checkpoint, but do not discard live design context before the Design Doc is persisted. Continue directly to Step 2. Active compaction moves until after the Design Doc, state, and latest handoff are all durable.
2. Create Design Doc
Create the Design Doc based on the full brainstorming conversation context (still in the main session).
Design Doc frontmatter must be minimal:
---
comet_change: <change-name>
role: technical-design
canonical_spec: openspec
---
Write the Design Doc to docs/superpowers/specs/YYYY-MM-DD-<topic>-design.md.
If Spec Patches need to be written back, also edit the corresponding specs/*/spec.md.
Context compaction recovery: If context has been compacted, resume from brainstorm-summary.md + handoff context. If the user has not confirmed the design proposal yet, return to Step 1b/1c and continue brainstorming; if the user has confirmed it, continue creating the Design Doc. brainstorm-summary.md is the compaction checkpoint, not the sole input for the Design Doc — when creating, leverage the full recovered context as much as possible.
3. Update Comet State
First record the design_doc path. If Spec Patches wrote back delta spec (added or modified specs/*/spec.md), must regenerate handoff to update hash:
# Record design_doc path
comet state set <name> design_doc docs/superpowers/specs/YYYY-MM-DD-topic-design.md
# If delta spec changes exist, regenerate handoff (update hash)
comet handoff <change-name> design --write
# Auto-transition to next phase
comet guard <change-name> design --apply
If there are no delta spec changes, skip the handoff regeneration step. The state file updates automatically; no manual editing of other fields needed.
3a. Optional Active Context Compaction
Consider active compaction only after the Design Doc and state evidence are persisted and before Build. First confirm design_doc, the latest handoff, handoff_hash, and the design guard are durable so recovery never depends on an unwritten design judgment.
- When a programmatically callable compaction mechanism is present and the context window is under pressure, invoke it once and include the change, next step, Design Doc, and handoff files in the resume prompt
- If compaction requires user action, give one non-blocking suggestion and continue; it must not block and must not create another confirmation point
- Never fake compaction with a shell command or an agent summary
Exit Conditions
- Design Doc created and saved
- Design Doc frontmatter contains
comet_change,role: technical-design,canonical_spec: openspec handoff_contextandhandoff_hashwritten to.comet.yaml(enforced by guard)handoff_hashmatches current OpenSpec open phase artifacts (enforced by guard)design-context.mdor betaspec-context.mdmust be script-generated and contain source path, mode, sha256 traceability markers (enforced by guard)- In beta mode,
spec-context.jsonmust be structurally valid and reference the current source files (enforced by guard) - If new capabilities or supplementary acceptance scenarios exist, OpenSpec delta spec has been created/updated
design_docwritten to.comet.yaml- Phase guard: Run
comet guard <change-name> design --apply; after all PASS, auto-transitions tophase: build
Must use --apply before exit:
comet guard <change-name> design --apply
Context Compression Recovery
Follow comet/reference/context-recovery.md with phase set to design.
Automatic Handoff to Next Phase
Follow comet/reference/auto-transition.md. Key command:
comet state next <change-name>
NEXT: auto→ invoke the skill pointed to bySKILLto enter the next phaseNEXT: manual→ do not invoke the next skill; return control withHINT, end the invocation, and do not create another confirmation pointNEXT: done→ workflow is complete, no further action needed
Alternatives
Compare before choosing
rpamis/comet
comet-design
Comet Phase 2: Deep Design. Invoke with /comet-design. Produce Design Doc and delta spec through brainstorming.
prowler-cloud/prowler
postgresql-indexing
PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance
AI-Unified-Process/marketplace
browserless-test
Creates Vaadin Browserless server-side unit tests for Vaadin views covering navigation, component interactions, form validation, grid operations, and notifications. Use when the user asks to "write Browserless tests", "write Vaadin UI unit tests", "unit test a Vaadin view without a browser", "create view tests with the official Vaadin testing framework", or mentions Browserless testing, SpringBrowserlessTest, browserless-test-junit6, UI Unit Testing, or server-side Vaadin testing.
mgiovani/cc-arsenal
team-review
Multi-agent review team: architecture, security, performance, testing, style, docs/UX, plus an adversary that cross-examines the other 6, for security-sensitive, architectural, or large PRs (15+ files) where a single-agent pass risks missing cross-cutting issues. Use for auth/payments/PII changes, schema/pattern changes, compliance sign-off, or when asked to 'get the review team on this' / 'multi-agent review' / 'thorough review before merge'. For a standard PR or a quick pre-merge check, use /r