mcpField
G
gsd-research-phase

gsd-research-phase

github.com/shoootyouAgent 工作流22110 次安装32 周前更新
代码仓库

关于 gsd-research-phase

独立研究项目阶段实施方式的技能。它会校验阶段信息并将调查交给专用研究 Agent,与常用的 plan-phase 工作流分开。

主要功能

  1. 01根据路线图校验阶段
  2. 02检查现有研究文档
  3. 03收集规划上下文
  4. 04委派给研究 Agent
  5. 05呈现结果与后续选项

适用场景

  1. 01规划前调查可行性
  2. 02独立研究某个阶段
  3. 03规划完成后重新研究

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/shoootyou/get-shit-done-multi --skill gsd-research-phase

安装后在 Claude Code 中输入/gsd-research-phase确认已加载。

详细介绍

研究如何实现某个阶段。启动 gsd-phase-researcher Agent,并提供阶段上下文。

注意: 这是一个独立的研究命令。对于大多数工作流,请使用 {{COMMAND_PREFIX}}plan-phase,它会自动整合研究。

在以下情况下使用此命令:

  • 暂时只想进行研究,尚未开始规划
  • 规划完成后想重新研究
  • 需要在决定某个阶段是否可行之前先进行调查

编排器职责: 解析阶段、根据路线图进行验证、检查现有研究、收集上下文、启动研究员 Agent、展示结果。

为何使用子 Agent: 研究会快速消耗上下文(WebSearch、Context7 查询、来源验证)。为调查提供全新的 200k 上下文。主上下文则保持精简,用于与用户交互。

阶段编号:$ARGUMENTS(必填)

在步骤 1 中规范化阶段输入,然后再查找任何目录。

0. 初始化上下文

INIT=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs init phase-op "$ARGUMENTS")

从初始化 JSON 中提取:phase_dir、phase_number、phase_name、phase_found、commit_docs、has_research、state_path、requirements_path、context_path、research_path。

解析研究员模型:

RESEARCHER_MODEL=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs resolve-model gsd-phase-researcher --raw)

1. 验证阶段

PHASE_INFO=$(node {{PLATFORM_ROOT}}/get-shit-done/bin/gsd-tools.cjs roadmap get-phase "${phase_number}")

如果 found 为 false: 报错并退出。如果 found 为 true: 从 JSON 中提取 phase_number、phase_name、goal。

2. 检查现有研究

ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null

如果存在: 提供选项:1) 更新研究,2) 查看现有研究,3) 跳过。等待回复。

如果不存在: 继续。

3. 收集阶段上下文

使用 INIT 中的路径(不要将文件内容直接嵌入编排器上下文):

  • requirements_path
  • context_path
  • state_path

提供摘要,说明阶段描述以及研究员将读取哪些文件。

4. 启动 gsd-phase-researcher Agent

研究模式:ecosystem(默认)、feasibility、implementation、comparison。

<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}"
)

5. 处理 Agent 返回结果

## RESEARCH COMPLETE: 展示摘要,并提供选项:规划阶段、深入研究、查看完整内容、完成。

## CHECKPOINT REACHED: 呈现给用户并获取回复,然后启动后续 Agent。

## RESEARCH INCONCLUSIVE: 展示已尝试的内容,并提供选项:补充上下文、更换模式、手动处理。

6. 启动后续 Agent

<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}"
)

<success_criteria>

  • 已根据路线图验证阶段
  • 已检查现有研究
  • 已在提供上下文后启动 gsd-phase-researcher
  • 已正确处理检查点
  • 用户了解后续步骤 </success_criteria>

评论

支持 Markdown