agentleFS
arielfikruarielfikru/kuli/skills/gemini/SKILL.md

gemini

Skill0 starsChanged 6 months agoMITView on GitHub

Delegate to Gemini (gemini-3.1-pro) via the headless Gemini CLI — two lanes. (1) VISION via ask-gemini: look at a screenshot, photo, diagram, video, any media file and answer about it (text-only models can't). (2) CODING via ask-gemini-code: read/edit a real repo — high-volume or parallel coding (boilerplate, scaffolds, mass-rename, tests, docs), visual/frontend work, or a cross-family second-opinion review of a diff. Trigger when user says "pakai gemini", "analisa gambar/video ini", "gemini buat coding", "/gemini", needs to see pixels/frames, or wants a volume/visual coder. Claude orchestrates + validates (review every ask-gemini-code --apply diff). NOT for image generation (use /recraft).

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use voice-call, BlueBubbles and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seedprodSkill

    voice-call

    Start voice calls via the OpenClaw voice-call plugin.

    Also in 14 projects that use this

  • jiulingyunSkill

    BlueBubbles

    为Clawdbot构建或更新BlueBubbles外部通道插件(扩展包,REST发送/探测,webhook入站)。

    Also in 14 projects that use this

  • AlekseiULSkill

    TubeScribe

    YouTube video summarizer with speaker detection, formatted documents, and audio output. Works out of the box with macOS built-in TTS. Optional recommended tools (pandoc, ffmpeg, mlx-audio) enhance quality. Requires internet for YouTube access. No paid APIs or subscriptions. Use when user sends a YouTube URL or asks to summarize/transcribe a YouTube video.

    Also in 3 projects that use this

  • seedprodSkill

    imsg

    iMessage/SMS CLI for listing chats, history, watch, and sending.

    Also in 15 projects that use this

  • AtomicBot-aiSkill

    taskflow-inbox-triage

    Also in 4 projects that use this

  • jiulingyunSkill

    SAG

    具有mac风格say用户体验的ElevenLabs文本转语音。

    Also in 15 projects that use this

  • +6 more from seedprod
  • Other versions63 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 63

    1. moltbot/clawdbot★ 394ksame name
    2. steipete/warelay★ 394ksame name
    3. steipete/clawdis★ 394ksame name
    4. moltbot/moltbot★ 394ksame name
    5. clawdbot/clawdbot★ 394ksame name
    6. openclaw/openclaw★ 394ksame name
    7. molt-bot/clawdbot★ 391ksame name
    8. spinabot/brigade★ 11ksame name
    9. the-open-agent/openagent★ 5.7ksame name
    10. casibase/casibase★ 5.7ksame name

    53 more not listed

    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.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 58 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Default (no flag) = pro: best for tricky reads (subtle UI bugs, dense diagrams, fine detail).

    line 46
  2. Very specific:

    USE -c when: factual/numeric/categorical answer + you'd otherwise have to trust it blind (no cheap way to verify).

    line 57
  3. Distinctive:

    Keep heavy, long-horizon, must-stay-consistent refactors on codex.

    line 134

“Common” is measured: kept by at least 6 in 10 of the 58 edited versions of this file we could read. “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 visual-analysis delegation — the "eyes" intern

Claude = orchestrator/brain. Gemini = the vision intern: hand it media + a precise question, it looks at the pixels/frames and answers. Claude decides what to delegate, calls the tool, then validates the result before using it.

Gemini fills the one gap DeepSeek and inline-Claude can't: actually seeing images and video. Model is gemini-3.1-pro-preview (native multimodal).

Tool

ask-gemini (at ~/.claude/bin/ask-gemini). Stdlib Python, no deps. Wraps the gemini CLI headless (-p ... --skip-trust -o json) and prints .response.

# analyze an image
ask-gemini -f screenshot.png "what UI bug is visible? be specific"

# analyze a video clip
ask-gemini -f clip.mp4 "summarize what happens, with rough timestamps"

# multiple media at once (compare)
ask-gemini -f before.png -f after.png "what changed between these two?"

# media + piped text context
cat spec.md | ask-gemini -f mockup.png "does this mockup match the spec?"

# plain text question (no media) also works
ask-gemini "explain the CAP theorem in 3 sentences"

Flags: -f FILE (media to analyze; repeatable for multiple files), --flash (fast/cheap model gemini-3-flash-preview), --pro (most capable gemini-3.1-pro-preview, the default), -m MODEL (explicit model name), -c N (self-consistency: sample N, majority-vote), --timeout N (seconds, default 300, env GEMINI_TIMEOUT), --raw (full gemini JSON not just .response), -q (no stats). Prompt comes from args and/or piped stdin.

Picking the model

  • Default (no flag) = pro: best for tricky reads (subtle UI bugs, dense diagrams, fine detail). Use --pro to force it.
  • --flash for bulk / simple reads (obvious content, large batches) — faster and cheaper. Good default for ask-gemini-batch over many files.

Self-consistency vote (-c N)

-c N samples N times and majority-votes the answer. Use it when the answer is a single short verifiable value AND being wrong is costly (a number, name, yes/no, classification, picked option). Decision rule:

  • USE -c when: factual/numeric/categorical answer + you'd otherwise have to trust it blind (no cheap way to verify). The agreement X/N line tells you how much to trust it; ⚠ LOW = don't.
  • SKIP -c when: output is prose/code/a draft (every sample differs, vote is meaningless), OR you can verify the result yourself anyway (run it, check the repo), OR cost matters more than the extra confidence. It is N× the tokens — never the default.
# discrete question -> vote reduces flaky/hallucinated answers
ask-gemini -f crowd.jpg -c 5 "how many people? number on the last line"

Stderr reports agreement V/N (⚠ LOW flagged when ≤ half agree).

Batch fan-out

ask-gemini-batch runs many analysis calls in parallel (each through ask-gemini, so every worker stays lean). Two modes, picked by input:

# mode 1 — same prompt over many media files (positional)
ask-gemini-batch -p "what UI bug is visible?" shots/*.png -j 8

# mode 2 — many questions, one shared media file (prompts on stdin)
printf 'what shape?\nwhat color?\n' | ask-gemini-batch -c diagram.png
ask-gemini-batch -c clip.mp4 --delimiter '---' < prompts.txt

Batch flags: -p PROMPT (shared, mode 1), -c FILE (shared media, mode 2), -d DELIM, -j N (workers, def 4), -m MODEL, --timeout N (per call, def 600), --json (array of {index, label, output, ok}). Use it for bulk: scanning many screenshots/frames, or asking several questions about one image/video.

How it stays lean

Gemini auto-loads GEMINI.md + scans its working dir, which bloated input to ~90k tokens/call. ask-gemini runs gemini from an empty temp dir and copies each -f file into it (gemini sandboxes file reads to cwd), so calls stay ~8k tokens. Don't bypass the wrapper by calling gemini directly for analysis — you lose the lean cwd and media sandboxing both.

When to delegate to Gemini

  • Reading a screenshot / photo / scan and answering questions about it
  • Spotting visual bugs, layout issues, UI/UX problems in an image
  • Describing or summarizing a video clip, extracting on-screen text
  • Comparing two images (before/after, design vs implementation)
  • OCR-ish extraction from an image when no dedicated OCR is set up
  • Any "look at this and tell me X" where pixels/frames matter

Coding lane — ask-gemini-code (reads/edits a real repo)

ask-gemini runs in an empty temp dir (vision, lean). ask-gemini-code runs IN your working directory so gemini can read project files and code. Read-only by default; --apply lets it edit.

# read-only: review / understand a repo (no writes)
ask-gemini-code -C ~/proj "review src/auth.ts for bugs, suggest fixes"
ask-gemini-code "how does the routing layer work here?"

# agentic edits — prefer a throwaway worktree, then review the diff
ask-gemini-code --apply --worktree "add unit tests for the parser module"

Flags: --apply (edit mode = auto_edit; default read-only = plan), --worktree/-w (fresh git worktree, recommended with --apply), --cd DIR, -m, --timeout (default 600), -q. Shell-command auto-exec (yolo) is not exposed.

When to use the coding lane (vs codex):

  • High-volume / parallel-friendly coding — boilerplate, scaffolds, mass rename, generate tests, translate comments/docs. Gemini's quota tolerates wider fan-out than codex.
  • Visual / frontend / multimodal coding — it can reason over images + code.
  • Cross-family second opinion — codex writes, gemini reviews the diff (read only); different model family catches different things.
  • Keep heavy, long-horizon, must-stay-consistent refactors on codex.

Safety (same as codex --apply): run --apply in a throwaway worktree, review the diff before keeping it, never merge blind, never push without the user's OK.

When NOT to delegate

  • Image generation — Gemini CLI cannot generate AI images; it only draws primitives via code (Pillow). Don't use it for "buatkan gambar/ilustrasi".
  • Pure text work with no media → use DeepSeek (/deepseek) — cheaper.
  • Anything needing this repo's structure/tools/graph → keep on Claude.
  • Final correctness-critical calls → Claude reviews Gemini output, never blind.

Pattern (intern protocol)

  1. Brief — precise question. Gemini sees only the media you pass; state exactly what to look for.
  2. Assign — ask-gemini -f <media> "<question>". Pass multiple -f to compare. Bump --timeout for long videos.
  3. Review (mandatory) — Gemini can misread fine detail and hallucinate. Spot-check claims; for anything important, re-open the image yourself or re-ask with a sharper prompt.
  4. Integrate — use the validated answer; say Gemini produced the read.

MCP (optional)

A thin MCP wrapper exists at ~/.claude/mcp/gemini-server.py (registered as the gemini MCP server, user scope). It exposes ask_gemini and ask_gemini_batch as typed tools that shell out to these same CLIs — use it to call Gemini without composing a Bash command. The CLI remains the source of truth (lean cwd, media staging, voting all live there); the MCP server adds nothing but ergonomics.

Notes

  • Auth is OAuth-personal (already logged in). If calls 401, re-run gemini login.
  • Supported media: common RASTER image formats (png/jpg/webp/…) and video (mp4/…). Large videos cost more tokens and time — raise --timeout.
  • Do NOT feed SVG (or other vector/XML) to -f — gemini vision is for raster pixels; an SVG makes it stall/time out. To review a generated SVG (e.g. from ask-recraft), rasterize it to PNG first (rsvg-convert/cairosvg/inkscape) and pass the PNG.
  • Related: [[reference-deepseek-delegation]] (text intern), same senior/intern review discipline applies here.

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.