gemini-agent
/gemini-agent
Deleguje zadania do Gemini CLI jako agenta: odciążenie od prac zużywających wiele tokenów, druga opinia innego modelu i uruchomienie Gemini z własnym promptem systemowym.
- Autor
- michaleiatrak-star ↗
- Repozytorium
- lex-machina ↗
- Licencja
- GPL-3.0
- Ostatnia zmiana repozytorium
- 27.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 3
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.
GPL-3.0, otwarta.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/gemini_interface.py
Co robi i kiedy
Deleguje zadania do Gemini CLI jako agenta: odciążenie od prac zużywających wiele tokenów, druga opinia innego modelu i uruchomienie Gemini z własnym promptem systemowym.
Wyzwalacze z opisu
Oryginalny opis (EN)
Delegate tasks to Gemini CLI as an agent. Use when the user wants to offload token-heavy work to Gemini, get a second opinion from a different model, or run Gemini with a custom system prompt. Triggers include "use Gemini to review X", "ask Gemini to Y", "run Gemini on Z", "delegate to Gemini", "have Gemini check X".
Jak działa
- Basic usage
- With a system prompt file
- With a context file
- Options
- Running in background (parallel with other work)
- Constructing good prompts
Podgląd SKILL.md
---
name: gemini-agent
description: >
Delegate tasks to Gemini CLI as an agent. Use when the user wants to offload token-heavy work to
Gemini, get a second opinion from a different model, or run Gemini with a custom system prompt.
Triggers include "use Gemini to review X", "ask Gemini to Y", "run Gemini on Z", "delegate to
Gemini", "have Gemini check X".
---
# Gemini Agent
Delegates tasks to Gemini CLI in headless mode using `gemini_interface.py` from this skill's `scripts/` folder.
**Prerequisite:** Gemini CLI must be installed and on PATH (`gemini --version` should work).
## Basic usage
```bash
python ~/.claude/skills/gemini-agent/scripts/gemini_interface.py \
--prompt "<task prompt>" \
--cwd "$(pwd)"
```
## With a system prompt file
Pass any markdown file as a persona/role for Gemini. YAML frontmatter is stripped automatically.
```bash
python ~/.claude/skills/gemini-agent/scripts/gemini_interface.py \
--prompt "<task prompt>" \
--system-md /path/to/persona.md \
--cwd "$(pwd)"
```
## With a context file
If you need Gemini to read a large existing file, attach it via the `--context-file` argument (which uses Gemini's `@file` syntax under the hood):
```bash
python ~/.claude/skills/gemini-agent/scripts/gemini_interface.py \
--prompt "Review this file for security vulnerabilities." \
--context-file src/auth/login.py \
--cwd "$(pwd)"
```
*Note: For short context or summaries (a few sentences), do not create a temp file. Just include the context directly inside your `--prompt` string!*
## Options
| Flag | Default | Description |
|------|---------|-------------|
| `--prompt` | required | Task prompt |
| `--system-md` | none | Markdown file prepended as system instructions |
| `--context-file` | none | File attached via `@path` in the prompt |
| `--cwd` | current dir | Working directory for Gemini CLI |
| `--model` | `gemini-3.1-pro-preview` | Gemini model ID |
| `--verbose` | off | Stream all output; default is final response only |
## Running in background (parallel with other work)
```bash
# Launch as a background task so Claude can continue working in parallel
Bash("python ~/.claude/skills/gemini-agent/scripts/gemini_interface.py --prompt '...' --cwd $(pwd)", run_in_background=true)
```
## Constructing good prompts
Gemini has no conversation context. Include everything it needs:
- Which files or components to examine
- What specifically to look for
- What format to return (e.g., "list issues with file:line references")
Pliki w paczce (3)
- README.md 4 KB
- SKILL.md 2 KB
- scripts/gemini_interface.py 4 KB
Wersje
W bazie nie ma innych skilli o nazwie gemini-agent.
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki 3a76afc59592 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100gemini-cli
Uruchamia Gemini CLI do zapytań AI, porównań Claude z Gemini i delegowania zadań do Gemini. - 100gemini
Uruchamia Gemini CLI (gemini, gemini resume) do analizy kodu, refaktoryzacji i automatycznej edycji. - 100code-mate-gemini
Uruchamia Gemini CLI nieinteraktywnie do zadań programistycznych, gdy użytkownik chce przekazać pracę do Gemini. - 100handoff-gemini
Deleguje analizę długiego kontekstu, research i streszczanie dużych dokumentów do Gemini CLI (1 mln tokenów) przez gemini -p, oszczędzając kontekst Claude. - 100ask-gemini
Deleguje do Google Gemini CLI (gemini -p, gemini --resume) analizę kodu, refaktoryzację lub automatyczną edycję i krytycznie ocenia wynik jak drugi model AI. - 100gemini-delegate
Deleguje zadania do Gemini CLI po sprawdzeniu wersji, dostępnego modelu i dostępu: druga opinia innego dostawcy, hurtowa kuracja obrazów i danych, duży kontekst do czytania oraz diagnoza błędów limitów i modelu.