gemini
Execute Gemini CLI for AI-powered code analysis and generation. Use when you need to leverage Google's Gemini models for complex reasoning tasks.
Security Assessment
About gemini
The Gemini skill integrates Google's Gemini AI models into Claude Code workflows, enabling users to execute Gemini CLI commands for complex reasoning tasks and advanced code generation and analysis. This skill allows users to leverage the power of Gemini's latest AI technology to solve intricate problems in code and other domains, offering unique insights and solutions. By executing commands through the Gemini CLI, users can tap into cutting-edge AI models for a variety of tasks that require high-level cognitive processing and sophisticated reasoning capabilities.
Key features of the Gemini skill include support for multiple Gemini models, flexible input prompts, and a robust execution environment. The skill is designed to be simple to integrate and use within existing workflows, providing a straightforward command-line interface (CLI) for running tasks. It offers a mandatory 2-hour timeout to ensure proper handling of long-running processes. The skill is highly configurable, allowing users to specify the model they wish to use via the `GEMINI_MODEL` environment variable and control execution via Bash or Python commands. Whether you're analyzing code for security vulnerabilities or asking complex AI-driven questions, Gemini delivers consistent and reliable results.
This skill is ideal for developers, data scientists, and engineers who require a versatile AI-powered tool to assist with tasks such as code generation, code analysis, and solving complex logical problems. It is also useful for those seeking alternative perspectives on coding challenges or those who need advanced AI for reasoning tasks. By integrating Gemini into their workflows, users can streamline their processes and enhance their problem-solving capabilities with state-of-the-art AI technology.
FAQ
How do I use the Gemini skill?
To use the Gemini skill, run the command via `uv` with the prompt and optional working directory. The basic command is `uv run ~/.claude/skills/gemini/scripts/gemini.py "<prompt>" [working_dir]`. For direct execution, you can also run it with `python3`.
What is the default timeout for Gemini CLI commands?
The default timeout for all Gemini CLI commands is fixed at 7200000 milliseconds (2 hours). This is an immutable setting for tasks executed using `uv`.
Can I run Gemini on Windows, macOS, or Linux?
Yes, Gemini is cross-platform compatible and can be run on Windows, macOS, and Linux without any issues.
What model variants are supported by Gemini?
Gemini supports all variants of the Gemini model, and you can configure the model by setting the `GEMINI_MODEL` environment variable. The default model is `gemini-3-pro-preview`.
Is there any dependency or requirement to use Gemini?
Gemini requires the Gemini CLI to be installed and authenticated. Additionally, `uv` should be installed if you prefer using the recommended execution method, though direct execution via Python is also possible.
Install gemini
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
cexll/myclaude