Gemini CLI integration
Uses Gemini CLI to analyze code, generate content, or automate tasks with configurable models and approval modes. Triggered when you request AI assistance for complex analysis, code generation, or when you want to resume a previous Gemini session.
/plugin marketplace add jongwony/cc-plugin/plugin install google@cc-pluginThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/prompting-guide.md-m flag)AskUserQuestion) which specific model to use if the task requires a particular modeldefault: For read-only analysis (prompt for all tool approvals)auto_edit: For editing tasks (auto-approve edit tools)yolo: For full automation (auto-approve all tools)-m, --model <MODEL>--approval-mode <default|auto_edit|yolo>-s, --sandbox (if sandbox environment is needed)--allowed-tools <tool1,tool2> (to allow specific tools without confirmation)--include-directories <dir1,dir2> (to include additional directories)gemini "your prompt here" (one-shot mode)echo "your prompt" | gemini (stdin mode)-i, --prompt-interactive:
gemini -i "initial prompt" (starts interactive mode after executing prompt)| Use case | Approval mode | Key flags |
|---|---|---|
| Read-only review or analysis | default | --approval-mode default |
| Apply local edits | auto_edit | --approval-mode auto_edit |
| Full automation | yolo | --approval-mode yolo or -y |
| Resume most recent session | Inherited from original | --resume latest |
| Resume specific session | Inherited from original | --resume <index> |
| List available sessions | N/A | --list-sessions |
| Interactive mode | As needed | -i "prompt" |
| Sandbox environment | As needed | -s or --sandbox |
gemini --resume latest "new prompt"gemini --resume 5 "new prompt" (use session index)gemini --list-sessionsgemini --delete-session <index>gemini command, immediately use AskUserQuestion to confirm next steps, collect clarifications, or decide whether to resume the session.gemini --resume latest "new prompt" to continue the previous conversation.Check available models with gemini --help or user configuration.
gemini command exits non-zero; request direction before retrying.-y/--yolo, --approval-mode yolo), ask the user for permission using AskUserQuestion unless already given.AskUserQuestion.gemini --extension '' (empty string)gemini --list-extensionsgemini -e extension1,extension2 "prompt"gemini mcp add/remove/list--allowed-mcp-server-names server1,server2For advanced prompting strategies to improve response quality and accuracy, refer to @references/prompting-guide.md
Topics covered:
When to consult: When you need to craft complex prompts, improve response quality, or leverage Gemini's advanced reasoning capabilities.
Before executing a gemini command, ensure the prompt is well-structured:
AskUserQuestion to gather necessary information before crafting the prompt.AskUserQuestion to confirm next steps or gather feedback for prompt refinement.This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.