Skip to content
Back to skills

Gemini Delegation

ASecurity

Gemini CLI delegation workflow implementing delegation-core for Google's

  • 4 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 10, 2026
toolsgobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add micsapp/micstec-skills --skill gemini-delegation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gemini Delegation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gemini Delegation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/micsapp-gemini-delegation/badge)](https://www.skillsdirectory.com/skills/micsapp-gemini-delegation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: gemini-delegation
description: Gemini CLI delegation workflow implementing delegation-core for Google's
  Gemini models. Use when delegation-core selected Gemini, need Gemini's 1M+ token
  context window, batch processing required. Do not use when deciding which model
  to use (use delegation-core first), gemini CLI not installed.
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/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)
- [Delegation Flow](#delegation-flow)
- [Quick Start](#quick-start)
- [Basic Command](#basic-command)
- [Save Output](#save-output)
- [Shared Patterns](#shared-patterns)
- [Gemini-Specific Details](#gemini-specific-details)
- [Exit Criteria](#exit-criteria)


# Gemini CLI Delegation

## Overview

This skill implements `conjure:delegation-core` for the Gemini CLI. It provides Gemini-specific authentication, quota management, and command construction using shared patterns.

## 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

- Deciding which model
  to use (use delegation-core first)
- Gemini CLI not installed
- Deciding which model
  to use (use delegation-core first)
- Gemini CLI not installed

## 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.

## Delegation Flow

Implements standard delegation-core flow with Gemini specifics:

1. `gemini-delegation:auth-verified` - Verify Gemini authentication
2. `gemini-delegation:quota-checked` - Check Gemini API quota
3. `gemini-delegation:command-executed` - Execute via Gemini CLI
4. `gemini-delegation:usage-logged` - Log Gemini API usage

## 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 "..."
```
**Verification:** Run the command with `--help` flag to verify availability.

### Save Output
```bash
gemini -p "..." > delegations/gemini/$(date +%Y%m%d_%H%M%S).md
```
**Verification:** Run the command with `--help` flag to verify availability.

## Shared Patterns

This skill uses shared modules from delegation-core:
- **Authentication**: See `delegation-core/../../leyline/skills/authentication-patterns/SKILL.md`
- **Quota Management**: See `delegation-core/../../leyline/skills/quota-management/SKILL.md`
- **Usage Logging**: See `delegation-core/../../leyline/skills/usage-logging/SKILL.md`
- **Error Handling**: See `delegation-core/../../leyline/skills/error-patterns/SKILL.md`

## Gemini-Specific Details

For Gemini-specific models, CLI options, cost reference, and troubleshooting, see `modules/gemini-specifics.md`.

## Exit Criteria
- Authentication confirmed working
- Quota checked and sufficient
- Command executed successfully
- Usage logged for tracking

Files in this skill

  • SKILL.md3.8 KB
  • modules/gemini-specifics.md1.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.