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".
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- blast-promptSkill
- client-outreachSkill
- content-draftSkill
- copywritingSkill
- csv-to-reportSkill
- design-accessibilitySkill
- design-buildSkill
- design-croSkill
- design-dimensionsSkill
- design-motionSkill
- design-researchSkill
- design-system-genSkill
- design-system-persistSkill
- design-tokens-emitSkill
- design-visual-qaSkill
- html-extractSkill
- parallel-buildSkill
- portable-html-portSkill
- qa-gateSkill
- route-codex-reviewSkill
- route-three-brainSkill
- seo-auditSkill
- seo-backlinksSkill
- seo-clusterSkill
- seo-competitor-pagesSkill
- seo-content-briefSkill
- seo-contentSkill
- seo-dataforseoSkill
- seo-driftSkill
- seo-ecommerceSkill
- seo-firecrawlSkill
- seo-geoSkill
- seo-googleSkill
- seo-hreflangSkill
- seo-image-auditSkill
- seo-image-genSkill
- seo-local-unifiedSkill
- seo-pageSkill
- seo-programmaticSkill
- seo-schemaSkill
- seo-sitemapSkill
- seo-strategySkill
- seo-sxoSkill
- seo-technicalSkill
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
- Very specific: line 39
Prefer the adjacent cc-gemini-plugin (it packages directories) when available.
- Distinctive: line 58
Use when the task genuinely needs breadth.
≈ “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.
Files
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
- 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). - Scope the context — name the directories/files. For long media (video/PDF), preprocess first (cap duration/pages) so you don't blow the context.
- Invoke Gemini with a focused ask and a required output format:
Prefer the adjacentgemini -p "Map the architecture. Return a file:line list of where X happens. Cap 800 words." @./srccc-gemini-plugin(it packages directories) when available. - Demand citations — file:line, page numbers, or timestamps — not a flat summary, so the result is verifiable.
- 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
geminiCLI, or the adjacentcc-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).
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
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.

