.claude/skills/research/SKILL.md
Comprehensive research skill using Zai MCP web search and native Claude Code tools
npx skillsauth add alfredolopez80/multi-agent-ralph-loop researchInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Smart Research with Zai MCP Integration - Leverages Zai MCP for comprehensive web search, article fetching, and content analysis.
Based on the principle that research should be thorough, well-sourced, and actionable.
# Via skill invocation
/research Latest React 19 patterns and best practices
# Via CLI
ralph research "TypeScript 5.0 performance optimizations"
# Focus on specific sources
/research "Next.js App Router" --sources github,docs
mcp__web-search-prime__webSearchPrime instead of MinimaxPurpose: Comprehensive web search with high-quality results
Parameters:
search_query: string # The search query (max 70 characters recommended)
content_size: string # "medium" (400-600 words) or "high" (2500 words)
location: string # "cn" (Chinese) or "us" (non-Chinese)
search_recency_filter: string # oneDay, oneWeek, oneMonth, oneYear, noLimit
search_domain_filter: string # Optional: limit to specific domain
Optimal Patterns:
# Good: Specific, time-bounded
mcp__web-search-prime__webSearchPrime:
search_query: "React 19 useOptimistic hook examples 2025"
search_recency_filter: "oneMonth"
content_size: "medium"
# Good: Error-focused debugging
mcp__web-search-prime__webSearchPrime:
search_query: "TypeError cannot read property undefined Next.js 15"
location: "us"
# Good: Documentation search
mcp__web-search-prime__webSearchPrime:
search_query: "Claude Code MCP configuration"
search_domain_filter: "docs.anthropic.com"
# Bad: Too vague
mcp__web-search-prime__webSearchPrime:
search_query: "javascript" # Too broad, be specific
Purpose: Fetch and analyze full web page content
When to Use:
Purpose: Extract README content from GitHub repositories
Parameters:
url: string # GitHub repository URL
Example:
mcp__web-search__fetchGithubReadme:
url: "https://github.com/vercel/next.js"
Purpose: Convert URL content to LLM-friendly format
Parameters:
url: string # URL to fetch and read
return_format: string # "markdown" (default) or "text"
retain_images: boolean # Keep images (default: true)
with_links_summary: boolean # Include links summary
with_images_summary: boolean # Include images summary
Example:
mcp__web-reader__webReader:
url: "https://docs.anthropic.com/claude/docs"
return_format: "markdown"
with_links_summary: true
mcp__web-search__fetchCsdnArticle
url: string # CSDN article URL
mcp__web-search__fetchJuejinArticle
url: string # Juejin article URL
mcp__web-search__fetchLinuxDoArticle
url: string # Linux.do post URL
# Broad search first
mcp__web-search-prime__webSearchPrime:
search_query: "${TOPIC} overview guide 2025"
content_size: "high"
search_recency_filter: "oneMonth"
# Targeted follow-up searches based on initial results
mcp__web-search-prime__webSearchPrime:
search_query: "${SPECIFIC_ASPECT} implementation ${TOPIC}"
search_recency_filter: "oneWeek"
# For documentation sites
mcp__web-reader__webReader:
url: "${DOC_URL}"
return_format: "markdown"
# For GitHub repos
mcp__web-search__fetchGithubReadme:
url: "${REPO_URL}"
Compile findings into structured report:
Save research to memory for future reference:
ralph memvid save "Research on ${TOPIC}: [key findings]"
# 1. Official docs
mcp__web-search-prime__webSearchPrime:
search_query: "${TECH} official documentation"
search_domain_filter: "official-site.com"
# 2. Best practices
mcp__web-search-prime__webSearchPrime:
search_query: "${TECH} best practices 2025"
# 3. GitHub examples
mcp__web-search-prime__webSearchPrime:
search_query: "${TECH} examples github"
# 1. Exact error message
mcp__web-search-prime__webSearchPrime:
search_query: "${ERROR_MESSAGE} ${FRAMEWORK}"
# 2. Stack Overflow solutions
mcp__web-search-prime__webSearchPrime:
search_query: "site:stackoverflow.com ${ERROR_MESSAGE}"
# 3. GitHub issues
mcp__web-search-prime__webSearchPrime:
search_query: "site:github.com ${ERROR_MESSAGE}"
# 1. CVE lookup
mcp__web-search-prime__webSearchPrime:
search_query: "CVE ${VERSION} vulnerability"
# 2. Security advisories
mcp__web-search-prime__webSearchPrime:
search_query: "${PACKAGE} security advisory 2025"
# 3. Exploit database
mcp__web-search-prime__webSearchPrime:
search_query: "${CVE_ID} exploit"
# Research phase in orchestrator
Task:
prompt: |
Research latest patterns for $TOPIC using mcp__web-search-prime__webSearchPrime.
Use mcp__web-reader__webReader for detailed content.
Compile findings into structured report with sources.
# Code research
Task:
prompt: |
Search for $TOPIC implementation examples on GitHub.
Use mcp__web-search__fetchGithubReadme to analyze repositories.
Identify best patterns and anti-patterns.
| Feature | Zai MCP | Minimax MCP | |---------|---------|-------------| | Web Search | webSearchPrime | web_search | | Content Quality | High (2500 words max) | Medium | | Chinese Content | Excellent (CSDN, Juejin) | Basic | | GitHub Integration | fetchGithubReadme | None | | URL Reader | webReader | None | | Domain Filtering | Yes | No | | Recency Filter | Yes | No | | Cost | Free (no API key) | ~$0.008/query |
| Scenario | Recommended Tool | |----------|------------------| | General web search | mcp__web-search-prime__webSearchPrime | | Chinese tech articles | mcp__web-search__fetchCsdnArticle, fetchJuejinArticle | | GitHub repositories | mcp__web-search__fetchGithubReadme | | Documentation reading | mcp__web-reader__webReader | | Real-time data | Native WebFetch | | Code search in repo | Grep, Glob (not web search) |
Structure research reports as:
# Research: [TOPIC]
**Date**: YYYY-MM-DD
**Sources**: X articles analyzed
## Summary
[2-3 sentence key findings]
## Key Findings
1. [Finding 1]
- Source: [URL]
- Details: [Explanation]
2. [Finding 2]
- Source: [URL]
- Details: [Explanation]
## Code Examples
```language
// Relevant code snippets
## CLI Commands
```bash
# Standard research
ralph research "topic description"
# With source focus
ralph research "topic" --sources github,docs
# Chinese content
ralph research "topic" --location cn
/orchestrator - Full orchestration with research phase/smart-fork - Pattern extraction from external repos/clarify - Requirement clarification with researchOptimal Scenario: B (Pure Custom Subagents)
| Criterion | Weight | Score | Rationale | |-----------|--------|-------|-----------| | Coordination Need | 25% | 3/10 | Research is independent | | Specialization Need | 25% | 9/10 | Specialized web tools required | | Quality Gate Need | 20% | 5/10 | Moderate validation needs | | Tool Restriction Need | 15% | 8/10 | Read-only tools important | | Scalability | 15% | 7/10 | Scales with topic complexity | | Total | 100% | 7.5/10 | Scenario B optimal |
# Scenario B: Direct spawn without TeamCreate
Task(subagent_type="ralph-researcher", prompt="Research ${TOPIC}")
→ Execute with specialized tools
→ Compile structured report
→ Return findings
Direct Spawn (Recommended):
Task:
subagent_type: "ralph-researcher"
prompt: |
Research ${TOPIC} using:
1. mcp__web-search-prime__webSearchPrime for initial search
2. mcp__web-reader__webReader for content extraction
3. mcp__web-search__fetchGithubReadme for GitHub repos
Compile into structured report with all sources.
Parallel Research (Multiple Topics):
# Spawn multiple researchers for different topics
Task(subagent_type="ralph-researcher", prompt="Research React 19 features")
Task(subagent_type="ralph-researcher", prompt="Research TypeScript 5.5")
Task(subagent_type="ralph-researcher", prompt="Research Node.js performance")
# Results aggregated independently
development
Living knowledge base management. Actions: search (query vault), save (store learning), index (update indices), compile (raw->wiki->rules graduation), init (create vault structure). Follows Karpathy pipeline: ingest->compile->query. Use when: (1) searching accumulated knowledge, (2) saving learnings, (3) compiling raw notes into wiki, (4) initializing a new vault. Triggers: /vault, 'vault search', 'knowledge base', 'save learning'.
testing
Produce a verifiable technical specification before coding. 6 mandatory sections: Interfaces, Behaviors, Invariants (from Aristotle Phase 2), File Plan, Test Plan, Exit Criteria (executable bash commands + expected results). Use when: (1) before implementing features with complexity > 4, (2) as Step 1.5 in orchestrator workflow, (3) when requirements need formalization. Triggers: /spec, 'create spec', 'write specification', 'technical spec'.
testing
Pre-launch shipping checklist orchestrating /gates, /security, /browser-test, /perf. Ensures nothing ships without passing all quality checks. Use when: (1) before deploying, (2) before merging to main, (3) before release. Triggers: /ship, 'ship it', 'ready to deploy', 'pre-launch check'.
development
Performance optimization skill. Core Web Vitals via Lighthouse, bundle size analysis, metrics tracking over time. Use when: (1) optimizing frontend performance, (2) analyzing bundle size, (3) tracking metrics regression. Triggers: /perf, 'performance audit', 'core web vitals', 'bundle size'.