agentleFS
ZachArticulateVZachArticulateV/designer-pro-and-seo/skills/route-gemini-context/SKILL.md

route-gemini-context

Skill10 starsChanged 27 days agoMITView on GitHub

Delegates large multi-file or whole-repo work to Gemini for architecture maps, refactor-impact analysis, and multi-document synthesis. Uses Gemini's large context window when the gemini CLI is connected; otherwise runs a scoped Claude pass over the most relevant files (narrower, lower-fidelity). Trigger when the user says "scan the whole repo", "long context", "all the files", "synthesize across these files", "gemini analysis", "map the architecture", "trace dependencies", or "what changes if I refactor X".

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Prefer the adjacent cc-gemini-plugin (it packages directories) when available.

    line 39
  2. Distinctive:

    Use when the task genuinely needs breadth.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

route-gemini-context

Family: routing Status: Stable

Purpose

The execution arm for tasks that need a context window bigger than Claude's: whole- repo architecture maps, refactor-impact analysis, multi-document synthesis, and large structured-data passes. Gemini returns a synthesized result that Claude then integrates.

Triggers

  • "scan the whole repo" / "long context" / "all the files" / "synthesize across these files"
  • "gemini analysis" / "map the architecture"
  • "trace dependencies" / "what changes if I refactor X"

Inputs

  • Task description; the file/directory scope; the specific question

Steps

  1. Check Gemini is available: gemini --version. If absent, tell the user and fall back to a scoped Claude pass over the most relevant files (narrower, but honest about the limit).
  2. Scope the context — name the directories/files. For long media (video/PDF), preprocess first (cap duration/pages) so you don't blow the context.
  3. Invoke Gemini with a focused ask and a required output format:
    gemini -p "Map the architecture. Return a file:line list of where X happens. Cap 800 words." @./src
    Prefer the adjacent cc-gemini-plugin (it packages directories) when available.
  4. Demand citations — file:line, page numbers, or timestamps — not a flat summary, so the result is verifiable.
  5. Integrate the synthesis into the conversation; spot-check key claims against the actual files before acting on them.

Outputs

  • Gemini's synthesized analysis (with file:line / page / timestamp citations)
  • A short note of what context was sent

Dependencies

  • gemini CLI, or the adjacent cc-gemini-plugin (optional — adds a context window far larger than Claude's for whole-repo passes; free path: a scoped Claude pass over the most relevant files, narrower but honest about the limit).

Notes

Use when the task genuinely needs breadth. For a surgical lookup in a known file, use Claude directly — Gemini's strength is breadth, not precision. Verify before acting (recalled/long-context output can drift).

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.