agentsclimarketplace

Gemini delegate

Skill davdittrich/gemini-delegate

A Claude Code skill that delegates coding tasks to Google's Gemini CLI via the Agent Client Protocol (ACP) -- structured JSON-RPC communication instead of shell subprocess piping.

Install
npx -y skills add davdittrich/gemini-delegate

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when [large codebase >200 lines], [web search current info], [adversarial review/critique].

SKILL.md

3.8 KB, as published. Nobody here has run it

Gemini Delegate (ACP)

Delegate tasks to Gemini via ACP bridge. Verification MANDATORY.

Bridge Mandates

  • MANDATORY: scripts/gemini_bridge.py only. NEVER call gemini directly.
  • Safe I/O: Use --prompt-stdin to prevent deadlocks.
  • Persistence: Use --output-file AUTO for unique result files.
  • Sessions: Capture/reuse SESSION_ID from JSON for follow-ups.
  • Timeout: Total 600s (10m). First chunk 300s.

Grounding & Web Search

  • Prefix: Queries MUST start with WebSearch: (e.g., WebSearch: API news 2026).
  • Grounding: Prefix forces web grounding. No prefix = fabrication risk.
  • Fallback: If bridge fails (timeout/crash), use built-in WebSearch. Report in one line.

Routing & Tasking

TaskModelTemplate
Review (<200 lines)gemini-3-flash-previewFocused review
Bug/Arch (>3 files)gemini-3.1-pro-previewTool-assisted
Search/Infogemini-3-flash-previewWeb search
Adversarial/Plangemini-3.1-pro-previewCritique

CLI Flags

FlagDescriptionDefault
--promptPrompt text
--prompt-fileRead prompt from file
--prompt-stdinRead from stdin (MANDATORY for automation)
--session-idResume specific session
--new-sessionForce fresh session
--sessions-dirOverride session storage dir
--cdWorkspace root directory.
--timeoutTotal max wall-clock seconds600
--idle-timeoutMax seconds between chunks120
--first-chunk-timeoutMax seconds for first chunk300
--verbosePrint heartbeat markers to stderr
--output-fileWrite JSON to file (AUTO for unique temp)
--approve-editsAllow file writes within --cd scope
--cacheContent-addressed git-based cachingoff
--cache-ttlCache TTL in seconds (1-2592000)86400
--clear-cacheClear result cache and exit
--parallel-modelsComma-separated models for parallel runs
--log-feedbackAppend feedback entry `VERDICTTASK
--modelGemini model to use

Output Schema

{
  "success": true,
  "SESSION_ID": "...",
  "agent_messages": "...",
  "read_file_count": N,
  "fallback_occurred": boolean,
  "requested_model": "...",
  "actual_model_selection": "specified"|"automatic",
  "tool_calls": [...],
  "token_estimate": { "estimated_cost_usd": 0.00 }
}

STOP & VERIFY (Red Flags)

Violating the letter of these rules violates the spirit. STOP if:

  • read_file_count is 0 for code analysis (Gemini is guessing).
  • Response contains functions not present in source files.
  • Web search response lacks specific source URLs.
  • Requested Pro failed (fallback_occurred: true). Alert user immediately.
  • Calling gemini directly. Revert and use bridge.
  • Omitted WebSearch: prefix. Re-run with prefix.

Rationalization Table

ExcuseReality
"I know this code already."Code changes. RE-VERIFY key logic via read_file.
"File names explain it."Guessing = fabrication. READ content.
"I'll skip WebSearch: prefix."Internal 2026 knowledge is fabrication. GROUND every claim.
"Pro failed, Flash is fine."pro-preview is the tier for logic. Fallback must be reported.

Permissions & Logs

  • Write: --approve-edits required for file writes.
  • Feedback: Log outcome via --log-feedback after every task.
  • Escalation: Rejection rate >50% -> escalate model tier.

References

  • assets/prompt-template.md: Task templates.
  • assets/reference.md: Logs, parallel runs, capsules.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.