Loading...
Loading...
Wield Google's Gemini CLI as a powerful auxiliary tool for code generation, review, analysis, and web research. Use when tasks benefit from a second AI perspective, current web information via Google Search, codebase architecture analysis, or parallel code generation. Also use when user explicitly requests Gemini operations.
npx skill4agent add bahayonghang/my-claude-code-settings gemini-clicodebase_investigatorcommand -v gemini || which geminigemini "[prompt]" --approval-mode yolo -o text 2>&1--approval-mode yolo--yolo-o text-o json-m gemini-2.5-flash-m auto--approval-mode yoloNote:/--yolois deprecated. Use-yinstead. Other modes:--approval-mode yolo,default.auto_edit
-o json{
"response": "actual content",
"stats": {
"models": { "tokens": {...} },
"tools": { "byName": {...} }
}
}gemini "Create [description] with [features]. Output complete file content." --approval-mode yolo -o textgemini "Review [file] for: 1) features, 2) bugs/security issues, 3) improvements" -o textgemini "Fix these bugs in [file]: [list]. Apply fixes now." --approval-mode yolo -o textgemini "Generate [Jest/pytest] tests for [file]. Focus on [areas]." --approval-mode yolo -o textgemini "Generate JSDoc for all functions in [file]. Output as markdown." --approval-mode yolo -o textgemini "Use codebase_investigator to analyze this project" -o textgemini "What are the latest [topic]? Use Google Search." -o textgemini "[prompt]" -m gemini-2.5-flash -o text-m gemini-2.5-flashgemini --version~/.gemini/settings.json# 1. Generate
gemini "Create [code]" --approval-mode yolo -o text
# 2. Review (Gemini reviews its own work)
gemini "Review [file] for bugs and security issues" -o text
# 3. Fix identified issues
gemini "Fix [issues] in [file]. Apply now." --approval-mode yolo -o textgemini "[long task]" --approval-mode yolo -o text 2>&1 &
# Monitor with BashOutput tool| Model | Use Case |
|---|---|
| Smart routing — auto-selects Flash or Pro based on task complexity |
| Complex reasoning tasks |
| Quick tasks, lower latency |
| Latest capabilities (requires Google AI Ultra or paid API key) |
| Latest Flash model (requires Preview Features enabled) |
.gemini/GEMINI.mdgemini --list-sessionsecho "follow-up" | gemini -r [index] -o textreference.mdtemplates.mdpatterns.mdtools.md