用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/rpamis/comet --skill comet-open命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Comet Native workflow. Use when the user explicitly invokes /comet-native, asks to start or resume a Native change, or the entry router selects Native.
Comet workflow entry. Use when the user invokes /comet or asks to use Comet without choosing Native or Classic; resolve and load exactly one entry from project configuration.
Comet Native 工作流。当用户明确调用 /comet-native、要求启动或恢复 Native change,或入口路由到 Native 时使用。
正在显示 SKILL.md
| name | comet-open |
| description | Phase 1 of Comet Classic — open an OpenSpec change and stand up its proposal/design/tasks/.comet.yaml artifacts. |
Before starting or recovering, read and follow comet-classic/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.
Every prompt and artifact request passed to OpenSpec must include the resolved Comet artifact language, using normalized ids such as en or zh-CN. Before .comet.yaml exists, read classic.language from project .comet/config.yaml, then fall back to global ~/.comet/config.yaml; after the change is initialized, use comet state get <name> language. If no configured language exists, fall back to the current user request language. The generated proposal.md, design.md, and tasks.md must use that language as their main language.
When resuming an existing change, inspect <classic-change-dir>/.comet.yaml first:
comet classic workspace resolve <change-name> --json, enter the returned projectRoot, then select the changecomet state init <change-name> full --isolation <selected-isolation> from the returned projectRoot, and select the changestate setcomet classic workspace resolve <change-name> --json
# enter the returned projectRoot
comet state select <change-name>
When creating a new change, initialize .comet.yaml first, then immediately run the same command; never fabricate a selection before state exists.
Read comet-classic/reference/workspace.md when creating a Classic change. The workspace decision must be completed before creating OpenSpec artifacts or .comet.yaml; it must not be deferred to Build:
worktree directly so the independent workspace is ready before OpenSpec and state creationcurrent, branch, and worktree choices when a decision is needed, and make the recommendation explanatory onlycurrent or branch remains a serial choice; do not describe it as safe for simultaneous sessionsPrepare a new change before running OpenSpec new:
comet classic workspace prepare <name> --isolation <current|branch|worktree> --json
# enter the returned projectRoot; all later OpenSpec, state, and artifact writes run there
The preparation command reuses a registered Worktree whose branch matches the change. If the branch still exists but its registered Worktree was removed, it recreates the Worktree. Ask for an explicit rebind only when the branch was renamed, taken over, or ownership is ambiguous.
Before any OpenSpec status or instructions command, run:
comet classic openspec -- --version
This flow requires OpenSpec >= 1.5.0. Stop immediately if the version is older than 1.5.0, cannot be parsed, the command is unavailable, or it exits non-zero. Ask the user to run npm install -g @fission-ai/openspec@latest and retry. Never continue with an older CLI that lacks the applyRequires, artifactPaths, changeRoot, or resolvedOutputPath contracts.
Immediately execute: Use the Skill tool to load the openspec-explore skill. Skipping this step is prohibited.
External OpenSpec Skill override: After loading, use only its exploration method. Do not execute any instruction that invokes the official CLI directly, changes to a fixed cwd, or reads or writes a fixed physical OpenSpec path. Route every CLI call through comet classic openspec -- <args...> and replace every file path with the <classic-*> logical roots bound for this run.
After the skill loads, explore the problem space following its guidance, but do not treat one Q&A turn as sufficient clarification. You must continue asking, align with the user, and form a clarification summary covering:
The clarification summary must include: goals, non-goals, scope boundaries, key unknowns, and draft acceptance scenarios.
When the user input is a large PRD, roadmap, complete product plan, or the clarification summary shows multiple independent capabilities, modules, user journeys, or milestones, must evaluate whether it should be split into multiple changes before creating OpenSpec artifacts.
The split preflight must be based on clarified information and output a proposed split list. Each proposed split item must include:
Recommend splitting when any condition applies:
When splitting is recommended, must follow the comet-classic/reference/decision-point.md protocol to pause and wait for the user's choice.
The user choices must include:
Every accepted split item must be created as an independent change through /comet-open, not by calling /opsx:new directly. /comet-open creates both OpenSpec artifacts and .comet.yaml, ensuring each change enters the Comet state machine.
Must not create proposal.md, design.md, or tasks.md before the user completes the PRD split choice. If the user chooses to create multiple changes, the current /comet-open invocation only completes split confirmation and coordination, then enters /comet-open for each split item in the user-confirmed order.
Immediately after the user confirms multiple changes, persist the accepted split to .comet/batches/<batch-id>.json. Use a stable kebab-case batch-id. The file must record at least version, the original goal summary, creation time, the ordered change names, and each item's goals, scope, non-goals, acceptance scenarios, and pending|open-complete|selected status. Atomically update it after each item is created or completed. This is a batch orchestration manifest, not a replacement for each change's .comet.yaml.
In batch split mode, entering /comet-open for each split item must explicitly mark it as a "confirmed split item" and carry that split item's goals, scope, non-goals, and acceptance scenarios. Confirmed split items skip the PRD split preflight by default, unless the split item itself still clearly contains multiple independent capabilities.
In batch split mode, a single split item must not auto-advance to /comet-design after completing the open phase. After splitting is complete, must pause and ask the user which change to start; after the user chooses, advance only that change into /comet-design, while other changes remain active and can be resumed later through /comet-classic.
Batch completion hard check (must not be skipped): after every split item completes its own open phase, run the following for each <name> in the user-confirmed list:
comet classic openspec -- status --change "<name>" --json
comet state check <name> design
The OpenSpec JSON must satisfy all of these conditions:
changeRoot must equal the resolver-bound <classic-change-dir>; stop if it does not, because Classic runtime does not support an external change rootproposal, design, and tasks; extra artifacts are allowed, but a missing core id is an incompatible schemaapplyRequires must be done in artifactsartifactPaths.<artifact-id>.existingOutputPaths (or resolvedOutputPath from instructions) must exist and be non-emptyisComplete as diagnostic only; it neither replaces the applyRequires implementation-readiness check nor lets optional artifacts block phase advancementIf any split item fails these checks, must not report splitting complete or ask which change to start. Stop and resume /comet-open from that change's first ready or blocked artifact. If OpenSpec passes but Comet state fails, repair .comet.yaml initialization or phase, then rerun the checks for the entire batch.
Only after every split item passes both CLI checks may you pause and ask which change to start. Mark the chosen item selected in the batch manifest, then advance only that change into /comet-design; other changes remain active and can be resumed later through /comet-classic.
On resume, read .comet/batches/<batch-id>.json first, then run the CLI checks above for already-created active changes. Do not recreate items that fully pass; resume incomplete items from the first ready artifact returned by OpenSpec. Create missing items from the persisted manifest. If the manifest is missing or damaged, stop and ask the user to rebuild/confirm it instead of inferring the original batch boundary from directory names.
Before creating OpenSpec artifacts, turn Step 1 clarification into a resolved brief containing the goal, non-goals, scope boundaries, key unknowns, and draft acceptance scenarios. Derive one kebab-case English change name that accurately represents that scope.
comet-classic/reference/decision-point.md for one joint question only when mutually exclusive choices still change scope or the target change identity. Naming preference alone is not a blocking pointOpenSpec names must be kebab-case English using lowercase letters, digits, and single hyphens. When a collision exists but the target remains clear, derive a stable non-conflicting name and continue. Ask only when Comet cannot determine whether to reuse the existing change or create a new one.
Do not run comet classic openspec -- new change or create proposal/design/tasks while the resolved brief or name remains ambiguous. Continue clarification or resolve the genuine user decision before Step 2.
Immediately execute: Use the Skill tool to load the openspec-new-change skill. Skipping this step is prohibited.
External OpenSpec Skill override: After loading, use only its change-creation semantics. Do not execute any instruction that invokes the official CLI directly, changes to a fixed cwd, or writes the change under a fixed physical OpenSpec root. Run create, status, and instructions through comet classic openspec -- <args...>, and use <classic-change-dir> and the other logical roots for every file path.
Full /comet-classic workflow must not use the Skill tool to load the openspec-propose skill by default; only load it when the user explicitly requests generating the proposal and artifacts in one pass.
External OpenSpec Skill override: Apply the same rule to openspec-propose: ignore direct official CLI, fixed-cwd, and fixed physical OpenSpec path instructions; use the adapter and resolver-returned <classic-*> logical roots.
After the skill loads, follow its guidance to create the change skeleton. When Step 1b has produced an unambiguous resolved brief, override its "STOP and wait for user direction" behavior to avoid a duplicate question.
Use the Step 1b resolved brief directly to populate artifact content. Fall back to the skill's question flow only when ambiguity remains that would change scope.
Immediately after creating the change skeleton, initialize recoverable state instead of waiting until every artifact is generated:
comet state init <name> full --isolation <selected-isolation>
comet state select <name>
comet state check <name> open
Stop if any command fails. Then run comet classic openspec -- status --change "<name>" --json once and perform compatibility preflight:
changeRoot must equal the resolver-bound <classic-change-dir>, and planningHome (when present) must remain inside the current repositoryartifacts must contain core ids proposal, design, and tasks; extra artifacts are allowedapplyRequires must be a parseable list of artifact ids and every id must exist in artifactsAfter preflight, generate the implementation-required artifacts from the OpenSpec schema and dependency graph:
OpenSpec status-driven artifact loop:
Run comet classic openspec -- status --change "<name>" --json and parse the complete JSON.
Exit when every item in applyRequires is done; record isComplete as diagnostic only and do not use it as a phase blocker.
From unfinished ready artifacts, prioritize items that advance the applyRequires dependency closure and process them in CLI-returned order. Must not hard-code generation order or assume the schema contains only proposal/design/tasks.
Fetch current instructions for each ready <artifact-id>:
comet classic openspec -- instructions <artifact-id> --change "<name>" --json
For the returned JSON instruction payload, you must:
dependenciestemplate as the artifact structureinstruction guidancecontext and rules as constraints — must not copy them into artifact contentresolvedOutputPath; for wildcard outputs, create each concrete file required by the instructionRe-run status after creating each artifact and revalidate changeRoot, core ids, and applyRequires. Do not regenerate items that become done; process newly ready items in the next loop.
Blocking and failure handling: if applyRequires is incomplete and no ready artifact can advance its dependency closure, report missingDeps for the relevant blocked artifacts and stop. Do not guess order or skip dependencies. Also stop if status/instructions fails, returns invalid JSON, escapes the repository, or provides no usable resolvedOutputPath. Must not fall back to hard-coded artifact prose.
Naming and scope guard: Use the kebab-case English name resolved in Step 1b; never use a non-kebab-case name. Change scope must match the resolved brief and user request; do not expand or narrow it independently.
Confirm the following artifacts have been created:
<classic-change-dir>/
├── .openspec.yaml
├── .comet.yaml
├── proposal.md # Why + What: problem, goals, scope
├── design.md # How (high-level framework): architecture decisions, approach selection (deep technical design is refined in the design phase Design Doc)
└── tasks.md # Task checklist (checkboxes)
Verify state machine has been correctly initialized:
comet state check <name> open
Proceed to Step 4 after verification passes. The script outputs specific failure reasons when verification fails.
Idempotent recovery algorithm: all open phase operations can be safely re-executed. On recovery, process the status in this order:
comet state init <name> full --isolation <selected-isolation> from the returned projectRoot; if malformed, stop and repair it instead of overwriting it. Then select the change and run comet state check <name> open.changeRoot, core ids, applyRequires, artifacts, and missingDeps.done: keep the artifact unchanged and do not regenerate it.ready: fetch its instructions, write the returned output, and immediately rerun status.blocked: follow missingDeps and first complete dependencies in the applyRequires closure; never generate a blocked artifact directly.applyRequires is done.If the required dependency graph cannot advance, list the relevant blocked artifacts and missingDeps, then stop. Directory or fixed-file presence cannot replace the CLI decision; conversely, an optional artifact outside applyRequires must not block implementation solely because isComplete is false.
Run status again. Confirm core ids exist, every item in applyRequires is done, and concrete files in artifactPaths.<id>.existingOutputPaths for required artifacts exist and are non-empty. If any condition fails, do not enter Step 5 or execute the phase guard.
Then check key artifact content: proposal covers problem, goals, scope, and non-goals; design covers high-level decisions and data flow; tasks contains clear work items. If the schema returns specs or other artifacts, check their content against their instructions as well; the fixed three documents must not hide an incomplete schema artifact.
After all OpenSpec artifacts are complete and the content check passes, must follow the comet-classic/reference/decision-point.md protocol to pause and wait for user confirmation. Must not execute the phase guard or auto-transition before user confirmation.
The final review confirms the change name, scope, and artifact content together. Do not skip it because Step 1b resolved the brief, and do not add another routine summary/name confirmation before it.
The user confirmation question must be presented as a single-select question with the following summary and options:
Summary content:
Options:
After user selects "Confirm", proceed to exit conditions. When user selects "Needs adjustment", modify the corresponding files per their notes, then request confirmation again.
applyRequires item is done, and required outputs are non-emptycomet guard <change-name> open --apply; after all PASS, auto-transitions to next phaseMust use --apply before exit, otherwise .comet.yaml remains at phase: open and the next phase entry check will fail.
comet guard <change-name> open --apply
Full workflow auto-transitions to phase: design; hotfix/tweak presets auto-transition to phase: build.
Follow comet-classic/reference/auto-transition.md. Key command:
comet state next <change-name>
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 neededhotfix/tweak presets are controlled by their corresponding preset skill (phase goes directly to build); their next returns the corresponding preset skill.