agentleFS
davdittrichdavdittrich/gemini-delegate/SKILL.md

gemini-delegate

Skill2 starsChanged 7 months agoApache-2.0View on GitHub

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

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. AnastasiyaW/codex-claude-code-config★ 153same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Safe I/O: Use --prompt-stdin to prevent deadlocks.

    line 14
  2. Very specific:

    Persistence: Use --output-file AUTO for unique result files.

    line 15
  3. Very specific:

    Fallback: If bridge fails (timeout/crash), use built-in WebSearch.

    line 22

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 `VERDICTTASKTOKENSNOTE`
--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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.