gemini-research

Use Gemini CLI for research with Google Search grounding and 1M token context

28 stars

Best use case

gemini-research is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Use Gemini CLI for research with Google Search grounding and 1M token context

Teams using gemini-research should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/gemini-research/SKILL.md --create-dirs "https://raw.githubusercontent.com/DNYoussef/context-cascade/main/skills/platforms/gemini-research/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/gemini-research/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How gemini-research Compares

Feature / Agentgemini-researchStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Use Gemini CLI for research with Google Search grounding and 1M token context

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Gemini Research Skill



---

## LIBRARY-FIRST PROTOCOL (MANDATORY)

**Before writing ANY code, you MUST check:**

### Step 1: Library Catalog
- Location: `.claude/library/catalog.json`
- If match >70%: REUSE or ADAPT

### Step 2: Patterns Guide
- Location: `.claude/docs/inventories/LIBRARY-PATTERNS-GUIDE.md`
- If pattern exists: FOLLOW documented approach

### Step 3: Existing Projects
- Location: `D:\Projects\*`
- If found: EXTRACT and adapt

### Decision Matrix
| Match | Action |
|-------|--------|
| Library >90% | REUSE directly |
| Library 70-90% | ADAPT minimally |
| Pattern exists | FOLLOW pattern |
| In project | EXTRACT |
| No match | BUILD (add to library after) |

---

## Purpose

Route research tasks to Gemini CLI when:
- Real-time information is needed (Google Search grounding)
- Context exceeds Claude's 200k limit (Gemini has 1M)
- Need web-grounded factual answers

## Unique Capability

**What Gemini Does Better**:
- Google Search grounding for current information
- 1M token context for massive document analysis
- 70+ extensions (Figma, Stripe, Shopify, etc.)
- Web content analysis with source attribution

## When to Use

### Perfect For:
- Current events, recent documentation
- Large codebase analysis (>150k tokens)
- Literature reviews with many papers
- Real-time API documentation lookup
- Market research, competitor analysis

### Don't Use When:
- Offline/airgapped environments
- Complex multi-step reasoning (use Claude)
- Code generation requiring iteration (use Codex)

## Usage

### Basic Research
```bash
/gemini-research "What are the latest React 19 best practices?"
```

### With Context Files
```bash
/gemini-research "Analyze architecture" --context @src/
```

### Large Document Analysis
```bash
/gemini-research "Summarize all papers" --context papers/*.pdf
```

## Command Pattern

```bash
bash scripts/multi-model/gemini-research.sh "<query>" "<task_id>" "json"
```

## Memory Integration

Results stored to Memory-MCP:
- Key: `multi-model/gemini/research/{task_id}`
- Tags: WHO=gemini-cli, WHY=research

## Output Format

```json
{
  "content": "Research findings...",
  "sources": ["url1", "url2"],
  "model": "gemini-2.5-pro",
  "timestamp": "2025-12-28T..."
}
```

## Handoff to Claude

After Gemini research completes:
1. Results stored in Memory-MCP
2. Claude agents read from memory key
3. Use research to inform implementation

```javascript
// Claude agent reads Gemini research
const research = memory_retrieve("multi-model/gemini/research/{task_id}");
Task("Coder", `Implement using: ${research.content}`, "coder");
```

## Configuration

- Retries: 3 attempts on failure
- Timeout: 60 seconds per query
- Fallback: Claude researcher agent if Gemini unavailable

Related Skills

gemini-codebase-onboard

28
from DNYoussef/context-cascade

Use Gemini CLI's 1M token context to understand entire codebases in one pass. Full architecture mapping, pattern discovery, and onboarding documentation.

/*============================================================================*/

28
from DNYoussef/context-cascade

/* SKILL SKILL :: VERILINGUA x VERIX EDITION */

web-scraping

28
from DNYoussef/context-cascade

Structured data extraction from web pages using claude-in-chrome MCP with sequential-thinking planning. Focus on READ operations, data transformation, and pagination handling for multi-page extraction.

visual-testing

28
from DNYoussef/context-cascade

Screenshot-based visual comparison and regression testing using claude-in-chrome MCP. Captures, compares, and validates UI states to detect layout shifts, visual bugs, and design regressions across viewports.

reflect

28
from DNYoussef/context-cascade

Extract learnings from session corrections and patterns, update skill files with persistent memory. Implements Loop 1.5 - per-session micro-learning between execution and meta-optimization.

fix-bug

28
from DNYoussef/context-cascade

Fix bug command

e2e-test

28
from DNYoussef/context-cascade

End-to-end testing workflow for validating complete user journeys through web applications using claude-in-chrome MCP. Specializes in test assertions, suite organization, evidence collection, and pass/fail reporting.

build-feature

28
from DNYoussef/context-cascade

Build feature command

browser-automation

28
from DNYoussef/context-cascade

Complex browser automation workflow using claude-in-chrome MCP with mandatory sequential-thinking planning. Use when automating multi-step web interactions, form filling, navigation sequences, or web scraping.

image-gen

28
from DNYoussef/context-cascade

Modular image generation - supports local SDXL Lightning, OpenAI DALL-E, Replicate, or custom providers

reverse-engineering-quick-triage

28
from DNYoussef/context-cascade

Fast binary analysis with string reconnaissance and static disassembly\ \ (RE Levels 1-2). Use when triaging suspicious binaries, extracting IOCs quickly,\ \ or performing initial malware analysis. Completes in \u22642 hours with automated\ \ decision gates."

reverse-engineering-firmware-analysis

28
from DNYoussef/context-cascade

Firmware extraction and IoT security analysis (RE Level 5) for routers and embedded systems. Use when analyzing IoT firmware, extracting embedded filesystems (SquashFS/JFFS2/CramFS), finding hardcoded credentials, performing CVE scans, or auditing embedded system security. Handles encrypted firmware with known decryption schemes. Completes in 2-8 hours with binwalk+firmadyne+QEMU emulation.