AGENT SKILL

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-10
Stars
★ 1
Forks
0

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

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

Timeout Control

  • Fixed: 7200000 milliseconds (2 hours), immutable
  • Bash tool: Always set timeout: 7200000 for double protection

Parameters

  • prompt (required): Task prompt or question
  • working_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 run for 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_MODEL environment variable)
  • Output is streamed directly from Gemini CLI

04 同仓库更多 Skills

YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

vercel-sandbox

Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include "Vercel Sandbox browser", "microVM Chrome", "agent-browser in sandbox", "browser automation on Vercel", or any task requiring Chrome in a Vercel Sandbox.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

slack

Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include "check my Slack", "what channels have unreads", "send a message to", "search Slack for", "extract from Slack", "find who said", or any task requiring programmatic Slack interaction.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

electron

Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include "automate Slack app", "control VS Code", "interact with Discord app", "test this Electron app", "connect to desktop app", or any task requiring automation of a native Electron application.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

dogfood

Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to "dogfood", "QA", "exploratory test", "find issues", "bug hunt", "test this app/site/platform", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

★ 1
YYC-Cube
YYC-Cube/YYC3-Knowledge-Base

shadcn

Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", "switch to --preset", and for building a design system or applying a DESIGN.md or brand spec to shadcn/ui.

★ 1