code-reviewer

Revisão automatizada de código para alterações locais e pull requests remotos, com análise estruturada em correção, manutenibilidade e segurança. Suporta alterações no sistema de arquivos local (staged e unstaged) e PRs remotos (por número ou URL) com checkout automático via GitHub CLI. Analisa o código em sete dimensões: correção, manutenibilidade, legibilidade, eficiência, segurança, tratamento de casos extremos e cobertura de testes. Executa suítes opcionais de verificação preflight (ex.: npm run preflight) para detectar...

npx skills add https://github.com/google-gemini/gemini-cli --skill code-reviewer

Code Reviewer

This skill guides the agent in conducting professional and thorough code reviews for both local development and remote Pull Requests.

Workflow

1. Determine Review Target

  • Remote PR: If the user provides a PR number or URL (e.g., "Review PR #123"), target that remote PR.
  • Local Changes: If no specific PR is mentioned, or if the user asks to "review my changes", target the current local file system states (staged and unstaged changes).

2. Preparation

For Remote PRs:

  1. Checkout: Use the GitHub CLI to checkout the PR.
    gh pr checkout <PR_NUMBER>
    
  2. Preflight: Execute the project's standard verification suite to catch automated failures early.
    npm run preflight
    
  3. Context: Read the PR description and any existing comments to understand the goal and history.

For Local Changes:

  1. Identify Changes:
    • Check status: git status
    • Read diffs: git diff (working tree) and/or git diff --staged (staged).
  2. Preflight (Optional): If the changes are substantial, ask the user if they want to run npm run preflight before reviewing.

3. In-Depth Analysis

Analyze the code changes based on the following pillars:

  • Correctness: Does the code achieve its stated purpose without bugs or logical errors?
  • Maintainability: Is the code clean, well-structured, and easy to understand and modify in the future? Consider factors like code clarity, modularity, and adherence to established design patterns.
  • Readability: Is the code well-commented (where necessary) and consistently formatted according to our project's coding style guidelines?
  • Efficiency: Are there any obvious performance bottlenecks or resource inefficiencies introduced by the changes?
  • Security: Are there any potential security vulnerabilities or insecure coding practices?
  • Edge Cases and Error Handling: Does the code appropriately handle edge cases and potential errors?
  • Testability: Is the new or modified code adequately covered by tests (even if preflight checks pass)? Suggest additional test cases that would improve coverage or robustness.

4. Provide Feedback

Structure

  • Summary: A high-level overview of the review.
  • Findings:
    • Critical: Bugs, security issues, or breaking changes.
    • Improvements: Suggestions for better code quality or performance.
    • Nitpicks: Formatting or minor style issues (optional).
  • Conclusion: Clear recommendation (Approved / Request Changes).

Tone

  • Be constructive, professional, and friendly.
  • Explain why a change is requested.
  • For approvals, acknowledge the specific value of the contribution.

5. Cleanup (Remote PRs only)

  • After the review, ask the user if they want to switch back to the default branch (e.g., main or master).

Mais skills de google-gemini

agent-tui
google-gemini
Main Agents: Do NOT use this skill directly. If you need to test the TUI, invoke the `tui_tester` subagent. Drive terminal UI (TUI) applications…
gemini-api-cli
google-gemini
Guia para usar a ferramenta de linha de comando da API Gemini. Use quando precisar interagir com a API Gemini via linha de comando, gerenciar agentes ou gerar mídia (imagens,…
behavioral-evals
google-gemini
Orientação para criar, executar, corrigir e promover avaliações comportamentais. Use ao verificar a lógica de decisão do agente, depurar falhas, depurar prompt…
gemini-live-api-dev
google-gemini
We need to translate the given text from English to Brazilian Portuguese. The text describes a real-time bidirectional streaming capability with Gemini over WebSockets. It mentions audio, video, text, audio input/output specs, video frames, automatic transcriptions, voice activity detection, interruption handling, native audio features (affective dialog, proactive audio, thinking mode), function calling, Google Search grounding, session management with context compression, resumption, etc. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "gemini-live-api-dev" is not in the text, so we don't include it. We only translate the text inside <text>. No extra commentary, no labels. The text ends with "and..." so we keep that as is. Translation: "Streaming bidirecional em tempo real com Gemini via WebSockets para conversas de áudio, vídeo e texto. Suporta entrada/saída de áudio (PCM 16 kHz), quadros de vídeo, texto e transcrições automáticas com detecção
gemini-omni-flash-api
google-gemini
Use esta habilidade para edição generativa de vídeo, texto para vídeo, geração de vídeo com referência de imagem e animações de transição de primeiro quadro para vídeo usando o…
gemini-api-dev
google-gemini
We need to translate the given text from English to Brazilian Portuguese. The text describes building applications with Google's Gemini models. We must preserve product names, protocol names, URLs, numbers, technical terms. The name "gemini-api-dev" is not in the text, so we don't include it. We translate only the text inside <text>. No extra commentary, no labels. The text: "Build applications with Google's Gemini models, supporting multimodal content, function calling, and structured outputs across Python, JavaScript, Go, and Java. Access current Gemini 3 models (Pro, Flash, Pro Image) with 1M token context; legacy Gemini 2.x and 1.5 models are deprecated Supports text generation, image/audio/video understanding, function calling, structured JSON output, code execution, context caching, and embeddings Official SDKs available: google-genai (Python),..." We need to translate fluently but preserve terms like "Gemini models", "multimodal content", "function calling", "structured outputs", "Python", "JavaScript", "Go",
gemini-interactions-api
google-gemini
Interface unificado para modelos e agentes Gemini com estado no servidor, streaming e orquestração de ferramentas. Suporta vários modelos atuais (gemini-3-flash-preview, gemini-3-pro-preview, gemini-2.5-flash/pro) e o agente Deep Research; substitui automaticamente IDs de modelos obsoletos por alternativas atuais. Descarrega o histórico de conversas para o servidor via previous_interaction_id para interações multi-turno com estado, sem gerenciamento manual de histórico. Orquestração de ferramentas integrada, incluindo...
deliver
google-gemini
Publica uma versão condensada do briefing em um webhook de entrada do Google Chat ou Slack, para que a execução diária se entregue sozinha — pula silenciosamente quando não há webhook…