Loading...
Loading...
Compare original and translation side by side
{{COMMAND_PREFIX}}plan-phase{{COMMAND_PREFIX}}plan-phaseINIT=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs init phase-op "$ARGUMENTS")phase_dirphase_numberphase_namephase_foundcommit_docshas_researchstate_pathrequirements_pathcontext_pathresearch_pathRESEARCHER_MODEL=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-phase-researcher --raw)INIT=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs init phase-op "$ARGUMENTS")phase_dirphase_numberphase_namephase_foundcommit_docshas_researchstate_pathrequirements_pathcontext_pathresearch_pathRESEARCHER_MODEL=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-phase-researcher --raw)PHASE_INFO=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs roadmap get-phase "${phase_number}")foundfoundphase_numberphase_namegoalPHASE_INFO=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs roadmap get-phase "${phase_number}")foundfoundphase_numberphase_namegoalls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/nullls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/nullrequirements_pathcontext_pathstate_pathrequirements_pathcontext_pathstate_path<research_type>
Phase Research — investigating HOW to implement a specific phase well.
</research_type>
<key_insight>
The question is NOT "which library should I use?"
The question is: "What do I not know that I don't know?"
For this phase, discover:
- What's the established architecture pattern?
- What libraries form the standard stack?
- What problems do people commonly hit?
- What's SOTA vs what Claude's training thinks is SOTA?
- What should NOT be hand-rolled?
</key_insight>
<objective>
Research implementation approach for Phase {phase_number}: {phase_name}
Mode: ecosystem
</objective>
<files_to_read>
- {requirements_path} (Requirements)
- {context_path} (Phase context from discuss-phase, if exists)
- {state_path} (Prior project decisions and blockers)
</files_to_read>
<additional_context>
**Phase description:** {phase_description}
</additional_context>
<downstream_consumer>
Your RESEARCH.md will be loaded by `{{COMMAND_PREFIX}}plan-phase` which uses specific sections:
- `## Standard Stack` → Plans use these libraries
- `## Architecture Patterns` → Task structure follows these
- `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
- `## Common Pitfalls` → Verification steps check for these
- `## Code Examples` → Task actions reference these patterns
Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
</downstream_consumer>
<quality_gate>
Before declaring complete, verify:
- [ ] All domains investigated (not just some)
- [ ] Negative claims verified with official docs
- [ ] Multiple sources for critical claims
- [ ] Confidence levels assigned honestly
- [ ] Section names match what plan-phase expects
</quality_gate>
<output>
Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
</output>Task(
prompt="First, read {{PLATFORM_ROOT}}/agents/gsd-phase-researcher.md for your role and instructions.\n\n" + filled_prompt,
subagent_type="general-purpose",
model="{researcher_model}",
description="Research Phase {phase}"
)<research_type>
阶段研究 — 调研如何出色地实现特定阶段。
</research_type>
<key_insight>
核心问题不是“我应该使用哪个库?”
而是:“有哪些我不知道自己不知道的事情?”
针对此阶段,需探索:
- 已确立的架构模式是什么?
- 构成标准技术栈的库有哪些?
- 人们通常会遇到哪些问题?
- 当前最优方案(SOTA)与Claude训练数据中的最优方案有何区别?
- 哪些内容不应手动开发?
</key_insight>
<objective>
研究第{phase_number}阶段:{phase_name}的实现方案
模式:生态系统
</objective>
<files_to_read>
- {requirements_path}(需求文档)
- {context_path}(若存在,来自discuss-phase的阶段上下文)
- {state_path}(过往项目决策与障碍)
</files_to_read>
<additional_context>
**阶段描述:** {phase_description}
</additional_context>
<downstream_consumer>
你的RESEARCH.md将被`{{COMMAND_PREFIX}}plan-phase`加载,它会使用以下特定章节:
- `## Standard Stack` → 规划将使用这些库
- `## Architecture Patterns` → 任务结构遵循这些模式
- `## Don't Hand-Roll` → 任务绝不会为列出的问题构建自定义解决方案
- `## Common Pitfalls` → 验证步骤会检查这些问题
- `## Code Examples` → 任务操作会参考这些模式
请给出明确的指令,而非探索性内容。使用“使用X”而非“考虑X或Y”。
</downstream_consumer>
<quality_gate>
在宣布完成前,请验证:
- [ ] 所有领域均已调研(而非仅部分)
- [ ] 负面声明已通过官方文档验证
- [ ] 关键声明有多个来源支撑
- [ ] 如实标注置信度
- [ ] 章节名称与plan-phase预期一致
</quality_gate>
<output>
写入至:.planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
</output>Task(
prompt="First, read {{PLATFORM_ROOT}}/agents/gsd-phase-researcher.md for your role and instructions.\n\n" + filled_prompt,
subagent_type="general-purpose",
model="{researcher_model}",
description="Research Phase {phase}"
)## RESEARCH COMPLETE## CHECKPOINT REACHED## RESEARCH INCONCLUSIVE## RESEARCH COMPLETE## CHECKPOINT REACHED## RESEARCH INCONCLUSIVE<objective>
Continue research for Phase {phase_number}: {phase_name}
</objective>
<prior_state>
<files_to_read>
- .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md (Existing research)
</files_to_read>
</prior_state>
<checkpoint_response>
**Type:** {checkpoint_type}
**Response:** {user_response}
</checkpoint_response>Task(
prompt="First, read {{PLATFORM_ROOT}}/agents/gsd-phase-researcher.md for your role and instructions.\n\n" + continuation_prompt,
subagent_type="general-purpose",
model="{researcher_model}",
description="Continue research Phase {phase}"
)<objective>
继续研究第{phase_number}阶段:{phase_name}
</objective>
<prior_state>
<files_to_read>
- .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md(已有研究)
</files_to_read>
</prior_state>
<checkpoint_response>
**类型:** {checkpoint_type}
**响应:** {user_response}
</checkpoint_response>Task(
prompt="First, read {{PLATFORM_ROOT}}/agents/gsd-phase-researcher.md for your role and instructions.\n\n" + continuation_prompt,
subagent_type="general-purpose",
model="{researcher_model}",
description="Continue research Phase {phase}"
)