gemini-cli
Installation
SKILL.md
Gemini Assistant
Use the Gemini CLI (gemini) to get a second opinion, delegate work, request code review, do web research, or analyze codebase architecture using Google's Gemini models.
Defaults
- Model: use repo-root
RAZORBACK.mdmodel routing when present. If absent, use a reviewer-grade model for strategy/escalation work and a faster model for mechanical work. - Output:
-o textfor human-readable (use-o jsonwhen you need stats or structured parsing) - Always append:
2>/dev/nullto suppress stderr noise (auth messages, debug info) and get clean stdout only - Timeout: Always set the Bash tool's
timeoutparameter — minimum 600000ms (10 min) for simple queries, 1200000ms (20 min) for delegation/refactoring tasks, 1800000ms (30 min) when Gemini is doing deep analysis or itself calling out to another model. Err generous — a single timeout wastes more time and tokens than a longer wait. Gemini also has a native--timeout <ms>flag you can pair with this for belt-and-suspenders. - Working directory: Gemini operates on whatever directory it's launched from — it has no
-Cflag like Codex. If the target code isn't in the current working directory, alwayscdto the target directory first usingcd /path/to/project && gemini .... Without this, Gemini will waste its entire session trying to find the files. - Forceful prompts: Gemini sometimes presents plans and asks for confirmation even in yolo mode. Use directive language: "Apply now", "Start immediately", "Do this without asking for confirmation."
For command snippets below, set GEMINI_MODEL before invoking: