Loading...
Loading...
Compare original and translation side by side
docs/superpowers/specs/docs/superpowers/specs/COMET_SEARCH_ROOTS=("." "$HOME/.claude/skills" "$HOME/.codex/skills" "$HOME/.cursor/skills")
COMET_STATE="${COMET_STATE:-$(find "${COMET_SEARCH_ROOTS[@]}" -path '*/comet/scripts/comet-state.sh' -type f -print -quit 2>/dev/null)}"
COMET_GUARD="${COMET_GUARD:-$(find "${COMET_SEARCH_ROOTS[@]}" -path '*/comet/scripts/comet-guard.sh' -type f -print -quit 2>/dev/null)}"
COMET_HANDOFF="${COMET_HANDOFF:-$(find "${COMET_SEARCH_ROOTS[@]}" -path '*/comet/scripts/comet-handoff.sh' -type f -print -quit 2>/dev/null)}"
bash "$COMET_STATE" check <name> designCOMET_SEARCH_ROOTS=("." "$HOME/.claude/skills" "$HOME/.codex/skills" "$HOME/.cursor/skills")
COMET_STATE="${COMET_STATE:-$(find "${COMET_SEARCH_ROOTS[@]}" -path '*/comet/scripts/comet-state.sh' -type f -print -quit 2>/dev/null)}"
COMET_GUARD="${COMET_GUARD:-$(find "${COMET_SEARCH_ROOTS[@]}" -path '*/comet/scripts/comet-guard.sh' -type f -print -quit 2>/dev/null)}"
COMET_HANDOFF="${COMET_HANDOFF:-$(find "${COMET_SEARCH_ROOTS[@]}" -path '*/comet/scripts/comet-handoff.sh' -type f -print -quit 2>/dev/null)}"
bash "$COMET_STATE" check <name> designbash "$COMET_HANDOFF" <change-name> design --writeopenspec/changes/<name>/.comet/handoff/design-context.json
openspec/changes/<name>/.comet/handoff/design-context.md.comet.yamlhandoff_context: openspec/changes/<name>/.comet/handoff/design-context.json
handoff_hash: <sha256>design-context.jsondesign-context.md[TRUNCATED]bash "$COMET_HANDOFF" <change-name> design --write --fullproposal.mddesign.mdtasks.mdspecs/*/spec.mdbash "$COMET_HANDOFF" <change-name> design --writeopenspec/changes/<name>/.comet/handoff/design-context.json
openspec/changes/<name>/.comet/handoff/design-context.md.comet.yamlhandoff_context: openspec/changes/<name>/.comet/handoff/design-context.json
handoff_hash: <sha256>design-context.jsondesign-context.md[TRUNCATED]bash "$COMET_HANDOFF" <change-name> design --write --fullproposal.mddesign.mdtasks.mdspecs/*/spec.mdsuperpowers:brainstormingChange: <change-name>
OpenSpec Context Pack: openspec/changes/<name>/.comet/handoff/design-context.md
Machine handoff: openspec/changes/<name>/.comet/handoff/design-context.json
OpenSpec 产物是上游事实源,不要重新定义需求,不要重写 proposal/spec。
你的任务是基于交接包做深度技术设计:实现方案、技术风险、测试策略、边界条件。
如发现 OpenSpec delta spec 缺少验收场景,只能提出 Spec Patch,并回写 OpenSpec delta spec;不要在 Design Doc 中创建第二份需求 spec。
Design Doc frontmatter 必须最小化,只包含:
---
comet_change: <change-name>
role: technical-design
canonical_spec: openspec
---
跳过重复上下文探索,直接进入设计提问。superpowers:brainstormingdocs/superpowers/specs/YYYY-MM-DD-<topic>-design.mdsuperpowers:brainstormingChange: <change-name>
OpenSpec Context Pack: openspec/changes/<name>/.comet/handoff/design-context.md
Machine handoff: openspec/changes/<name>/.comet/handoff/design-context.json
OpenSpec outputs are upstream factual sources; do not redefine requirements or rewrite proposal/spec.
Your task is to conduct in-depth technical design based on the handoff package: implementation plan, technical risks, testing strategy, boundary conditions.
If you find that the OpenSpec delta spec lacks acceptance scenarios, you can only propose a Spec Patch and write back to the OpenSpec delta spec; do not create a second requirement spec in the Design Doc.
Design Doc frontmatter must be minimal, containing only:
---
comet_change: <change-name>
role: technical-design
canonical_spec: openspec
---
Skip repeated context exploration and directly proceed to design questions.superpowers:brainstormingdocs/superpowers/specs/YYYY-MM-DD-<topic>-design.mddesign_doc/comet-builddesign_doc/comet-buildspecs/*/spec.mdundefinedspecs/*/spec.mdundefined
如果没有 delta spec 变更,跳过 handoff 重新生成步骤。状态文件自动更新,无需手动编辑其他字段。
If there are no delta spec changes, skip the handoff regeneration step. The state file is updated automatically; no need to manually edit other fields.comet_changerole: technical-designcanonical_spec: openspechandoff_contexthandoff_hash.comet.yamlhandoff_hashdesign-context.mddesign_doc.comet.yamlbash "$COMET_GUARD" <change-name> design --applyphase: build--applybash "$COMET_GUARD" <change-name> design --applycomet_changerole: technical-designcanonical_spec: openspechandoff_contexthandoff_hash.comet.yamlhandoff_hashdesign-context.mddesign_doc.comet.yamlbash "$COMET_GUARD" <change-name> design --applyphase: build--applybash "$COMET_GUARD" <change-name> design --applyREQUIRED NEXT SKILL: 调用skill 进入计划与构建阶段。comet-build
REQUIRED NEXT SKILL: Invoke theskill to enter the planning and build phase.comet-build