content/skills/ai-llm-skills/gemini/SKILL.md
Execute Gemini CLI for code generation, review, analysis, and web research. Use when tasks need a second AI perspective, Google Search grounding, codebase architecture analysis, or current web information. Trigger whenever the user mentions gemini, asks for Google Search results, needs real-time web data, wants codebase investigation, or requests a different AI's opinion on code.
npx skillsauth add bahayonghang/my-claude-code-settings geminiInstall 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.
Run Gemini CLI for $ARGUMENTS.
geminiGEMINI_MODELgemini-3.1-pro-previewGEMINI_FAST_MODELgemini-3.1-flash-preview-m <model>GEMINI_MODEL in the shell or model.name in Gemini CLI settings.jsonauto or gemini-2.5-procommand -v geminiGet-Command gemininpm install -g @google/gemini-cligemini --versiongemini setup or switch GEMINI_MODEL to auto or gemini-2.5-pro.Default command examples in this skill use explicit model literals so the planned run header and the CLI invocation stay in sync.
Use shell variables or config only when you intentionally want to honor an override outside the default skill path.
GEMINI_MODEL="${GEMINI_MODEL:-gemini-3.1-pro-preview}"
GEMINI_FAST_MODEL="${GEMINI_FAST_MODEL:-gemini-3.1-flash-preview}"
if (-not $env:GEMINI_MODEL) { $env:GEMINI_MODEL = "gemini-3.1-pro-preview" }
if (-not $env:GEMINI_FAST_MODEL) { $env:GEMINI_FAST_MODEL = "gemini-3.1-flash-preview" }
Official override order for the effective model:
--modelGEMINI_MODELsettings.json value at model.nameautoBefore any gemini invocation, emit this text block exactly once:
Planned AI Run
- Tool: Gemini CLI
- Mode: <generate | analyze | review | fast-path | compatibility-fallback | structured-output>
- Model: <literal model id>
- Runtime: <approval=yolo, output=text | approval=yolo, output=json>
- Search: <grounded when requested | off>
- Access: <yolo | review-safe>
- Workdir: <path or current>
Rules:
-m flag.grounded when requested only when the task depends on Gemini's web or
Google-grounded capabilities; otherwise use off.compatibility-fallback when dropping to gemini-2.5-pro or auto, and
say so in the header.When a task depends on Google Search or web_fetch, keep the first pass
read-only by default.
$ARGUMENTS is empty, ask the user for the task description.gemini-3.1-pro-preview.gemini-3.1-flash-preview for fast or lower-priority tasks.gemini-2.5-pro or auto only as explicit compatibility fallbacks.Planned AI Run
- Tool: Gemini CLI
- Mode: <generate | analyze | review | fast-path | compatibility-fallback | structured-output>
- Model: <literal model id>
- Runtime: <approval=yolo, output=text | approval=yolo, output=json>
- Search: <grounded when requested | off>
- Access: <yolo | review-safe>
- Workdir: <path or current>
web_fetch, start with a
research-only pass and keep the prompt read-only:
gemini "$ARGUMENTS. Use grounded search when needed. Collect sources and facts only. Do not modify files." -m gemini-3.1-pro-preview --approval-mode yolo -o text 2>&1
gemini "$ARGUMENTS" -m gemini-3.1-pro-preview --approval-mode yolo -o text 2>&1
gemini "$ARGUMENTS" -m gemini-3.1-flash-preview --approval-mode yolo -o text 2>&1
gemini "$ARGUMENTS" -m gemini-2.5-pro --approval-mode yolo -o text 2>&1
Mode: structured-output, set Runtime: approval=yolo, output=json, and run:gemini "$ARGUMENTS" -m gemini-3.1-pro-preview --approval-mode yolo -o json 2>&1
gemini-2.5-pro or auto and mark the header as Mode: compatibility-fallback.# 1. Generate
gemini "Create [description]" -m gemini-3.1-pro-preview --approval-mode yolo -o text
# 2. Review
gemini "Review [file] for bugs and security issues" -m gemini-3.1-pro-preview -o text
# 3. Fix
gemini "Fix these issues in [file]: [list]. Apply now." -m gemini-3.1-pro-preview --approval-mode yolo -o text
Use a shell-appropriate background command.
gemini "[long task]" -m gemini-3.1-pro-preview --approval-mode yolo -o text > gemini.log 2>&1 &
echo $!
Start-Process gemini -ArgumentList @("[long task]", "-m", "gemini-3.1-pro-preview", "--approval-mode", "yolo", "-o", "text") -RedirectStandardOutput "gemini.log" -RedirectStandardError "gemini.err"
Use both AIs for highest quality. Claude can generate while Gemini reviews, or the reverse, to catch different classes of issues.
references/reference.md - CLI flags, configuration, model precedence, session managementreferences/templates.md - prompt templates for common operationsreferences/patterns.md - integration patterns and workflows using the shared model variablesreferences/tools.md - Gemini built-in tools such as google_web_search, codebase_investigator, and save_memorytools
文献深度解读助手,像研究生导师一样交互式解读 Zotero 库中的学术论文,面向计算机科学、深度学习、自动化等方向(个人向)。当用户提供文献题目、DOI、PDF 或要求解读某篇论文时触发,通过 Zotero MCP 优先获取全文,并根据用户意图自动选择快速筛选、导师深读或研究复盘模式。完整深读时先完成叙事类型判断、阅读前预检、novelty 校准和作者思考路径重建,再整体概览,并基于图例、正文和表格逐图详细解读(Zotero MCP 无法提取 PDF 图片,解读基于文字信息,必要时提醒上传图片)。适用于:(1)快速判断文献是否值得深读 (2)深入理解某篇论文 (3)学习文章中的方法和技术 (4)批判性分析研究设计 (5)寻找研究灵感。需要多篇论文综合、对比或找研究空白,或 arXiv/DOI 批量规范化时,改用 paper-workbench。
development
Review Codex, Claude, OpenAI, or other agent skill directories as reusable capability packages. Use when asked to audit, review, improve, score, rewrite, debrand, package, or document a SKILL.md, skill package, marketplace skill, or agent skill directory, especially when the user wants a comprehensive findings-first report with concrete patch recommendations and validation steps.
development
Turn vague or complex Codex tasks into strong `/goal` commands with outcome, verification, constraints, boundaries, iteration policy, completion evidence, and pause/block conditions. Use when the user asks for Codex goal instructions, Goal 指令, 目标指令, `/goal` prompts, 中文 Goal 模板, plan-to-goal interviews, success criteria, verification commands, or bounded agent work definitions.
tools
Write, debug, and validate ast-grep structural code search rules. Use this skill when the user needs syntax-aware code search, AST pattern matching, structural refactor discovery, language-construct queries, or searches that plain text tools like rg can miss, such as finding functions with particular descendants, calls inside specific contexts, missing error handling, React hook shapes, decorators, or other Tree-sitter-backed code structures.