/google:gemini-clifrom google
Runs prompts through Gemini CLI headless using a Gemini API key. Supports session resume by ID and reports token counts per run.
Ships in google. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
scripts/gemini-run.sh, next to this file, takes one prompt file and prints the answer, the token
counts the CLI reported, and the session id. -h carries the flags and the exit statuses.
npm install -g @google/gemini-cli.GEMINI_API_KEY set in the environment of the command that runs the script. When the
environment does not have it, the user's own instructions say where it comes from.~/.gemini, or $GEMINI_CLI_HOME/.gemini when that is set), where sessions are
stored; a sandboxed shell has to be granted both. Keep the same state directory across a
session's runs.references/auth.md then, and on any other authentication failure.scripts/gemini-run.sh against the directory holding this
SKILL.md and run that absolute path.-m has no default. When none was named,
list the models the key can reach and ask:
curl -s https://generativelanguage.googleapis.com/v1beta/models -H "x-goog-api-key: $GEMINI_API_KEY".plan (the default) runs read-only tools; web search is available in it.
Pass -a auto_edit or -a yolo only when the user asked for Gemini to change files.-C <dir> — the directory whose files the task is about, or a temporary
directory the host permits for a question with no files. Sessions are stored per directory, so
record the directory with the session and pass the same -C on resume.TOKENS lines verbatim, and the SESSION_ID: line verbatim.SESSION_ID against its purpose, model and directory; it is the only resume
handle, and only a successful run prints one.-S <SESSION_ID>,
the same -m, and the same -C.input is the prompt minus what was served from cache, cached is the cached part,
candidates and thoughts are output. Each run re-sends the CLI's own system prompt and tool
definitions, and a resumed run re-sends the conversation so far, so input grows with the
session. To turn counts into cost, read the model's current rates at
https://ai.google.dev/gemini-api/docs/pricing.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jongwony/cc-plugin --plugin google2 skills in this plugin
Other plugins' skills for the same job