Gemini delegation

From athola/claude-night-market · View interactive version

Gemini delegation is an AI agent skill from the GitHub repository athola/claude-night-market. Delegates to the Gemini CLI. Use when delegation-core selects Gemini or 1M+ token context is needed.

How to use this skill

Skill file

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

When NOT To Use

Prerequisites

Installation:

# 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

# 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-3.1-pro-preview -p "..."

# JSON output
gemini --output-format json -p "..."

Save Output

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.

Exit Criteria

installation is reported and stops execution.

own exit code, never from gemini auth status. That command exits 0 while

printing Error authenticating: ProjectIdRequiredError over a credential

that cannot be used, so its status is not evidence. delegation-core's

shared module states the rule: authentication is never decided by running a

provider's own CLI.

delegations/gemini/YYYYMMDD_HHMMSS.md (timestamp format matching the Quick Start example),

and that file exists on disk after the delegation completes.

is not invoked; Gemini delegation only runs when delegation-core explicitly routes to Gemini.

the estimated token count and confirms it falls within Gemini's supported window.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.