gemini
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- Engineering
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Plug-and-play
- External API key
- Not required
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- No special requirements
- Permissions
-
- Read-only
- Write / modify
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: gemini
description: Smart Gemini CLI delegation skill. Activate this skill at the START of processing any user reque…
category: engineering
runtime: no special runtime
---
# gemini output preview
## PART A: Task fit
- Use case: Smart Gemini CLI delegation skill. Activate this skill at the START of processing any user request — before reading files or starting work — to evaluate whether the task should be routed to Gemini. Always check experience.md first for auto-approve patterns. If unsure, use AskUserQuestion to let the user decide. Do NOT activate for casual conversation or tiny tasks. Use when this capability is needed..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Step 1: Read the Experience Log / Step 2: Score the Task / Strong Gemini signals (+2 each)” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Smart Gemini CLI delegation skill. Activate this skill at the START of processing any user request — before reading files or starting work — to evaluate whether the task should be routed to Gemini. Always check experience.md first for auto-approve patterns. If unsure, use AskUserQuestion to let the user decide. Do NOT activate for casual conversation or tiny tasks. Use when this capability is needed.”.
- **02** When the source has headings, the agent prioritizes “Step 1: Read the Experience Log / Step 2: Score the Task / Strong Gemini signals (+2 each)” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source mentions slash commands such as `/path`; use them first when your agent supports command triggers.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files.
Start with a small task and check whether the result follows “Step 1: Read the Experience Log / Step 2: Score the Task / Strong Gemini signals (+2 each)”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: gemini
description: Smart Gemini CLI delegation skill. Activate this skill at the START of processing any user reque…
category: engineering
source: tomevault-io/skills-registry
---
# gemini
## When to use
- Smart Gemini CLI delegation skill. Activate this skill at the START of processing any user request — before reading fi…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Step 1: Read the Experience Log / Step 2: Score the Task / Strong Gemini signals (+2 each)” and keep inference separate from source facts.
- read files, write/modify files; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "gemini" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Step 1: Read the Experience Log / Step 2: Score the Task / Strong Gemini signals (+2 each)
rules -> SKILL.md triggers / order / output contract
runtime -> no special runtime | read files, write/modify files | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} Gemini Smart Delegation Skill
Route tasks to Google's Gemini CLI (1M token context window) intelligently. The key behavior: always evaluate FIRST, then decide — never start a big task without checking.
Step 1: Read the Experience Log
Before doing anything else, read the experience log:
cat ~/.claude/skills/gemini/experience.md
The log contains:
[AUTO_APPROVE]entries — task types to always send to Gemini, no prompt needed[AVOID]entries — task types where Gemini underperformed, handle with Claude instead
Step 2: Score the Task
Strong Gemini signals (+2 each)
- Files involved are likely >50KB total (codebase scan, large logs, big documents)
- Task is purely read/analysis — no file editing needed
- Task matches an
[AUTO_APPROVE]pattern in experience.md - User explicitly says "use gemini", "ask gemini", "let gemini handle"
Mild Gemini signals (+1 each)
- Multiple files need to be read and cross-referenced
- Task involves summarization or extraction from long content
- Token conservation would meaningfully benefit the conversation
Disqualifiers (skip Gemini entirely)
- Task matches an
[AVOID]pattern in experience.md → handle with Claude, mention why - Task requires writing or editing files
- Task requires iterative tool-use loops
- Task is short and simple
Step 3: Decision Branch
Score >= 2 AND matches an [AUTO_APPROVE] pattern:
→ Go straight to Gemini — skip the question → Briefly note: "Routing to Gemini (auto-approved: [pattern name])"
Score >= 2 but NO prior auto-approve for this pattern:
→ Use AskUserQuestion with this exact structure:
Question: "This task looks like a good fit for Gemini (large context / token savings). How should I handle it?"
Header: "Route to Gemini?"
Options:
1. label: "Use Gemini & remember this task type"
description: "Delegate to Gemini now, and auto-route similar tasks in the future without asking"
2. label: "Use Gemini, just this once"
description: "Delegate to Gemini now, but ask again next time"
3. label: "Claude handles it"
description: "Skip Gemini for this task"
Score < 2:
→ Handle with Claude normally, no question needed
Step 4: After the User Chooses
Option 1 — "Use Gemini & remember this task type":
- Append an
[AUTO_APPROVE]entry to experience.md (format below) - Run Gemini
- Present output labeled
[Gemini Response]
Option 2 — "Use Gemini, just this once":
- Run Gemini
- Present output labeled
[Gemini Response] - Do NOT write to experience.md
Option 3 — "Claude handles it":
- Handle with Claude normally
- Do NOT write to experience.md
Step 5: Running Gemini
Standard headless call
gemini -p "COMPLETE SELF-CONTAINED PROMPT" --output-format text --yolo 2>&1
Pipe large file content
cat /path/to/large/file | gemini -p "YOUR INSTRUCTION" --output-format text --yolo 2>&1
Multi-file analysis
gemini -p "$(printf 'Analyze these files:\n\n=== file1 ===\n'; cat file1; printf '\n\n=== file2 ===\n'; cat file2; printf '\n\nTask: YOUR INSTRUCTION')" --output-format text --yolo 2>&1
Important: Gemini headless is single-shot — craft a complete, self-contained prompt with all needed context included.
Step 6: Post-Result Dissatisfaction Detection
After presenting Gemini output, watch the user's next message for dissatisfaction signals:
Signals: "wrong", "not good", "that's off", "redo this", user corrects the output, user asks Claude to redo the same task
When detected:
- Use AskUserQuestion:
Question: "Should I mark this task type as a poor fit for Gemini and handle it with Claude going forward?" Options: - "Yes, log it" — description: "Record this as an [AVOID] pattern" - "No, just this once" — description: "Don't log anything" - If user picks "Yes, log it" → append an
[AVOID]entry to experience.md - If this task type had an existing
[AUTO_APPROVE]entry, update it to[AVOID] - Confirm: "Noted. I'll handle this type of task myself from now on."
Experience Log Entry Formats
AUTO_APPROVE entry
---
### [AUTO_APPROVE] YYYY-MM-DD
**Pattern**: one-line description of the task type (e.g., "Full Go codebase read-only analysis")
**Trigger keywords**: keywords that identify this pattern
**Reason**: why Gemini is well-suited for this
AVOID entry
---
### [AVOID] YYYY-MM-DD
**Pattern**: one-line description of the task type
**What went wrong**: brief failure description from user feedback
**Lesson**: what to do instead next time
Decision Table
| Condition | Action |
|---|---|
| Matches [AUTO_APPROVE] | Go straight to Gemini, no question |
| Matches [AVOID] | Use Claude, explain why |
| Large/complex, no prior record | AskUserQuestion (3 options) |
| Small/simple task | Claude handles, no question |
| User picks "remember this type" | Write AUTO_APPROVE + run Gemini |
| User flags poor result | AskUserQuestion → write AVOID |
Source: audi0417/claude-gemini-router — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review