iamladi

gemini

Use when the user asks to run Gemini CLI for code review, plan review, or big context (>200k) processing. Ideal for comprehensive analysis requiring large context windows. Uses Gemini 3 Pro by default for state-of-the-art reasoning and coding.

iamladi 1 Updated 7mo ago

Resources

1
GitHub

Install

npx skillscat add iamladi/cautious-computing-machine-sdlc-plugin/gemini

Install via the SkillsCat registry.

About this skill

This skill runs the Gemini CLI to perform code review, plan analysis, or processing of large contexts exceeding 200k tokens. It addresses the need for AI-assisted analysis tasks that require extended context windows, prompting users to select a model and applying appropriate approval modes to prevent hangs in non-interactive shells. Developers should use it when delegating comprehensive review or large-context processing tasks to Gemini from within agent workflows.

SKILL.md

Gemini Skill

Priorities

Approval mode correctness > Model selection > Background execution safety

Goal

Execute Gemini CLI for comprehensive code review, plan analysis, or large-context processing tasks. Ask user for model selection via AskUserQuestion. Choose approval mode based on execution context (yolo for background, default for interactive terminal only). Load CLI reference for detailed command patterns, troubleshooting, and use cases.

Constraints

  • NEVER use --approval-mode default in background or non-interactive shells (Claude Code tool calls). It hangs indefinitely waiting for user input.
  • ALWAYS use --approval-mode yolo for automated/background tasks or wrap with timeout: timeout 300 gemini ...
  • Ask user for model selection via AskUserQuestion before running commands.
  • Requires Gemini CLI v0.16.0+ for Gemini 3 model support.
  • After Gemini completes, inform user they can start a new session for follow-up analysis.

Model Selection

Ask user which model to use via AskUserQuestion:

Model Best for Context window Key features
gemini-3-pro-preview Flagship: Complex reasoning, coding, agentic tasks 1M input / 64k output Vibe coding, 76.2% SWE-bench, $2-4/M input
gemini-3-flash Sub-second latency, speed-critical applications 1M input / 64k output Distilled from 3 Pro, TPU-optimized
gemini-2.5-pro Legacy: Strong all-around performance 1M input / 65k output Thinking mode, mature stability
gemini-2.5-flash Legacy: Cost-efficient, high-volume tasks 1M input / 65k output Best price ($0.15/M), thinking mode
gemini-2.5-flash-lite Legacy: Fastest processing, high throughput 1M input / 65k output Maximum speed, minimal latency

Gemini 3 Advantages: 35% higher accuracy in software engineering, state-of-the-art on SWE-bench (76.2%), knowledge cutoff January 2025.

References

Load CLI reference for detailed command patterns, troubleshooting hung processes, and common use cases:

  • Glob(pattern: "**/sdlc/**/skills/gemini/references/gemini-cli-reference.md", path: "~/.claude/plugins") → Read result

Arguments

$ARGUMENTS