mikeng-io/agent-skills/bridge-gemini
- community
Checking that the SKILL.md file is still in the repository.
Reference adapter for Gemini CLI. Read by any orchestrating skill via the Read tool. Defines how to invoke Gemini CLI in non-interactive mode, timeout estimation, and fallback behavior. Usable by deep-council, deep-review, deep-audit, or any future skill that needs Gemini-based review.
Install
npx vskill@latest install mikeng-io/agent-skills/bridge-geminiSKILL.md
Bridge: Gemini CLI Adapter
This file is a REFERENCE DOCUMENT. Any orchestrating skill reads it via the Read tool and embeds its instructions directly into Task agent prompts. It is not invoked as a standalone skill — it is a reusable set of instructions for Gemini CLI dispatch.
Input schema, agent prompt template, output schema, verdict logic, timeout formula, artifact format, and status semantics are defined in `bridge-commons/SKILL.md`. This file covers only Gemini-specific connection detection and execution.
Bridge Identity
Pre-Flight — Connection Detection
MUST read `bridge-commons/tool-discovery.md` first to understand the discovery protocol.
Step 1.0: Discover Execution Context
Before checking connection paths, discover what dispatch methods are available in the CURRENT execution context. This bridge runs inside multiple executors (Claude Code, OpenCode, Codex CLI, Gemini CLI, others).
Primary detection: Tool availability + settings check (most reliable)
Discovery logic:
If Gemini native dispatch is available:
→ Use native dispatch (Subagent Mode section). This is the preferred path.
If NOT running inside Gemini CLI or enableAgents is false, proceed to Check A.
Check A: CLI Installed?
If found → proceed to Check B (Auth Probe).
If not found → return immediately:
Never fail or block — SKIPPED is a valid bridge outcome.
Check B: Auth / Quota Probe
A gemini CLI that is installed but has an expired token or exhausted quota passes Check A and then fails silently at execution time. Catch this at availability check instead:
If the probe exits non-zero or returns an auth error → return:
If the probe succeeds → use CLI path (Execution section).
Execution
Build the prompt using the Agent Prompt Template from bridge-commons, adapting to task_type. Calculate timeout using bridge-commons formula (no bridge-specific multiplier for Gemini).
Error handling:
- Exit code 0 with JSON → parse and return findings
- Exit code 124 (timeout) → return SKIPPED with reason
timeout_after_{n}s - Other exit codes → return SKIPPED with reason
gemini CLI error: {stderr} - Invalid JSON output → attempt to extract structured content, else SKIPPED
After execution, run the bridge-commons Post-Analysis Protocol. Gemini uses stateless context passing between rounds — embed the full previous-round outputs and context packet in each subsequent gemini -p call. There is no session continuity between separate CLI invocations.
For standard and thorough intensity, construct the Round 2 prompt as:
Never block the calling orchestrator — always return a report (even if SKIPPED).
Subagent Mode
Gemini CLI supports custom subagents for parallel domain dispatch when experimental.enableAgents is set in .gemini/settings.json.
- If
true→ spawn one subagent per domain; run consolidation pass after all complete - If
falseor missing → run standard single Gemini call covering all domains (valid fallback)
Subagent mode is a progressive enhancement. Record subagent_mode: true/false in output.
Output
See bridge-commons Output Schema. Bridge-specific fields:
Output ID prefix: G (e.g., G001, G002).
Notes
- Always check availability first — never assume gemini is installed
- Use non-interactive mode only; always specify
--approval-mode - Use
--output-format jsonfor structured parsing (not-o json) - Timeout is estimated from scope, not hardcoded — see bridge-commons formula
- SKIPPED is a valid, non-error outcome
Resolve APPROVAL_MODE from bridge-commons:
inspectprofile → use Gemini's non-mutating approval modemodifyprofile → use Gemini's write-capable approval mode supported by the current runtime
Gemini approval settings are runtime details. The shared policy is capability_profile, derived from task_type.
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationWarning, 70 of 100Marginal. 1 run. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingskills/bridge-gemini/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 13 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mikeng-io/agent-skills/bridge-gemini)