Free SKILL.md scraped from GitHub. Clone the repo or copy the file directly into your Claude Code skills directory.
npx versuz@latest install lostforwurdz-loom-skills-archived-gemini-routergit clone https://github.com/lostforwurdz/loom.gitcp loom/SKILL.MD ~/.claude/skills/lostforwurdz-loom-skills-archived-gemini-router/SKILL.md--- name: gemini-router-deprecated description: >- DEPRECATED in Pool Phase 15. Routing logic now lives in code at ~/loom/src/pool/router.ts (7-factor engine). Callers should use pool_dispatch / pool_consult with optional routing_hint — the router selects the worker automatically. Kept here for historical reference. --- > **DEPRECATED — Pool Phase 15 (kobramaz-lmn.51.15).** > > The decision tree below has been absorbed into `~/loom/src/pool/router.ts` > (the 7-factor routing engine: capability, cost, speed, headroom, recency, > user pref, privacy) and the `pool_*` MCP tool surface. Callers no longer > pre-route — they call `pool_dispatch` / `pool_consult` with an optional > `routing_hint` and the router picks the worker. > > The Phase 18 cutover (kobramaz-lmn.51.18) swaps the `agent-pool` MCP for > `loom-pool-mcp` system-wide. Until then this skill is non-invocable > (lives under `skills/archived/`). > > **Old → new mapping:** > > | Old flow | New flow | > |---|---| > | code review/critique → `consult_peer` + `strict-reviewer` | `pool_consult` with `routing_hint: 'strict-review'` | > | implementation plan → `delegate_task` + `tdd-planner` | `pool_dispatch` with `routing_hint: 'tdd-plan'` | > | large-context analysis (>50K tokens) → `delegate_task_readonly` | `pool_dispatch` with `routing_hint: 'long-context'` (router prefers a 1M-context worker). `pool_dispatch_readonly` is TODO until adapter-layer readonly mode lands. | > | quick second opinion → `consult_peer` | `pool_consult` (no skill, no hint) | > | web search w/ grounding → raw `gemini -p` | unchanged — pool doesn't proxy Google Search grounding | > | <3 min of code → don't delegate | unchanged | > > Quota / concurrency / hallucination caveats apply verbatim; see > `~/loom/docs/pool-architecture.md` for the routing engine details. # Gemini Router (deprecated — historical content below) Decides which Gemini flow (if any) to use when offloading work from Claude Code via the `agent-pool` MCP. ## Decision tree ### 1. Code review / critique? **→ `consult_peer` with the `strict-reviewer` skill loaded** - Examples: "review this implementation", "is this secure?", "what bugs do you see?" - Output: severity-bucketed review with Approve / Request Changes / Major Rework verdict - Use `consult_peer` (not `delegate_task`) so Claude stays in the loop for synthesis ### 2. Implementation plan request? **→ `delegate_task` with the `tdd-planner` skill loaded** - Examples: "plan this refactor", "write a TDD plan for X", "how do I implement Y?" - Output: checkbox-style plan with exact code, tests, commit steps - Use full `delegate_task` (not readonly) because plans should ground in real files ### 3. Large-context analysis (input > 50K tokens)? **→ `delegate_task_readonly` with no specific skill (Gemini's 1M context is the lever)** - Examples: "summarize this 200-page doc", "find inconsistencies across these 50 files", "audit this whole repo" - Use `_readonly` to prevent unintended writes during exploration ### 4. Quick second opinion / sanity check? **→ `consult_peer` with no skill (pure Q&A)** - Examples: "is this approach safe?", "any issues with this design?", "would you do this differently?" - Faster than tdd-planner, lighter than strict-reviewer ### 5. Web search with grounding? **→ Don't use agent-pool; use Gemini CLI's native Google Search grounding via raw `gemini -p`** - Examples: any task where freshness matters and web sources need citation - agent-pool's worker doesn't expose Google Search grounding tool by default; the raw CLI does ### 6. Otherwise — just write it in Claude **→ Don't delegate trivial tasks. Each Gemini call has overhead.** ## When NOT to delegate - The task touches files Claude can read directly without bloating context (use `Read` instead — cheaper) - Tight code-generation loops where Claude's lower latency wins - Task requires Claude-specific knowledge: other agents, beads, MCP setup, this repo's structure - Anything under ~3 minutes of expected work ## Quick mapping | Task | Verb | Skill | Notes | |---|---|---|---| | Plan a multi-file feature | `delegate_task` | `tdd-planner` | grounded in repo | | Critique my code | `consult_peer` | `strict-reviewer` | sync return | | Audit huge doc set | `delegate_task_readonly` | (none) | leverage 1M ctx | | Sanity-check a plan | `consult_peer` | (none) | quick yes/no/why | | Web research with citations | raw `gemini -p` | n/a | uses Google grounding | | <2 min of code | (don't delegate) | n/a | Claude handles | ## Constraints - Each `delegate_task` spawns a Gemini CLI worker that consumes from your Pro quota — not free at scale - Cap at ~3 concurrent workers without explicit reason (free tier: 3, Pro: 15, Ultra: 60) - For sequential dependent steps, use `create_pipeline` instead of N parallel `delegate_task` calls - Verify Gemini's output before acting: it can hallucinate runtime context (it's not in this Claude session and doesn't share state)