SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

gemini-integration

Desenvolvimento

Utilize o Gemini CLI para exploração de bases de código com contexto amplo, revisão de arquitetura, análise de impacto de refatoração, síntese de documentação ou análise de dados estruturados. É ideal quando o host precisa delegar um problema complexo que abrange múltiplos arquivos, em vez de resolvê-lo arquivo por arquivo.

58estrelas
Ver no GitHub ↗Autor: thepushkarp

Gemini CLI Integration

Gemini CLI is the large-context handoff in this repository. Use it when the task is about the shape of a system, a broad slice of a repo, or a mixed text dataset that should be synthesized in one pass.

When to Use Gemini

Ideal Cases

ScenarioWhy Gemini Fits
Whole-codebase architectureBroad cross-file synthesis
Cross-file security reviewTraces flows across modules
Refactor impact analysisFinds dependencies and callers
Codebase orientationProduces a high-level map quickly
Documentation generationSynthesizes behavior from many files
Structured data reviewReads JSON, YAML, TOML, CSV, Markdown, and code together

Not Ideal

ScenarioWhy
Quick single-file editsThe handoff adds latency you do not need
Tight interactive debuggingBetter handled directly by the host model
Narrow tasks with no cross-file contextGemini adds little value

Host Entry Points

Claude Code

Use the slash command:

/cc-gemini-plugin:gemini <task>
/cc-gemini-plugin:gemini --dirs src,docs <task>
/cc-gemini-plugin:gemini --files "schemas/**/*.json" <task>

Claude can also spawn gemini-agent when the task obviously benefits from a large-context pass.

Codex

  • Mention the skill explicitly with $gemini-integration.
  • Or ask Codex to use the Gemini integration for a large analysis task.

Codex reads this skill definition directly when the repository is installed as a user-level skill.

Shared Runtime Contract

Always prefer the shared bridge script over hand-written gemini commands:

node scripts/gemini-bridge.js [options] <task>

The bridge owns:

  • argument parsing
  • directory and file ingestion
  • structured prompt assembly
  • Gemini CLI invocation

Use:

  • --dirs <path,...> for broad module trees
  • --files <glob,...> for targeted globs and mixed data formats
  • --model <name> only when the caller explicitly wants a model override
  • --format json only when structured output is required
  • --print-command when you need to inspect the resolved Gemini command

Good Patterns

Architecture

node scripts/gemini-bridge.js --dirs src,docs \
  "Explain the architecture and cite the key files."

Refactor impact

node scripts/gemini-bridge.js --dirs src \
  "Analyze the impact of refactoring the auth module. Include affected files and migration steps."

Structured data

node scripts/gemini-bridge.js --files "schemas/**/*.json,data/**/*.csv" \
  "Summarize the data contracts and identify breaking changes."

Troubleshooting

IssueSolution
Authentication errorRun gemini auth
Gemini missing on PATHInstall @google/gemini-cli or brew install gemini-cli
Rate limitingRetry with a narrower task or smaller context set
Token pressureReduce the number of inlined files

Como adicionar

/plugin marketplace add thepushkarp/cc-gemini-plugin

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.