wanshuiyin/auto-claude-code-research-in-sleep/gemini-search
Claude Code and agent skill by wanshuiyin/auto-claude-code-research-in-sleep
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install wanshuiyin/auto-claude-code-research-in-sleep/gemini-searchSKILL.md
The same SKILL.md was published earlier as wanshuiyin/auto-claude-code-research-in-sleep/gemini-search.
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 = auto-gemini-3 — Auto-routes within the Gemini 3 family (Pro / Flash) by server-side capacity. Required by
mcp__gemini-cli__ask-geminiandgemini-cliv0.40+; explicitgemini-3-pro-previewis silently downgraded to `gemini-2.5-pro` on OAuth-personal / Google One AI Pro accounts when capacity is exhausted. Override with— model: gemini-3-flash-preview(Gemini 3 Flash explicit, faster, higher quota), or— model: gemini-2.5-pro/gemini-2.5-flash(legacy, only 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
``bash npm install -g @google/gemini-cli gemini auth ``
- gemini-mcp-tool — MCP bridge for Claude Code (jamubc/gemini-mcp-tool)
``bash npm install -g gemini-mcp-tool ``
MCP Configuration
In ~/.claude.json (or %APPDATA%\Claude\claude_desktop_config.json for Claude Desktop), add:
Alternative via npx (auto-install):
Or one-line setup:
Authentication
Gemini CLI uses your Google account or an API key. Reuse an existing Google account login, or set an API key in the same shell before starting Claude Code so the MCP process inherits it:
A separate tool-shell export does not update an already running host or MCP process. If you keep credentials in an environment file, load it explicitly before starting the host rather than relying on automatic .env loading.
- 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
Workflow
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:
Priority 2 — Gemini CLI fallback (if MCP unavailable):
If mcp__gemini-cli__ask-gemini fails or is not configured, fall back to CLI:
- 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:
If Gemini returns fewer papers than requested, note this but do not re-query.
Step 4: Present Results
Format results as a structured table:
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:
Key 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/null` in 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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gemini-search/SKILL.md
Popularity
- Repository stars
- 19,246
- Repository forks
- 1,548
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wanshuiyin/auto-claude-code-research-in-sleep/gemini-search)