Research
Research Methodology
Always honoring YAGNI, KISS, and DRY principles.
Be honest, be brutal, straight to the point, and be concise.
Phase 1: Scope Definition
First, you will clearly define the research scope by:
- Identifying key terms and concepts to investigate
- Determining the recency requirements (how current must information be)
- Establishing evaluation criteria for sources
- Setting boundaries for the research depth
Phase 2: Systematic Information Gathering
You will employ a multi-source research strategy:
Search Strategy:
- Gemini Toggle: Check
.claude/.mk.json (or ~/.claude/.mk.json) for skills.research.useGemini (default: false). If false or absent, skip Gemini and use WebSearch directly.
- Gemini Model: Read from
.claude/.mk.json: gemini.model (default: gemini-3-flash-preview)
- If
useGemini is true: first validate Gemini CLI works: command -v gemini >/dev/null 2>&1 && cd /tmp && timeout 15 gemini -y -m <gemini.model> --prompt "ping" >/dev/null 2>&1. If validation fails or times out, fall back to WebSearch and warn: "Gemini CLI unavailable or auth failed, using WebSearch."
- If validation passes, execute research from a temp dir to avoid project GEMINI.md interception (note: global
~/.gemini/GEMINI.md still loads): cd /tmp && timeout 180 gemini -y -m <gemini.model> --prompt "...your search prompt..." 2>&1. Check exit code — if non-zero or output contains GaxiosError, RESOURCE_EXHAUSTED, MODEL_CAPACITY_EXHAUSTED, PERMISSION_DENIED, or UNAUTHENTICATED, fall back to WebSearch for that query and warn: "Gemini CLI failed, falling back to WebSearch." Save successful output using Report: path from ## Naming section (including all citations).
- If
useGemini is disabled or gemini bash command is not available, use WebSearch tool.
- Run multiple
gemini bash commands or WebSearch tools in parallel to search for relevant information.
- Craft precise search queries with relevant keywords
- Include terms like "best practices", "2024", "latest", "security", "performance"
- Search for official documentation, GitHub repositories, and authoritative blogs
- Prioritize results from recognized authorities (official docs, major tech companies, respected developers)
- IMPORTANT: You are allowed to perform at most 5 researches (max 5 tool calls), user might request less than this amount, strictly respect it, think carefully based on the task before performing each related research topic.
Deep Content Analysis:
- When you found a potential Github repository URL, use
mk-docs-seeker skill to find read it.
- Focus on official documentation, API references, and technical specifications
- Analyze README files from popular GitHub repositories
- Review changelog and release notes for version-specific information
Video Content Research:
- Prioritize content from official channels, recognized experts, and major conferences
- Focus on practical demonstrations and real-world implementations
Cross-Reference Validation:
- Verify information across multiple independent sources
- Check publication dates to ensure currency
- Identify consensus vs. controversial approaches
- Note any conflicting information or debates in the community
Phase 3: Analysis and Synthesis
You will analyze gathered information by:
- Identifying common patterns and best practices
- Evaluating pros and cons of different approaches
- Assessing maturity and stability of technologies
- Recognizing security implications and performance considerations
- Determining compatibility and integration requirements
Phase 4: Report Generation
Notes:
- Research reports are saved using
Report: path from ## Naming section.
- If
## Naming section is not available, ask main agent to provide the output path.
You will create a comprehensive markdown report with the following structure:
# Research Report: [Topic]
## Executive Summary
[2-3 paragraph overview of key findings and recommendations]
## Research Methodology
- Sources consulted: [number]
- Date range of materials: [earliest to most recent]
- Key search terms used: [list]
## Key Findings
### 1. Technology Overview
[Comprehensive description of the technology/topic]
### 2. Current State & Trends
[Latest developments, version information, adoption trends]
### 3. Best Practices
[Detailed list of recommended practices with explanations]
### 4. Security Considerations
[Security implications, vulnerabilities, and mitigation strategies]
### 5. Performance Insights
[Performance characteristics, optimization techniques, benchmarks]
## Comparative Analysis
[If applicable, comparison of different solutions/approaches]
## Implementation Recommendations
### Quick Start Guide
[Step-by-step getting started instructions]
### Code Examples
[Relevant code snippets with explanations]
### Common Pitfalls
[Mistakes to avoid and their solutions]
## Resources & References
### Official Documentation
- [Linked list of official docs]
### Recommended Tutorials
- [Curated list with descriptions]
### Community Resources
- [Forums, Discord servers, Stack Overflow tags]
### Further Reading
- [Advanced topics and deep dives]
## Appendices
### A. Glossary
[Technical terms and definitions]
### B. Version Compatibility Matrix
[If applicable]
### C. Raw Research Notes
[Optional: detailed notes from research process]
Quality Standards
You will ensure all research meets these criteria:
- Accuracy: Information is verified across multiple sources
- Currency: Prioritize information from the last 12 months unless historical context is needed
- Completeness: Cover all aspects requested by the user
- Actionability: Provide practical, implementable recommendations
- Clarity: Use clear language, define technical terms, provide examples
- Attribution: Always cite sources and provide links for verification
Special Considerations
- When researching security topics, always check for recent CVEs and security advisories
- For performance-related research, look for benchmarks and real-world case studies
- When investigating new technologies, assess community adoption and support levels
- For API documentation, verify endpoint availability and authentication requirements
- Always note deprecation warnings and migration paths for older technologies
Output Requirements
IMPORTANT: Invoke "/mk-project-organization" skill to organize the outputs.
Your final report must:
- Be saved using the
Report: path from ## Naming section with a descriptive filename
- Include a timestamp of when the research was conducted
- Provide clear section navigation with a table of contents for longer reports
- Use code blocks with appropriate syntax highlighting
- Include diagrams or architecture descriptions where helpful (in mermaid or ASCII art)
- Conclude with specific, actionable next steps
IMPORTANT: Sacrifice grammar for the sake of concision when writing reports.
IMPORTANT: In reports, list any unresolved questions at the end, if any.
Remember: You are not just collecting information, but providing strategic technical intelligence that enables informed decision-making. Your research should anticipate follow-up questions and provide comprehensive coverage of the topic while remaining focused and practical.
1---2name: mk-research3description: Research technical solutions, analyze architectures, gather requirements thoroughly. Use for technology evaluation, best practices research, solution design, scalability/security/maintainability analysis.4license: MIT5---67# Research89## Research Methodology1011Always honoring **YAGNI**, **KISS**, and **DRY** principles.12**Be honest, be brutal, straight to the point, and be concise.**1314### Phase 1: Scope Definition1516First, you will clearly define the research scope by:17- Identifying key terms and concepts to investigate18- Determining the recency requirements (how current must information be)19- Establishing evaluation criteria for sources20- Setting boundaries for the research depth2122### Phase 2: Systematic Information Gathering2324You will employ a multi-source research strategy:25261. **Search Strategy**:27 - **Gemini Toggle**: Check `.claude/.mk.json` (or `~/.claude/.mk.json`) for `skills.research.useGemini` (default: `false`). If `false` or absent, skip Gemini and use WebSearch directly.28 - **Gemini Model**: Read from `.claude/.mk.json`: `gemini.model` (default: `gemini-3-flash-preview`)29 - If `useGemini` is `true`: first validate Gemini CLI works: `command -v gemini >/dev/null 2>&1 && cd /tmp && timeout 15 gemini -y -m <gemini.model> --prompt "ping" >/dev/null 2>&1`. If validation fails or times out, fall back to WebSearch and warn: "Gemini CLI unavailable or auth failed, using WebSearch."30 - If validation passes, execute research from a temp dir to avoid project GEMINI.md interception (note: global `~/.gemini/GEMINI.md` still loads): `cd /tmp && timeout 180 gemini -y -m <gemini.model> --prompt "...your search prompt..." 2>&1`. Check exit code — if non-zero or output contains `GaxiosError`, `RESOURCE_EXHAUSTED`, `MODEL_CAPACITY_EXHAUSTED`, `PERMISSION_DENIED`, or `UNAUTHENTICATED`, fall back to WebSearch for that query and warn: "Gemini CLI failed, falling back to WebSearch." Save successful output using `Report:` path from `## Naming` section (including all citations).31 - If `useGemini` is disabled or `gemini` bash command is not available, use `WebSearch` tool.32 - Run multiple `gemini` bash commands or `WebSearch` tools in parallel to search for relevant information.33 - Craft precise search queries with relevant keywords34 - Include terms like "best practices", "2024", "latest", "security", "performance"35 - Search for official documentation, GitHub repositories, and authoritative blogs36 - Prioritize results from recognized authorities (official docs, major tech companies, respected developers)37 - **IMPORTANT:** You are allowed to perform at most **5 researches (max 5 tool calls)**, user might request less than this amount, **strictly respect it**, think carefully based on the task before performing each related research topic.38392. **Deep Content Analysis**:40 - When you found a potential Github repository URL, use `mk-docs-seeker` skill to find read it.41 - Focus on official documentation, API references, and technical specifications42 - Analyze README files from popular GitHub repositories43 - Review changelog and release notes for version-specific information44453. **Video Content Research**:46 - Prioritize content from official channels, recognized experts, and major conferences47 - Focus on practical demonstrations and real-world implementations48494. **Cross-Reference Validation**:50 - Verify information across multiple independent sources51 - Check publication dates to ensure currency52 - Identify consensus vs. controversial approaches53 - Note any conflicting information or debates in the community5455### Phase 3: Analysis and Synthesis5657You will analyze gathered information by:58- Identifying common patterns and best practices59- Evaluating pros and cons of different approaches60- Assessing maturity and stability of technologies61- Recognizing security implications and performance considerations62- Determining compatibility and integration requirements6364### Phase 4: Report Generation6566**Notes:**67- Research reports are saved using `Report:` path from `## Naming` section.68- If `## Naming` section is not available, ask main agent to provide the output path.6970You will create a comprehensive markdown report with the following structure:7172```markdown73# Research Report: [Topic]7475## Executive Summary76[2-3 paragraph overview of key findings and recommendations]7778## Research Methodology79- Sources consulted: [number]80- Date range of materials: [earliest to most recent]81- Key search terms used: [list]8283## Key Findings8485### 1. Technology Overview86[Comprehensive description of the technology/topic]8788### 2. Current State & Trends89[Latest developments, version information, adoption trends]9091### 3. Best Practices92[Detailed list of recommended practices with explanations]9394### 4. Security Considerations95[Security implications, vulnerabilities, and mitigation strategies]9697### 5. Performance Insights98[Performance characteristics, optimization techniques, benchmarks]99100## Comparative Analysis101[If applicable, comparison of different solutions/approaches]102103## Implementation Recommendations104105### Quick Start Guide106[Step-by-step getting started instructions]107108### Code Examples109[Relevant code snippets with explanations]110111### Common Pitfalls112[Mistakes to avoid and their solutions]113114## Resources & References115116### Official Documentation117- [Linked list of official docs]118119### Recommended Tutorials120- [Curated list with descriptions]121122### Community Resources123- [Forums, Discord servers, Stack Overflow tags]124125### Further Reading126- [Advanced topics and deep dives]127128## Appendices129130### A. Glossary131[Technical terms and definitions]132133### B. Version Compatibility Matrix134[If applicable]135136### C. Raw Research Notes137[Optional: detailed notes from research process]138```139140## Quality Standards141142You will ensure all research meets these criteria:143- **Accuracy**: Information is verified across multiple sources144- **Currency**: Prioritize information from the last 12 months unless historical context is needed145- **Completeness**: Cover all aspects requested by the user146- **Actionability**: Provide practical, implementable recommendations147- **Clarity**: Use clear language, define technical terms, provide examples148- **Attribution**: Always cite sources and provide links for verification149150## Special Considerations151152- When researching security topics, always check for recent CVEs and security advisories153- For performance-related research, look for benchmarks and real-world case studies154- When investigating new technologies, assess community adoption and support levels155- For API documentation, verify endpoint availability and authentication requirements156- Always note deprecation warnings and migration paths for older technologies157158## Output Requirements159**IMPORTANT:** Invoke "/mk-project-organization" skill to organize the outputs.160161Your final report must:1621. Be saved using the `Report:` path from `## Naming` section with a descriptive filename1632. Include a timestamp of when the research was conducted1643. Provide clear section navigation with a table of contents for longer reports1654. Use code blocks with appropriate syntax highlighting1665. Include diagrams or architecture descriptions where helpful (in mermaid or ASCII art)1676. Conclude with specific, actionable next steps168169**IMPORTANT:** Sacrifice grammar for the sake of concision when writing reports.170**IMPORTANT:** In reports, list any unresolved questions at the end, if any.171172**Remember:** You are not just collecting information, but providing strategic technical intelligence that enables informed decision-making. Your research should anticipate follow-up questions and provide comprehensive coverage of the topic while remaining focused and practical.