Skip to content
Development
Skill

/gemini-delegation

Delegates to the Gemini CLI. Use when delegation-core selects Gemini or 1M+ token context is needed.

From plugin
claude-night-market
350200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill gemini-delegation --agent claude-code

SKILL.md

gemini-delegation.SKILL.md
name: gemini-delegation
description: Delegates to the Gemini CLI. 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
estimated_tokens: 600
progressive_loading: true
modules:
- modules/gemini-specifics.md
references:
- delegation-core/../../leyline/skills/authentication-patterns/SKILL.md
- delegation-core/../../leyline/skills/service-registry/SKILL.md
- delegation-core/../../leyline/skills/error-patterns/SKILL.md

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

When NOT To Use

  • Choosing which provider to delegate to (use `conjure:delegation-core`)
  • Qwen was the selected provider (use `conjure:qwen-delegation`)

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

  • [ ] `gemini --version` exits 0 before any task is delegated, and a missing

installation is reported and stops execution.

  • [ ] Authentication is judged from `GEMINI_API_KEY` and from the delegation's

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.

  • [ ] The delegated task output is saved to

`delegations/gemini/YYYYMMDD_HHMMSS.md` (timestamp format matching the Quick Start example), and that file exists on disk after the delegation completes.

  • [ ] If `conjure:delegation-core` selected a different provider (Qwen or local), this skill

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

  • [ ] Tasks requiring > 1M tokens in context are flagged before submission. The skill reports

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

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

350200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
350
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about gemini-delegation.

Which coding agents can use gemini-delegation?
gemini-delegation installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.