--- name: GudaSpec: Deep Research description: External problem domain research - analyze available technologies, patterns, and best practices. category: GudaSpec tags: [gudaspec, research, external, greenfield, technology] argument-hint: [requirement-id] --- ## CRITICAL: RESEARCH ONLY, NO IMPLEMENTATION - **DO NOT** write any implementation code - **DO NOT** make final technology decisions without user confirmation - **ONLY** gather information, compare options, document constraints - Present options objectively with pros/cons ## Purpose 执行问题域调研(External Research),研究外部技术、模式和最佳实践,为需求实现提供技术选型依据。 ## Guardrails - **MUST** read internal.md first to understand existing constraints - **MANDATORY**: Use `mcp__grok-search` for external research - **MUST** verify external recommendations against internal constraints - All findings must include source URLs - Prefer recent sources (2024-2025) --- ## Steps ### Step 0: Load Internal Research ```bash # Read internal research for context cat gudaspec/research//internal.md ``` Extract: - Hard constraints (compatibility requirements) - Existing technology stack - Integration points - Open questions that need external research ### Step 1: Identify Research Topics Based on internal research triggers, identify specific research topics: ``` 📋 External Research 议题 需求ID: 基于内部研究,需要调研以下议题: | ID | 议题 | 调研目的 | 与内部约束关系 | |----|------|----------|----------------| | ER-1 | | | | | ER-2 | | | | 确认开始调研? ``` ### Step 2: Execute External Research For each research topic, use `mcp__grok-search`: **Search Patterns**: | 调研类型 | 搜索模式 | |----------|----------| | 技术对比 | `"[Tech A] vs [Tech B] [use case] 2024 2025"` | | 最佳实践 | `"[Domain] best practices production 2025"` | | 实现参考 | `"[Framework] [feature] implementation example"` | | API限制 | `"[Service] API rate limits pricing 2025"` | | 安全考量 | `"[Technology] security vulnerabilities CVE 2024"` | ### Step 3: Analyze Each Topic For each topic, gather: - Multiple options/approaches - Pros and cons of each - Compatibility with internal constraints - Community adoption and maintenance status - License considerations ### Step 4: Generate External Document Create: ``` gudaspec/research//external.md ``` **Document Template**: ```markdown --- requirement_id: created: researcher: claude status: pending-review type: external internal_ref: gudaspec/research//internal.md --- # External Research: ## 调研背景 ### 内部约束回顾 | 约束ID | 约束描述 | 对外部选型的影响 | |--------|----------|------------------| | HC-1 | | | | ... | | | ### 现有技术栈 | 类型 | 技术 | 版本 | |------|------|------| | | | | --- ## 调研议题 1: ### 调研问题 ### 选项分析 #### 选项 A: