| name | research |
| version | 1.0.0 |
| description | 任務開始前的需求分析與資料收集,整合文件查詢與經驗檢索 |
| author | miles990 |
| tags | ["research","analysis","planning","context-gathering"] |
| dependencies | {"mcp":[{"package":"@anthropic/cipher-mcp","required":false,"note":"用於查詢過去經驗"},{"package":"@context7/mcp-server","required":false,"note":"用於查詢最新文件"}]} |
| interface | {"input":[{"name":"task","type":"string","description":"要分析的任務描述","required":true},{"name":"context","type":"object","description":"額外上下文(如專案資訊)","required":false}],"output":[{"name":"research_report","type":"object","description":"結構化研究報告"},{"name":"next_action","type":"string","description":"建議的下一步(通常是 plan-master)"}]} |
| triggers | [{"pattern":"新任務開始","description":"任何新任務開始前"},{"pattern":"需要了解","description":"需要收集資訊時"},{"pattern":"技術選型","description":"需要評估技術方案時"}] |
Research Skill
收到任務 → 分析需求 → 查文件 → 查經驗 → 輸出研究報告
核心理念
┌─────────────────────────────────────────────────────────────────┐
│ 在動手之前,先搞清楚狀況 │
│ │
│ 傳統模式:收到任務 → 直接開始做 → 遇到問題再查 │
│ 研究模式:收到任務 → 分析需求 → 收集資料 → 有備而戰 │
└─────────────────────────────────────────────────────────────────┘
研究流程
Step 1: 任務解析
問自己:
1. 這個任務的核心目標是什麼?
2. 有哪些明確的需求?
3. 有哪些隱含的約束?
4. 成功的標準是什麼?
輸出:結構化的需求分析
Step 2: 查詢過去經驗(如有 Cipher)
await mcp__cipher__ask_cipher({
message: "我之前有處理過類似的任務嗎?學到了什麼教訓?"
})
Step 3: 查詢相關文件(如有 Context7)
await mcp__plugin_context7_context7__resolve_library_id({
query: "任務相關的技術",
libraryName: "相關框架或工具"
})
await mcp__plugin_context7_context7__query_docs({
libraryId: "/org/project",
query: "具體問題"
})
Step 4: 綜合分析
整合所有收集的資訊,形成研究報告:
research_report:
task: "原始任務描述"
analysis:
requirements:
- "功能需求 1"
- "功能需求 2"
constraints:
- "技術約束"