Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计提醒

geminiGemini 助手

Agent Skill

gemini 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,776

周安装

324

GitHub Stars

26,420

下载量

2,592
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini(Gemini 助手)
来源仓库:https://github.com/davila7/claude-code-templates
仓库路径:skills/gemini
安装命令:
npx skills add https://github.com/davila7/claude-code-templates --skill gemini
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/davila7/claude-code-templates --skill gemini

简介

gemini 专为大上下文处理设计,适用于超长代码库、架构文档或多文件关联分析。

  • 支持代码审查、计划评审与复杂推理任务,提升长文本理解深度。
  • 使用时需避免在非交互式环境中启用默认审批模式,防止流程挂起。
  • 建议明确任务边界与输出格式要求,以匹配不同 AI 引擎的引用风格。
  • gemini 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Gemini Skill Guide

When to Use Gemini

  • WHEN ASKED TO BE ACTIVATED
  • Code Review: Comprehensive code reviews across multiple files
  • Plan Review: Analyzing architectural plans, technical specifications, or project roadmaps
  • Big Context Processing: Tasks requiring >200k tokens of context (entire codebases, documentation sets)
  • Multi-file Analysis: Understanding relationships and patterns across many files

⚠️ Critical: Background/Non-Interactive Mode Warning

NEVER use --approval-mode default in background or non-interactive shells (like Claude Code tool calls). It will hang indefinitely waiting for approval prompts that cannot be provided.

For automated/background reviews:

  • ✅ Use --approval-mode yolo for fully automated execution
  • ✅ OR wrap with timeout: timeout 300 gemini...
  • ❌ NEVER use --approval-mode default without interactive terminal

Symptoms of hung Gemini:

  • Process running 20+ minutes with 0% CPU usage
  • No network activity
  • Process state shows 'S' (sleeping)

Fix hung process:

# Check if hung
ps aux | grep gemini | grep -v grep

# Kill if necessary
pkill -9 -f "gemini.*gemini-3-pro-preview"

Running a Task

  1. Ask the user (via AskUserQuestion) which model to use in a single prompt. Available models:

- gemini-3-pro-preview ⭐ (flagship model, best for coding & complex reasoning, 35% better at software engineering than 2.5 Pro) - gemini-3-flash (sub-second latency, distilled from 3 Pro, best for speed-critical tasks) - gemini-2.5-pro (legacy option, strong all-around performance) - gemini-2.5-flash (legacy option, cost-efficient with thinking capabilities) - gemini-2.5-flash-lite (legacy option, fastest processing)

  1. Select the approval mode based on the task:

- default: Prompt for approval (⚠️ ONLY for interactive terminal sessions) - auto_edit: Auto-approve edit tools only (for code reviews with suggestions) - yolo: Auto-approve all tools (✅ REQUIRED for background/automated tasks)

  1. Assemble the command with appropriate options:

- -m, --model <MODEL> - Model selection - --approval-mode <default|auto_edit|yolo> - Control tool approval - -y, --yolo - Alternative to --approval-mode yolo - -i, --prompt-interactive "prompt" - Execute prompt and continue interactively - --include-directories <DIR> - Additional directories to include in workspace - -s, --sandbox - Run in sandbox mode for isolation

  1. For background/automated tasks, ALWAYS use --approval-mode yolo or add timeout wrapper. NEVER use default in non-interactive shells.
  2. Run the command and capture the output. For background/automated mode: # Recommended: Use yolo for background tasks gemini -m gemini-3-pro-preview --approval-mode yolo "Review this codebase for security issues" # Or with timeout (5 min limit) timeout 300 gemini -m gemini-3-pro-preview --approval-mode yolo "Review this codebase"
  3. For interactive sessions with an initial prompt: gemini -m gemini-3-pro-preview -i "Review the authentication system" --approval-mode auto_edit
  4. After Gemini completes, inform the user: "The Gemini analysis is complete. You can start a new Gemini session for follow-up analysis or continue exploring the findings."

Quick Reference

Use caseApproval modeKey flags
Background code reviewyolo-m gemini-3-pro-preview --approval-mode yolo
Background analysisyolo-m gemini-3-pro-preview --approval-mode yolo
Background with timeoutyolotimeout 300 gemini -m gemini-3-pro-preview --approval-mode yolo
Interactive code reviewdefault-m gemini-3-pro-preview --approval-mode default (interactive terminal only)
Code review with auto-editsauto_edit-m gemini-3-pro-preview --approval-mode auto_edit
Automated refactoringyolo-m gemini-3-pro-preview --approval-mode yolo
Speed-critical backgroundyolo-m gemini-3-flash --approval-mode yolo
Cost-optimized backgroundyolo-m gemini-2.5-flash --approval-mode yolo
Multi-directory analysisyolo (if background)--include-directories <DIR1> --include-directories <DIR2>
Interactive with promptauto_edit or default-i "prompt" --approval-mode <mode>

Model Selection Guide

ModelBest forContext windowKey features
gemini-3-pro-previewFlagship model: Complex reasoning, coding, agentic tasks1M input / 64k outputVibe coding, 76.2% SWE-bench, $2-4/M input
gemini-3-flashSub-second latency, speed-critical applications1M input / 64k outputDistilled from 3 Pro, TPU-optimized
gemini-2.5-proLegacy: Strong all-around performance1M input / 65k outputThinking mode, mature stability
gemini-2.5-flashLegacy: Cost-efficient, high-volume tasks1M input / 65k outputBest price ($0.15/M), thinking mode
gemini-2.5-flash-liteLegacy: Fastest processing, high throughput1M input / 65k outputMaximum speed, minimal latency

Gemini 3 Advantages: 35% higher accuracy in software engineering, state-of-the-art on SWE-bench (76.2%), GPQA Diamond (91.9%), and WebDev Arena (1487 Elo). Knowledge cutoff: January 2025.

Coming Soon: gemini-3-deep-think for ultra-complex reasoning with enhanced thinking capabilities.

Common Use Cases

Code Review (Background/Automated)

# For background execution (Claude Code, CI/CD, etc.)
gemini -m gemini-3-pro-preview --approval-mode yolo \
  "Perform a comprehensive code review focusing on:
   1. Security vulnerabilities
   2. Performance issues
   3. Code quality and maintainability
   4. Best practices violations"

# With timeout safety (5 minutes)
timeout 300 gemini -m gemini-3-pro-preview --approval-mode yolo \
  "Perform a comprehensive code review..."

Plan Review (Background/Automated)

# For background execution
gemini -m gemini-3-pro-preview --approval-mode yolo \
  "Review this architectural plan for:
   1. Scalability concerns
   2. Missing components
   3. Integration challenges
   4. Alternative approaches"

Big Context Analysis (Background/Automated)

# For background execution
gemini -m gemini-3-pro-preview --approval-mode yolo \
  "Analyze the entire codebase to understand:
   1. Overall architecture
   2. Key patterns and conventions
   3. Potential technical debt
   4. Refactoring opportunities"

Interactive Code Review (Terminal Only)

# ONLY use default mode in interactive terminal
gemini -m gemini-3-pro-preview --approval-mode default \
  "Review the authentication flow for security issues"

Following Up

  • Gemini CLI sessions are typically one-shot or interactive. Unlike Codex, there's no built-in resume functionality.
  • For follow-up analysis, start a new Gemini session with context from previous findings.
  • When proposing follow-up actions, restate the chosen model and approval mode.
  • Use AskUserQuestion after each Gemini command to confirm next steps or gather clarifications.

Error Handling

  • Stop and report failures whenever gemini --version or a Gemini command exits non-zero.
  • Request direction before retrying failed commands.
  • Before using high-impact flags (--approval-mode yolo, -y, --sandbox), ask the user for permission using AskUserQuestion unless already granted.
  • When output includes warnings or partial results, summarize them and ask how to adjust using AskUserQuestion.

Troubleshooting Hung Gemini Processes

Detection

# Check for hung processes
ps aux | grep -E "gemini.*gemini-3" | grep -v grep

# Look for these symptoms:
# - Process running 20+ minutes
# - CPU usage at 0%
# - Process state 'S' (sleeping)
# - No network connections

Diagnosis

# Get detailed process info
ps -o pid,etime,pcpu,stat,command -p <PID>

# Check network activity
lsof -p <PID> 2>/dev/null | grep -E "(TCP|ESTABLISHED)" | wc -l
# If result is 0, process is hung

Resolution

# Kill hung Gemini processes
pkill -9 -f "gemini.*gemini-3-pro-preview"

# Or kill specific PID
kill -9 <PID>

# Verify cleanup
ps aux | grep gemini | grep -v grep

Prevention

  • ALWAYS use --approval-mode yolo for background/automated tasks
  • Add timeout wrapper for safety: timeout 300 gemini...
  • Never use --approval-mode default in non-interactive shells
  • Monitor first run with ps to ensure process completes

Tips for Large Context Processing

  1. Be specific: Provide clear, structured prompts for what to analyze
  2. Use include-directories: Explicitly specify all relevant directories
  3. Choose the right model:

- Use gemini-3-pro-preview for complex reasoning, coding tasks, and maximum analysis quality (recommended default) - Use gemini-3-flash for speed-critical tasks requiring sub-second response times - Use gemini-2.5-flash for cost-optimized high-volume processing

  1. Leverage Gemini 3's strengths: 35% better at software engineering tasks, exceptional at agentic workflows and vibe coding
  2. Break down complex tasks: Even with large context, structured analysis is more effective
  3. Save findings: Ask Gemini to output structured reports that can be saved for reference

CLI Version

Requires Gemini CLI v0.16.0 or later for Gemini 3 model support. Check version: gemini --version

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

25.94%
按下载量换算672

Claude Code

25.55%
按下载量换算662

Cursor

16.4%
按下载量换算425

Antigravity

13.65%
按下载量换算354

Gemini CLI

7.01%
按下载量换算182

Codex

3.3%
按下载量换算86

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/davila7/claude-code-templates --skill gemini;npx skills add davila7/claude-code-templates --skill "gemini" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills