360 Secure SkillHub
360 安全技能中心

gemini-delegation

该工具基于delegation-core规范实现Gemini CLI任务代理,提供Gemini专属的认证、配额管理与命令构建能力。适用于delegation-core判定Gemini适配、需1M+令牌大上下文、批量处理/文本摘要/模式提取等场景,需提前安装并认证Gemini CLI,支持多文件分析、指定模型、JSON输出等操作,可保存结果至文件。

athola
athola
热度 62.59
最近更新 2026-08-26 21:10:01
分类:开发依赖:代码执行 / MCP 服务 / 第三方 API应用场景:摘要总结 / 数据处理 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add nm-conjure-gemini-delegation
Metadata
name
gemini-delegation
description
Delegates tasks to Gemini CLI implementing delegation-core for Google's models
version
1.9.8
triggers
["gemini","cli","delegation","google","large-context","delegation-core selects Gemini or 1M+ token context is needed"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/conjure","emoji":"🦞","requires":{"config":["night-market.delegation-core"]}}}
source
claude-night-market
source_plugin
conjure

Night Market Skill — ported from claude-night-market/conjure. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Table of Contents

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:

# 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-2.5-pro-exp -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.