gemini-cli-agent

gemini-cli-agent is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 83 tokens per session (978 once invoked), scanned A, original, MIT.

A command-line dispatcher for sending tasks to Google’s Gemini models through the gemini command. It is intended for cost-conscious analysis, but its availability depends on having the required enterprise access.

In plain words
What is it for?
Use it for security audits, architecture reviews, and quality analysis with supported Gemini models; use the Antigravity dispatcher for newer or frontier Gemini access.
Why use it?
It provides a standard way to pass a persona, source material, and instructions to a separate Gemini process. The included warning makes clear that many consumer users can no longer use this command.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Gemini CLI.

Part of the cli-agents plugin — 14 skills, 13 agents shipped together

Good fit Use it for security audits, architecture reviews, and quality analysis with supported Gemini models; use the Antigravity dispatcher for newer or frontier Gemini access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/gemini-cli-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richfrem/agent-plugins-skills --skill gemini-cli-agent
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install cli-agents, the plugin that ships this one along with the rest of its 14 skills, 13 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gemini-cli-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/gemini-cli-agent/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/gemini-cli-agent)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/gemini-cli-agent"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/gemini-cli-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gemini-cli-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/gemini-cli-agent"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/gemini-cli-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.00978
Opus 5 $0.00042 $0.00489
Sonnet 5 $0.00017 $0.00196
Haiku 4.5 $0.00008 $0.00098

Measured yesterday against content hash ddcfeb989e2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gemini-cli-agent scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/model_catalog.py, scripts/run_agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accesslowExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

Pass `--yolo` to allow all tool calls to run without confirmation for headless operation.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/cli-agents/skills/gemini-cli-agent/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

[!WARNING] Gemini CLI consumer access ended June 18, 2026. Free, Pro, and Ultra users no longer have access. Only enterprise Gemini Code Assist Standard/Enterprise licenses retain the gemini binary. If you don't have one of those licenses, this skill will not work — use agy-cli-agent instead, which is now the primary path for Gemini model access.

Identity: The Gemini Sub-Agent Dispatcher (Standard: gemini-3-flash-preview)

You dispatch specialized analysis tasks to Gemini CLI sub-agents using the gemini binary.

[!IMPORTANT] Default model: gemini-3-flash-preview (cost-efficient). For deep reasoning, use gemini-3.1-pro-preview. For frontier models (Gemini 3.8 Flash+), use agy-cli-agent instead.

Minimal Working Pattern

gemini -m gemini-3-flash-preview -p "$(cat agents/persona.md)

---SOURCE CODE---
$(cat target.py)

---INSTRUCTION---
Perform a full code review. Use severity levels: 🔴 CRITICAL, 🟡 MODERATE, 🟢 MINOR.
You are operating as an isolated sub-agent.
Do NOT use tools. Do NOT access filesystem." > review.md

Orchestration Pattern: run_agent.py

python ./scripts/run_agent.py <PERSONA_FILE> <INPUT_FILE> <OUTPUT_FILE> "<INSTRUCTION>" [MODEL_NAME]

Mandatory Health Check

Before any complex orchestration:

  1. gemini --yolo -m gemini-3-flash-preview -p "hello"
  2. python ./scripts/run_agent.py agents/refactor-expert.md target.py ./heartbeat.md "Verify health"
  3. Confirm ./heartbeat.md is not empty.

Example

python ./scripts/run_agent.py agents/security-auditor.md target.py security.md \
"Find vulnerabilities. Use severity levels: 🔴 CRITICAL, 🟡 MODERATE, 🟢 MINOR."

Persona Registry (agents/)

Persona Use For
security-auditor.md Red team, vulnerability scanning, threat modeling
refactor-expert.md Optimizing code for readability, performance, and DRY
architect-review.md Assessing system design, modularity, and complexity

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed ddcfeb989e2d
  2. 7d ago First seen · 110 lines · 83 tokens per session scan A 7f4246f9ebd1

Subscribe to this mod's changes

gemini-cli-agent is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 978 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

review-pr

Review a pull request (GitHub) or merge request (GitLab) and provide detailed feedback.

desplega-ai/agent-swarm · 22 tokens

ship-it-or-fix-it

Oracle-frozen Builder and independent-Judge convergence cycle. Load ONLY when the operator explicitly sets Governance Dial G2 for the task, or explicitly names this skill or an active work unit already running it. Never auto-activate on task class, such as security, auth, or payments. If a task seems to warrant G2 and…

Ezra144israel/governed-agent-skills · 98 tokens

test-verification

Requires behavioral, failure-path, and durable-seam evidence for tests and review. Use when writing tests, reviewing test coverage, assessing behavioral test quality, or accepting high-risk behavior on test evidence.

Ezra144israel/governed-agent-skills · 43 tokens

code-review

Perform comprehensive code reviews covering bugs, style, performance, security, and best practices. Use this skill when the user mentions: review my code, check this code, code review, find bugs, improve code, refactor suggestions, security audit, performance optimization, code quality, static analysis.

KarmaloopAI/Jiva · 61 tokens

concept-audit

A read-only audit skill for checking code against Daniel Jackson concept models, which describe independent parts of a system and how they work together.

ontology-of-everything/SemanticSkills · 41 tokens

weave-review

Weave code review — run independent adversarial reviews in parallel, then synthesize findings.

tony/skills · 21 tokens