Skills Agentes

Code Review

Revisa pull requests de GitHub CLI (gh) contra las convenciones del código base.

Estrellas
46.4k

en todo el repo

Actividad
58

0–100, la ruta de este skill

Actualizado
hace 2 meses

último commit aquí

Commits
1

últimos 90 días

Contexto
1.4k tok

17 tok en reposo

Paquete
1 archivo

6 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add cli/cli --skill code-review --agent claude-code

Se instala solo en este repositorio.

Qué hace

  • Revisa pull requests de gh (GitHub CLI) contra las convenciones de AGENTS.md del repo.
  • Clasifica cada hallazgo por severidad: Requirement (bloqueante), Commentary y Nit.
  • Distingue cambios que rompen el contrato interactivo de los que rompen el no interactivo (scripts).
  • Busca lógica duplicada que ya existe en paquetes compartidos, api, git o la librería estándar de Go.
  • Evalúa también el alcance del PR y si los commits son revisables.

Úsalo cuando

  • Al revisar un pull request del repositorio cli/cli (gh).
  • Cuando hace falta juzgar si un cambio rompe el contrato no interactivo (scripts) de un comando.

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • “Revisa este PR de gh CLI contra las convenciones de AGENTS.md”
    • “¿Este cambio rompe el contrato no interactivo de gh?”
    • “Busca lógica duplicada en este PR de la CLI”

    SKILL.md

    En inglés

    CLI Code Reviewer

    You review pull requests for the GitHub CLI (gh). Hold each change to the conventions in AGENTS.md and hunt for the issues below.

    Understand intent first

    Before critiquing the diff, establish what the change is for and whether it was agreed.

    • Read the linked issue, its comments, and the PR description for the spec and acceptance criteria.
    • Search related issues, pull requests, and commits for prior decisions on the same idea.
    • Prefer correctness and regression findings over style. Verify a claim against the code before raising it, so the review posts no false positives.

    Conventions

    AGENTS.md at the repo root is the authoritative convention set. Read it fresh and hold every changed file to it; its rules take precedence over your own preferences.

    What to look for

    🛑 Requirement

    Severity: blocking

    • A change that contradicts a past maintainer decision. Cite the commit, pull request, or issue where the idea was rejected.
    • A breaking change the PR does not document or a maintainer has not approved. See What counts as breaking below.
    • A downstream break, such as changing an error-message string that a later conditional keys on.
    • New or changed API surface: validate it, and confirm whether feature detection or other GHES handling is required.
    • New behavior that ships without tests. Every new branch, validator, and error case needs coverage, not just the happy path.
    • Logic that reimplements something the codebase already makes reusable.
      • Search for an existing equivalent before accepting new helper code, and flag the duplication.
      • Look first in:
        • the command set's shared package, for logic shared across its subcommands
        • the top-level api and git packages, for operations that span command sets
        • cross-cutting internal helpers such as internal/text
        • the Go standard library
    • A bug, a security issue, or otherwise incorrect behavior.
    • A violated AGENTS.md rule, or a failing go test ./... or make lint.

    💭 Commentary

    Severity: non-blocking

    • Go modernization the toolchain would apply, such as what go fix would change.
    • Any issues reported by running golangci-lint run, or any non-empty diff returned by golangci-lint fmt --diff.
    • A refactor that meaningfully cuts lines of code.
    • An alternative approach with different trade-offs.
    • Command-local logic that might be worth exporting / migrating into a shared package.

    💅 Nit

    Severity: non-blocking

    • Overly long or pointless comments to shorten.
    • Readability and naming.

    Scope and reviewability

    Severity: non-blocking

    Beyond the code, review the shape of the PR and advise on how to make it reviewable.

    • Scope: keep a PR to one concern. Flag a PR that bundles an unrelated refactor or fix with its main change, and name what to split out.
    • Commits: commits should be atomic and easy to review. Large mechanical or repetitive changes in one commit are fine, but flag complex logic crammed into a single commit or a history that is hard to follow. Read the code and suggest reviewable chunks to break it into.

    What counts as breaking

    A change can be breaking even when it is intentional, well-reasoned, and documented. Do not wave one through because the PR argues it is an improvement. Judge it by who consumes the behavior:

    • Interactive (TTY): a human runs the command, reads the output, and answers prompts. They can pick a different option or read a changed label, so changes to interactive flows are not breaking.
    • Non-interactive (non-TTY): a script runs the command, passes flags, and consumes output deterministically. Changing anything a script depends on is breaking.

    Flag a change to the non-interactive contract as a requirement:

    • Moving output between stdout and stderr, or changing what a command writes on the non-TTY path. Scripts redirect and consume those streams.
    • Changing the output a script parses, such as a --json field or a command's default output.
    • Changing a default value or behavior on the non-interactive path.
    • Tightening the input a flag accepts, so a value that used to work now errors.
    • Changing an exit code, or erroring where the command used to succeed.
    • Changing an error message
    • Renaming any command input: flags, arguments, or subcommands.

    How to report

    Each finding needs a severity label:

    • 🛑 Requirement: a breaking change, security concern, deviation from convention.
    • 💭 Commentary: a non-blocking improvement or food for thought.
    • 💅 Nit: a non-blocking, minor polish.

    Structure the review this way:

    • Group findings by severity: requirements first, then commentary, then nits.

    Write each finding with this style guide:

    • Label it with its severity label.
    • Describing behavior changes from a user perspective is a helpful framing tool; "A user who runs gh foo bar will have this problem".
    • Use annotated code blocks to help highlight the problem and the fix where it is appropriate to do so.
    • Describe each finding in plain language, ramp up to the technical details as needed, giving plain language exposition.
    • Avoid inline code spans referring to type names, functions, etc.; prefer annotated code blocks.
    • OPTIONAL: Include a "References" section with links to related issues, pull requests, or commits that provide context for the finding.
      • High value references are things like a prior PR that rejected the same idea, or a commit that introduced the code in question, or a maintainer's comment regarding this logic.

    Write each finding with this template:

    <SEVERITY LABEL>: <1-LINE SUMMARY OF THE FINDING>
    
    <DETAILS>
    
    References:
    <OTHER ISSUE AND PR CONTEXT>
    

    Reproducido de cli/cli bajo licencia MIT. Leer esta página en markdown.

    Archivos

    1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Antes de instalar

    Necesita el AGENTS.md del repo como fuente de convenciones y acceso a issues, PRs y commits relacionados para verificar decisiones previas.

    Detalles

    Creador
    cli
    Categoría
    Testing y QA
    Licencia
    MIT
    Recursos incluidos
    Solo SKILL.md
    Repositorio
    cli/cli
    Código fuente
    Ver SKILL.md

    Etiquetas

    Más de cli/cli

    Este repo incluye 6 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack cli entero y su comando de instalación

    Gh

    46.4k

    Patrones para invocar GitHub CLI (gh) desde agentes: salida estructurada, paginación, selección de repo, search vs. list, y el fallback a gh api.

    Costo de contexto al activarse
    2.9k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    herramientas desarrollo

    Evalúa un PR abierto de Dependabot y publica una recomendación (Merge / Review / Do not merge) con nivel de confianza, basada en los cambios reales upstream. Solo asesora, nunca fusiona ni aprueba.

    Costo de contexto al activarse
    5.4k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    devops infraestructura

    Paga una pequeña deuda técnica del código de GitHub CLI por corrida y abre un pull request listo para revisar. Pensado para correr desatendido en un cronograma; nunca fusiona ni amplía el alcance.

    Costo de contexto al activarse
    5.1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    herramientas desarrollo

    Enruta las solicitudes de diseño, creación, depuración o actualización de workflows de gh-aw (GitHub Agentic Workflows) al prompt correcto.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    devops infraestructura

    Gestiona Agent Skills con 'gh skill': descubre, previsualiza, instala, actualiza y publica skills para que un agente mantenga sincronizado su propio conjunto de habilidades.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 6 meses
    herramientas desarrollo

    Skills relacionados

    Enruta las solicitudes de diseño, creación, depuración o actualización de workflows de gh-aw (GitHub Agentic Workflows) al prompt correcto.

    Costo de contexto al activarse
    1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    devops infraestructura

    Evalúa un PR abierto de Dependabot y publica una recomendación (Merge / Review / Do not merge) con nivel de confianza, basada en los cambios reales upstream. Solo asesora, nunca fusiona ni aprueba.

    Costo de contexto al activarse
    5.4k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 3 meses
    devops infraestructura

    Gh

    46.4k

    Patrones para invocar GitHub CLI (gh) desde agentes: salida estructurada, paginación, selección de repo, search vs. list, y el fallback a gh api.

    Costo de contexto al activarse
    2.9k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    herramientas desarrollo