From claude-commands
Executes multi-phase academic and technical research: checks project memories via git, plans deeply, searches multiple engines (WebSearch, Perplexity, DuckDuckGo, Grok, Gemini), synthesizes verified findings.
npx claudepluginhub jleechanorg/claude-commandscommands/## โก EXECUTION INSTRUCTIONS FOR CLAUDE **When this command is invoked, YOU (Claude) must execute these steps immediately:** **This is NOT documentation - these are COMMANDS to execute right now.** **Use TodoWrite to track progress through multi-phase workflows.** ## ๐จ EXECUTION WORKFLOW ### Phase 0: Check Prior Knowledge in Claude Memories **Action Steps:** 1. **Discover memory files** (current project only): 2. **Filter by research topic**: Keyword match against file content using research topic terms 3. **If matches found**: Display "๐ Prior Knowledge Found" section with relevant...
/researchPerforms adaptive deep web research on a query with configurable --depth and --strategy options. Outputs markdown report with executive summary, analysis, confidence scores, and cited sources.
/researchPrompts for research intensity (quick/standard/deep) then invokes octo:discover skill for multi-AI orchestration, synthesis, and analysis.
/researchConducts multi-turn deep research on a codebase topic over 5 iterations, tracing code paths with citations, Mermaid diagrams, tables, and confidence ratings.
/researchGathers knowledge from trusted web sources and files, cross-references claims across multiple sources, and produces cited research documents in docs/research/. Optional skill distillation via --skill-for.
/researchRuns research phase for current or specified spec: gathers context, optional interview, parallel subagent research, synthesizes research.md, reviews, approves, and finalizes state.
/researchRuns multi-source research session on a topic across GitHub, HN, Lobsters, Reddit, arXiv, Semantic Scholar; applies TRIZ cross-domain analysis to produce a domain-appropriate report. Also supports format, resume, list, and domain options.
When this command is invoked, YOU (Claude) must execute these steps immediately: This is NOT documentation - these are COMMANDS to execute right now. Use TodoWrite to track progress through multi-phase workflows.
Action Steps:
import glob, os, subprocess
try:
git_root = subprocess.check_output(['git', 'rev-parse', '--show-toplevel'], text=True).strip()
project_key = git_root.replace('/', '-') # preserve leading dash: /Users/... โ -Users-...
pattern = os.path.expanduser(f'~/.claude/projects/{project_key}/memory/*.md')
except Exception:
pattern = None # no fallback โ skip if not in a git repo
memory_files = [f for f in glob.glob(pattern) if not f.endswith('MEMORY.md')] if pattern else []
Action Steps:
Action Steps: Ultra-depth Thinking Process:
Action Steps: Comprehensive Search Execution:
Action Steps: Sequential Thinking Applied to Research Results:
Action Steps: Research Summary with Methodology Transparency:
Purpose: Systematic research using multiple information sources with academic rigor
Usage: /research <topic> - Conduct comprehensive research on a specific topic
Before any research actions, capture today's date with a portable shell command and use it when checking source freshness or framing search queries:
CURRENT_DATE=$(date "+%Y-%m-%d")
The POSIX date invocation above works on both macOS and Ubuntu. If it ever fails (very rare), fall back to python3 -c "from datetime import datetime; print(datetime.now().strftime('%Y-%m-%d'))". Reference CURRENT_DATE explicitly when summarizing findings to flag material that may already be stale relative to today.
Default Execution: /research automatically combines:
/thinku - Ultra-depth sequential thinking for research planning and analysis/perp - Multi-engine search across Claude WebSearch, Perplexity, DuckDuckGo, Grok, and GeminiResearch Planning (/thinku) - Deep analytical thinking to:
Information Gathering (/perp) - Comprehensive multi-source search:
Analysis Integration (/thinku + findings) - Deep analytical processing:
Documentation - Structured research summary with methodology transparency
Primary Sources (via /perp):
Secondary Sources (via /perp):
Analysis Layer (via /thinku):
Query: /research microservices authentication patterns
Expected Execution Flow:
๐ง Research Planning (/thinku):
Analyzing research scope for microservices authentication patterns...
- Defining key research questions: scalability, security, implementation complexity
- Planning search strategy: official docs, industry practices, security considerations
- Identifying validation criteria: performance, security standards, adoption rates
๐ Multi-source Information Gathering (/perp):
Searching across Claude, Perplexity, DuckDuckGo, Grok, and Gemini for: "microservices authentication patterns"
๐ Claude WebSearch Results:
[Latest industry trends and documentation]
๐ง Perplexity Deep Research:
[Cited comparisons with recency filters]
๐ DuckDuckGo Results:
[Privacy-focused technical resources and alternatives]
๐ง Grok Intelligence:
[Real-time synthesis, trend analysis, and contrarian insights]
๐ Gemini Consultation:
[Development-focused technical guidance and code perspectives]
๐ง Deep Analysis Integration (/thinku):
Processing findings from all sources...
- Synthesizing common patterns across sources
- Evaluating trade-offs and implementation considerations
- Identifying consensus vs. conflicting recommendations
๐ Research Report: Microservices Authentication Patterns
๐ง Research Planning Analysis:
[Systematic breakdown of research approach and methodology]
๐ Multi-source Findings:
1. JWT Token-based Authentication
- Claude: [Latest industry standards]
- Perplexity: [Cited deep research synthesis]
- DuckDuckGo: [Community practices and tools]
- Grok: [Real-time synthesis of best practices]
2. Service-to-Service Authentication
- Claude: [Industry standards and recent updates]
- Perplexity: [Cited comparisons with recency filters]
- DuckDuckGo: [Alternative implementations and community tools]
- Grok: [Comparative analysis of authentication methods]
- Gemini: [Technical implementation guidance and code examples]
- Pattern analysis from /thinku integration
๐ง Strategic Analysis:
[Deep thinking synthesis of all findings with pattern recognition]
๐ฏ Evidence-based Recommendations:
[Actionable next steps derived from comprehensive analysis]
/thinku provides ultra-depth analysis throughout research process/perp delivers multi-engine information gatheringPerfect for:
vs. Other Commands:
/perp - Multi-engine search alone (without deep thinking integration)/thinku - Deep thinking alone (without comprehensive search)/arch - Architecture-specific design research/research = /thinku + /perp + integration - Full academic research methodologyMemory Enhancement: This command automatically searches memory context using Memory MCP for relevant past research methodologies, information sources, and research patterns to enhance research strategy and result quality. See CLAUDE.md Memory Enhancement Protocol for details.