
Gemini Delegation
Route agent work to Google Gemini CLI when delegation-core picks Gemini or you need roughly 1M-token context windows.
Install
npx skills add https://github.com/athola/claude-night-market --skill gemini-delegationWhat is this skill?
- Documents gemini-2.5-flash-exp, gemini-2.5-pro-exp, and gemini-exp-1206 with context and use-case matrix
- CLI flags: -p prompt, --model, --output-format json, -s sandbox, and @path context inclusion
- Cost reference per 1M tokens (Flash vs Pro input/output)
- Troubleshooting for HTTP 429 rate limits, oversized context, and regional model availability
- Implements delegation-core for Google models when selected or when 1M+ context is required
Adoption & trust: 1 installs on skills.sh; 304 GitHub stars; 3/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
Recommended Skills
Microsoft Foundrymicrosoft/azure-skills
Azure Aimicrosoft/azure-skills
Azure Hosted Copilot Sdkmicrosoft/azure-skills
Lark Eventlarksuite/cli
Running Claude Code Via Litellm Copilotxixu-me/skills
Setup Matt Pocock Skillsmattpocock/skills
Journey fit
Primary fit
Fits Build because it wires an external model CLI into your agent workflow rather than shipping or growing the product. Integrations is the shelf for third-party model CLIs, context patterns (@path globs), and delegation hooks alongside other agent backends.
Common Questions / FAQ
Is Gemini Delegation safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Gemini Delegation
# Gemini-Specific Configuration ## Model Reference | Model | Use Case | Context | |-------|----------|---------| | `gemini-2.5-flash-exp` | Fast, simple tasks | Up to 1M tokens | | `gemini-2.5-pro-exp` | Complex analysis | Up to 1M tokens | | `gemini-exp-1206` | Experimental features | Varies | ## CLI Options | Flag | Purpose | |------|---------| | `-p "prompt"` | Specify prompt | | `--model <name>` | Select model | | `--output-format json` | JSON output | | `-s` | Sandbox mode | | `@path` | Include file in context | ## Context Inclusion Patterns - Use `@path` to include file contents - Use `@directory/**/*` for recursive inclusion - Gemini handles large contexts well (1M+ tokens) ## Cost Reference (per 1M tokens) - Input: $0.50 (Pro), $0.075 (Flash) - Output: $1.50 (Pro), $0.30 (Flash) ## Gemini-Specific Troubleshooting ### Rate Limit (HTTP 429) - Free tier: ~60 RPM, ~1000 requests/day - Consider `gemini-2.5-flash` to reduce RPM usage - Use `~/conjure/hooks/gemini/status.sh` for quick check ### Context Too Large - Use selective globbing: `src/**/*.py` instead of `src/**/*` - Pre-process: `rg -v "^\s*#" file.py` to remove comments (or `grep -v`) ### Region Issues - Some models available only in certain regions - Check API documentation for availability --- name: gemini-delegation description: Delegates tasks to Gemini CLI implementing delegation-core for Google's models. Use when delegation-core selects Gemini or 1M+ token context is needed. alwaysApply: false category: delegation-implementation tags: - gemini - cli - delegation - google - large-context dependencies: - delegation-core tools: - gemini-cli usage_patterns: - gemini-cli-integration - large-context-analysis - batch-processing complexity: intermediate model_hint: standard estimated_tokens: 600 progressive_loading: true modules: - modules/gemini-specifics.md references: - delegation-core/../../leyline/skills/authentication-patterns/SKILL.md - delegation-core/../../leyline/skills/quota-management/SKILL.md - delegation-core/../../leyline/skills/usage-logging/SKILL.md - delegation-core/../../leyline/skills/error-patterns/SKILL.md --- ## Table of Contents - [Overview](#overview) - [When to Use](#when-to-use) - [Prerequisites](#prerequisites) - [Quick Start](#quick-start) - [Gemini-Specific Details](#gemini-specific-details) # Gemini CLI Delegation ## Overview This skill implements `conjure:delegation-core` for the Gemini CLI. It provides Gemini-specific authentication, quota management, and command construction. For shared delegation patterns, see `Skill(conjure:delegation-core)`. ## When To Use - After `Skill(conjure:delegation-core)` determines Gemini is suitable - When you need Gemini's large context window (1M+ tokens) - For batch processing, summarization, or pattern extraction tasks - If the `gemini` CLI is installed and authenticated ## Prerequisites **Installation:** ```bash # Verify installation gemini --version # Check authentication gemini auth status # Login if needed gemini auth login # Or set API key export GEMINI_API_KEY="your-key" ``` **Verification:** Run the command with `--help` flag to verify availability. ## Quick Start ### Basic Command ```bash # File analysis gemini -p "@path/to/file Analyze this code" # Multiple files gemini -p "@src/**/*.py Summarize these files" # With specific model gemini --model gemini-2.5-pro-exp -p "..." # JSON output gemini --output-format json -p "..." ``` ### Save Output ```bash gemini -p "..." > delegations/gemini/$(date +%Y%m%d_%H%M%S).md ``` ## Gemini-Specific Details For Gemini-specific models, CLI options, cost reference, and troubleshooting, see `modules/gemini-specifics.md`.