gemini-search
Skill2 starsChanged 6 months agoMITView on GitHub
Search research papers via Gemini for broad literature discovery. Use when user says "gemini search", "gemini papers", "search with gemini", or wants AI-powered literature discovery beyond arXiv/Semantic Scholar indexes.
- Reads credentials
- Installs packages
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Use Gemini when you want AI-driven discovery that goes beyond keyword matching — Gemini decomposes topics into sub-problems, explores …
- Distinctive: line 124
code-only: Only include papers with open-source code
- Very specific: line 167
If mcp__gemini-cli__ask-gemini fails or is not configured, fall back to CLI:
- Distinctive: line 195
If Gemini returns fewer papers than requested, note this but do not re-query.
- Very specific: line 209
arXiv ID: if available (for cross-reference with /arxiv)
- Distinctive: line 210
DOI: if available (canonical link for published papers)
- Distinctive: line 215
After presenting results, suggest:
- Very specific: line 226
MCP first, CLI second: Always try mcp__gemini-cli__ask-gemini before falling back to gemini -p.
- Very specific: line 231
If both MCP and CLI are unreachable, suggest using /semantic-scholar, /arxiv, or /research-lit "topic" — sources: web as alternatives.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Gemini Literature Search
Search query: $ARGUMENTS
Role & Positioning
This skill uses Gemini as a broad literature discovery source:
| Skill | Source | Best for |
/arxiv | arXiv API | Latest preprints, cutting-edge unrefereed work |
/semantic-scholar | Semantic Scholar API | Published venue papers (IEEE, ACM, Springer) with citation counts |
/deepxiv | DeepXiv CLI | Layered reading: search, brief, section map, section reads |
/exa-search | Exa API | Broad web search: blogs, docs, news, companies, research papers |
/gemini-search | Gemini MCP / CLI | AI-powered broad literature discovery — searches across multiple angles, aliases, and sub-problems |
Use Gemini when you want AI-driven discovery that goes beyond keyword matching — Gemini decomposes topics into sub-problems, explores naming variants, and surfaces papers that traditional API searches may miss.
Constants
- MAX_RESULTS = 15 — Target number of papers Gemini should find.
- MIN_YEAR = 2022 — Default minimum publication year. Override with
— year: 2020-. - DEFAULT_MODEL = gemini-3-pro-preview — Strongest available Gemini option (Gemini 3 Pro). Requires
gemini-cliv0.40+ andmcp__gemini-cli__ask-geminiaccepting Gemini 3 aliases (verified). Override with— model: gemini-3-flash-preview(Gemini 3 Flash, faster, higher quota),— model: auto-gemini-3(auto-routes inside the Gemini 3 family by load), or— model: gemini-2.5-pro/gemini-2.5-flash(legacy, for users on oldergemini-cli< v0.40). The MCP tool accepts all of these verbatim.
Overrides (append to arguments):
/gemini-search "topic" — max: 20— request up to 20 papers/gemini-search "topic" — year: 2020-— papers from 2020 onward/gemini-search "topic" — code-only— only papers with open-source code/gemini-search "topic" — venues: NeurIPS,ICML,ICLR— focus on specific venues/gemini-search "topic" — model: gemini-3-flash-preview— Gemini 3 Flash (faster, higher quota, less capable than Pro)/gemini-search "topic" — model: auto-gemini-3— auto-routes within the Gemini 3 family by load/gemini-search "topic" — model: gemini-2.5-pro— legacy (only if yourgemini-cli< v0.40)
Environment & Setup
Prerequisites
- Node.js v16.0.0+
- Google Gemini CLI — installed and authenticated
npm install -g @google/gemini-cli gemini auth - gemini-mcp-tool — MCP bridge for Claude Code (jamubc/gemini-mcp-tool)
npm install -g gemini-mcp-tool
MCP Configuration
In ~/.claude.json (or %APPDATA%\Claude\claude_desktop_config.json for Claude Desktop), add:
{
"mcpServers": {
"gemini-cli": {
"command": "gemini-mcp"
}
}
}Alternative via npx (auto-install):
{
"mcpServers": {
"gemini-cli": {
"command": "npx",
"args": ["-y", "gemini-mcp-tool"]
}
}
}Or one-line setup:
claude mcp add gemini-cli -- npx -y gemini-mcp-toolAuthentication
Gemini CLI uses your Google account or an API key. Add to .claude/.env:
# .claude/.env
GEMINI_API_KEY=your-key-hereClaude Code automatically loads .claude/.env as environment variables.
- Free key from Google AI Studio
- Flash model (
gemini-2.5-flash) has a generous free tier (500 req/min)
Available MCP Tools
| Tool | Parameters | Description |
mcp__gemini-cli__ask-gemini | prompt (required), model (optional), sandbox (optional) | Ask Gemini for analysis or research; supports @file syntax |
mcp__gemini-cli__sandbox-test | prompt (required), model (optional) | Safe code execution in sandbox |
mcp__gemini-cli__ping | — | Connection test |
mcp__gemini-cli__help | — | Show Gemini CLI help |
Verify Setup
gemini --versionWorkflow
Step 1: Parse Arguments
Parse $ARGUMENTS for:
- query: The research topic (required)
- max: Override MAX_RESULTS
- year: Minimum publication year (e.g.,
2020-) - code-only: Only include papers with open-source code
- venues: Comma-separated venue filter
- model: Override DEFAULT_MODEL
Step 2: Execute Search (MCP Priority)
Priority 1 — Gemini MCP (preferred):
Try calling mcp__gemini-cli__ask-gemini with the search prompt:
mcp__gemini-cli__ask-gemini({
prompt: 'You are a research literature scout. Search comprehensively for papers on: "QUERY"
IMPORTANT CONSTRAINTS:
1. Search from MULTIPLE angles — do not just use the exact query. Decompose the topic into sub-problems, aliases, neighboring tasks, and common benchmark/settings variants.
2. Prefer papers that are genuinely relevant, not merely keyword-adjacent.
3. Include top venues, journals, surveys, recent preprints, and papers with code when available.
4. Focus on papers from MIN_YEAR onward unless older foundational work is necessary.
For EACH paper found, provide ALL of the following in this exact format:
- Title: [exact title]
- Authors: [full author list]
- Year: [publication year]
- Venue: [exact conference/journal name + year, or "arXiv preprint" if not published]
- arXiv ID: [format 2401.12345, or "N/A"]
- DOI: [if available, or "N/A"]
- Code URL: [GitHub/GitLab link if available, or "No code"]
- Summary: [one-sentence core contribution]
Find at least MAX_RESULTS papers with good coverage across:
- strong recent papers from top venues
- surveys/reviews if they exist
- papers with open-source code
- closely related variants of the topic
Format as a numbered list with all fields for each paper.',
model: 'DEFAULT_MODEL'
})Priority 2 — Gemini CLI fallback (if MCP unavailable):
If mcp__gemini-cli__ask-gemini fails or is not configured, fall back to CLI:
gemini -p 'You are a research literature scout. Search comprehensively for papers on: "QUERY"
...same prompt as above...' 2>/dev/null- Timeout: 120 seconds
- Stderr: Pipe to
/dev/null— contains hook warnings, not part of the response
When to use which:
- MCP is preferred because it integrates natively with Claude Code's tool system, handles model selection, and avoids shell escaping issues.
- CLI fallback ensures the skill works even when MCP is not configured or the MCP server process has crashed.
Step 3: Parse Results
Extract structured paper information from Gemini's response. For each paper, normalize to:
{
title, authors, year, venue,
arxiv_id, // "N/A" if not available
doi, // "N/A" if not available
code_url, // "No code" if not available
summary // one-sentence contribution
}If Gemini returns fewer papers than requested, note this but do not re-query.
Step 4: Present Results
Format results as a structured table:
| # | Title | Venue | Year | Code | Summary |
|---|-------|-------|------|------|---------|
| 1 | ... | NeurIPS 2024 | 2024 | [GitHub](url) | ... |
| 2 | ... | IEEE TWC | 2023 | No | ... |For each paper, also show:
- arXiv ID: if available (for cross-reference with
/arxiv) - DOI: if available (canonical link for published papers)
- Code: GitHub/GitLab link or "No"
Step 5: Offer Follow-up
After presenting results, suggest:
/semantic-scholar "topic" — search published venue papers with citation counts
/arxiv "arXiv:XXXX.XXXXX" — fetch specific preprint details
/research-lit "topic" — sources: gemini, semantic-scholar — combined multi-source review
/novelty-check "idea" — verify novelty against literatureKey Rules
- MCP first, CLI second. Always try
mcp__gemini-cli__ask-geminibefore falling back togemini -p. - Gemini is a discovery source, not a database. Its results may include papers it "knows about" from training data. Always cross-verify critical details (exact titles, venues, years) via
/semantic-scholaror/arxivwhen precision matters. - Do not use Gemini for citation counts. It may hallucinate citation numbers. Use Semantic Scholar for authoritative citation data.
- Pipe stderr to
/dev/nullin CLI mode — Gemini CLI emits hook warnings on stderr. - Timeout generously in CLI mode — Gemini's thorough search can take 30-60 seconds. Set timeout to 120s.
- If both MCP and CLI are unreachable, suggest using
/semantic-scholar,/arxiv, or/research-lit "topic" — sources: webas alternatives.
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- wanshuiyin/Auto-claude-code-research-in-sleep★ 18k89% same
- talhaMah56/claude_skills★ 094% same
Wrote their own version · 2
- StrinGhost/gemma-skills★ 54same name
- cu-aaii/claude-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository84 other files it gives its agents.
- skills/rules/common/agents.mdAGENTS.md
- skills/rules/zh/agents.mdAGENTS.md
- ablation-plannerSkill
- alphaxivSkill
- analyze-resultsSkill
- arxivSkill
- auto-paper-improvement-loopSkill
- auto-review-loop-llmSkill
- auto-review-loop-minimaxSkill
- auto-review-loopSkill
- citation-auditSkill
- claims-draftingSkill
- comm-lit-review-claude-singleSkill
- deepxivSkill
- dse-loopSkill
- embodiment-descriptionSkill
- exa-searchSkill
- experiment-auditSkill
- experiment-bridgeSkill
- experiment-planSkill
- experiment-queueSkill
- feishu-notifySkill
- figure-descriptionSkill
- figure-specSkill
- formula-derivationSkill
- grant-proposalSkill
- idea-creatorSkill
- idea-discovery-robotSkill
- idea-discoverySkill
- invention-structuringSkill
- jurisdiction-formatSkill
- kill-argumentSkill
- mermaid-diagramSkill
- meta-optimizeSkill
- monitor-experimentSkill
- novelty-checkSkill
- openalexSkill
- overleaf-syncSkill
- paper-claim-auditSkill
- paper-compileSkill
- paper-figureSkill
- paper-illustration-image2Skill
- paper-illustrationSkill
- paper-planSkill
- paper-posterSkill
- paper-slidesSkill
- paper-talkSkill
- paper-writeSkill
- paper-writingSkill
- patent-novelty-checkSkill
- patent-pipelineSkill
- patent-reviewSkill
- pixel-artSkill
- prior-art-searchSkill
- proof-checkerSkill
- proof-writerSkill
- qzcliSkill
- rebuttalSkill
- research-litSkill
- research-pipelineSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

