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.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- gemini
- description
- Execute Gemini CLI for AI-powered code analysis and generation. Use when you need to leverage Google's Gemini models for complex reasoning tasks.
02 资源文件 1
- 脚本scripts/gemini.py3.6 KB
03 SKILL.md 正文
Gemini CLI Integration
Overview
Execute Gemini CLI commands with support for multiple models and flexible prompt input. Integrates Google's Gemini AI models into CodeBuddy workflows.
When to Use
- Complex reasoning tasks requiring advanced AI capabilities
- Code generation and analysis with Gemini models
- Tasks requiring Google's latest AI technology
- Alternative perspective on code problems
Usage
Mandatory: Run via uv with fixed timeout 7200000ms (foreground):
uv run ~/.codebuddy/skills/gemini/scripts/gemini.py "<prompt>" [working_dir]
Optional (direct execution or using Python):
~/.codebuddy/skills/gemini/scripts/gemini.py "<prompt>" [working_dir]
# or
python3 ~/.codebuddy/skills/gemini/scripts/gemini.py "<prompt>" [working_dir]
Environment Variables
- GEMINI_MODEL: Configure model (default:
gemini-3-pro-preview)- Example:
export GEMINI_MODEL=gemini-3
- Example:
Timeout Control
- Fixed: 7200000 milliseconds (2 hours), immutable
- Bash tool: Always set
timeout: 7200000for double protection
Parameters
prompt(required): Task prompt or questionworking_dir(optional): Working directory (default: current directory)
Return Format
Plain text output from Gemini:
Model response text here...
Error format (stderr):
ERROR: Error message
Invocation Pattern
When calling via Bash tool, always include the timeout parameter:
Bash tool parameters:
- command: uv run ~/.codebuddy/skills/gemini/scripts/gemini.py "<prompt>"
- timeout: 7200000
- description: <brief description of the task>
Alternatives:
# Direct execution (simplest)
- command: ~/.codebuddy/skills/gemini/scripts/gemini.py "<prompt>"
# Using python3
- command: python3 ~/.codebuddy/skills/gemini/scripts/gemini.py "<prompt>"
Examples
Basic query:
uv run ~/.codebuddy/skills/gemini/scripts/gemini.py "explain quantum computing"
# timeout: 7200000
Code analysis:
uv run ~/.codebuddy/skills/gemini/scripts/gemini.py "review this code for security issues: $(cat app.py)"
# timeout: 7200000
With specific working directory:
uv run ~/.codebuddy/skills/gemini/scripts/gemini.py "analyze project structure" "/path/to/project"
# timeout: 7200000
Using python3 directly (alternative):
python3 ~/.codebuddy/skills/gemini/scripts/gemini.py "your prompt here"
Notes
- Recommended: Use
uv runfor automatic Python environment management (requires uv installed) - Alternative: Direct execution
./gemini.py(uses system Python via shebang) - Python implementation using standard library (zero dependencies)
- Cross-platform compatible (Windows/macOS/Linux)
- PEP 723 compliant (inline script metadata)
- Requires Gemini CLI installed and authenticated
- Supports all Gemini model variants (configure via
GEMINI_MODELenvironment variable) - Output is streamed directly from Gemini CLI
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.