# Send Gemini Sub-Agent to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gemini-sub-agent",
    "name": "Gemini Sub-Agent",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/tedo0626/gemini-sub-agent",
    "canonicalUrl": "https://clawhub.ai/tedo0626/gemini-sub-agent",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/gemini-sub-agent",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gemini-sub-agent",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/setup.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "gemini-sub-agent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T14:15:46.701Z",
      "expiresAt": "2026-05-10T14:15:46.701Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gemini-sub-agent",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gemini-sub-agent",
        "contentDisposition": "attachment; filename=\"gemini-sub-agent-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "gemini-sub-agent"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/gemini-sub-agent"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gemini-sub-agent",
    "downloadUrl": "https://openagent3.xyz/downloads/gemini-sub-agent",
    "agentUrl": "https://openagent3.xyz/skills/gemini-sub-agent/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gemini-sub-agent/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gemini-sub-agent/agent.md"
  }
}
```
## Documentation

### gemini-sub-agent

Use Google Gemini (via subscription, $0 API cost) as a sub-agent inside OpenClaw workflows.

### Setup

Run once on a fresh machine:

bash skills/gemini-sub-agent/scripts/setup.sh

Then authenticate (headless VPS flow):

On VPS: gcloud auth application-default login --no-browser → copy the --remote-bootstrap URL
On laptop: gcloud auth application-default login --remote-bootstrap="<URL>" → copy the localhost:8085 output
Paste localhost:8085 output back into VPS prompt
Complete Gemini CLI OAuth: GOOGLE_GENAI_USE_GCA=true gemini -p "hello" → paste auth code

Credentials are cached indefinitely and auto-refresh.

### Available Models

ModelUse forgemini-3.1-pro-previewDefault — latest flagship, best reasoninggemini-2.5-proStable coding tasks, multi-file editsgemini-3-flash-previewFast summaries, quick Q&Agemini-3-pro-previewPrevious gen Pro, reliable fallbackgemini-2.5-flashLightweight fallback

### 1. Simple text task (exec)

ask-gemini "your prompt here"
ask-gemini -m gemini-2.5-pro "your prompt"

### 2. Pipe large content (long-context)

cat large_file.txt | ask-gemini "summarize this in 5 bullets"
cat report.md | ask-gemini "extract all action items"

### 3. Agentic coding (replaces Swift/Sonnet for 30-200 line tasks)

cd /path/to/project
GOOGLE_GENAI_USE_GCA=true gemini -m gemini-2.5-pro -y -p "write a script that..."

-y = yolo mode (auto-approves all file writes and shell commands). Gemini reads/writes files autonomously.

### 4. Pipe files directly into agentic session

cat existing_script.py | GOOGLE_GENAI_USE_GCA=true gemini -m gemini-2.5-pro -y -p "refactor this to add error handling"

### Routing Rules (when to use Gemini vs others)

TaskUseText, analysis, summarizationask-geminiMedium coding (30–200 lines)Gemini agentic (-y) instead of Swift/SonnetLarge file / long-contextask-gemini (1M token window)Web search / researchResearch agent (Grok) — Gemini has no web accessMulti-agent orchestrationOpenClaw native (sessions_spawn)Complex architecture / debuggingCodex (Opus) — escalate if Gemini fails twice

### Escalation

If Gemini returns wrong output twice on the same task → escalate to Swift (Sonnet) or Codex (Opus).
Log the failure in failures/hot_antipatterns.md with the task type.

### Scripts

scripts/setup.sh — Full install: gemini-cli + gcloud + ask-gemini wrapper
scripts/ask-gemini — The wrapper script itself (copy to /usr/local/bin/)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: tedo0626
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T14:15:46.701Z
- Expires at: 2026-05-10T14:15:46.701Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/gemini-sub-agent)
- [Send to Agent page](https://openagent3.xyz/skills/gemini-sub-agent/agent)
- [JSON manifest](https://openagent3.xyz/skills/gemini-sub-agent/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/gemini-sub-agent/agent.md)
- [Download page](https://openagent3.xyz/downloads/gemini-sub-agent)