gemini-as-toollisted
Install: claude install-skill MarioMagdy/gemini-as-tool
# Gemini as a Tool (Google AI Pro subscription, no API key)
## Overview
A tested harness ships with this skill for calling subscription Gemini models headlessly:
```
python "$CLAUDE_PLUGIN_ROOT/skills/gemini-as-tool/gemini_tool.py" <ask|pipeline|parallel> ...
```
Use it. Do not rediscover the plumbing — the raw CLIs have traps (below).
## Quick reference
> **Locating the script.** When installed as a plugin, Claude Code sets `$CLAUDE_PLUGIN_ROOT`, so
> the harness is `$CLAUDE_PLUGIN_ROOT/skills/gemini-as-tool/gemini_tool.py`. If that variable is
> not set (e.g. a plain clone), the script is in this skill's own directory — run `python
> gemini_tool.py ...` from there. The commands below use the short form for brevity.
| Goal | Command |
|---|---|
| One answer (3.5 Flash) | `python gemini_tool.py ask "prompt"` |
| One answer (3.1 Pro) | `python gemini_tool.py ask "prompt" --model pro` |
| Builder→judge (Pro builds, Flash judges) | `python gemini_tool.py pipeline "build task"` |
| N prompts concurrently | `python gemini_tool.py parallel "p1" "p2" "p3"` |
(Python API: `from gemini_tool import ask`.)
Calls take 10–60s (agy startup ≈10s). Verified working 2026-06-04.
## Running a BUILD with Gemini (proven recipe, 2026-06-06)
A proven pattern for delegating a full build to Gemini:
1. **Brief as a FILE, not a prompt.** Write a detailed `BUILD_BRIEF_<name>.md` in the target
repo/worktree (read-these-files-first list, file ownership + do-not-touch, blocking
tsc/test g