better-github-skill
Qué hace
Da al agente de IA tres ayudantes ya preparados para el estado de una pull request, los hilos de revisión y los controles de CI fallidos. Está pensada para desarrolladores que quieren respuestas rápidas sobre una pull request.
Cuándo usarla
- ✓Cuando quieres un informe completo del estado de una pull request, con los controles y las revisiones.
- ✓Cuando necesitas leer la conversación de revisión, incluidos los comentarios que aún no están resueltos.
- ✓Cuando una compilación de CI ha fallado y quieres saber qué paso falló y por qué.
Link de la skill
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/better-github-skill/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“¿Por qué fallaron los controles de CI en mi pull request y qué dijeron los revisores?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente ejecuta pequeños scripts que reúnen de una vez los detalles de la pull request, los hilos de revisión o los registros de los trabajos fallidos. Para cualquier otra cosa usa la herramienta normal de línea de comandos de GitHub.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
better-github-skill
Use these scripts only for the three flows listed below. Otherwise use raw
gh. Scripts run TypeScript with Bun and have no dependencies.
Scripts
| script | use for |
|---|---|
bun run scripts/pr-snapshot.ts [pr] [-R o/r] |
full PR state in one call: meta, mergeability, checks, files, reviews, comments, thread counts. Use instead of hand-assembling pr view --json field sets or chaining view/checks/comments calls. |
bun run scripts/pr-threads.ts [pr] [-R o/r] [--all] [--author X] [--since ISO] |
the full review conversation: review bodies, issue comments, and unresolved inline threads (resolution state porcelain gh cannot get). Resolved/outdated threads are hidden by default, counted in the header; --all includes them. Read-only: never reply to or resolve threads unless explicitly told to. |
bun run scripts/ci-failures.ts [run-id] [--pr N] [--list] [-R o/r] |
failing checks → failing jobs/steps → log snippet each; full logs saved to files (paths printed); rg those instead of re-fetching. --list [--workflow W] [-L n] shows recent runs with conclusions; use it to find the failing run id instead of gh run list --json field sets. |
Rule of thumb: pr-snapshot answers "what's the state of this PR", pr-threads answers "what did reviewers write". Neither replaces the other.
All scripts: --json for structured output, --help for usage (includes the
--json shape). Omit the PR number to use the current branch's PR. Default
output is sized for context; pass --full only when a truncation marker
([…+N chars]) hides something you need. They exit 0 when the report
succeeds even if CI is red or threads are unresolved.
Gotchas (each one burned real sessions repeatedly)
- Never pipe gh into
head: SIGPIPE can kill gh mid-write (spurious nonzero exit, shell-dependent) or silently truncate large output. Redirect to a file and read that, or trim with--jq '.[0:20]'. gh pr diffhas no--statand no positive pathspec (--name-onlyand-e/--excludeglobs exist in gh ≥ 2.95). Per-file stats:gh api 'repos/{owner}/{repo}/pulls/N/files' --jq '.[]|[.filename,.additions,.deletions]|@tsv'Full diff:gh pr diff N > "$TMPDIR/pr.diff"once, then rg/sed the file.gh pr checksexits 1 = failing, 8 = pending by design; append|| true, read the table.- File at any ref, no base64 dance:
gh api 'repos/{owner}/{repo}/contents/PATH?ref=SHA' -H 'Accept: application/vnd.github.raw' gh apifills{owner}/{repo}from the cwd repo (GH_REPO=o/roverrides). Quote any api path containing?(zsh globs it), or use-X GET -F per_page=100(any-f/-Fsilently flips the request to POST without-X GET).--paginateon any list endpoint (/comments,/files,/reviews);--jqalready runs per page; don't add--slurp.- PR/comment bodies:
--body-file file.mdor a quoted heredoc. Never inline--body "..."containing backticks. - Field cheat-sheet: CI status on a PR =
statusCheckRollup(pr view); steps live undergh run view N --json jobs;gh search prsfields ≠gh pr viewfields. - gh has no
-C; pass-R owner/repoto every command, or cd first. - Branch rules live at
gh api 'repos/{owner}/{repo}/rulesets'on modern repos;/branches/main/protection404s unless classic protection is on AND you have admin ("Branch not protected" or plain "Not Found" both mean check rulesets; neither is a path error). - Branch drift:
gh api 'repos/{owner}/{repo}/compare/BASE...HEAD' --jq '{ahead_by,behind_by}' - jq beyond one line: write the program to a file and
jq -f prog.jq; inline zsh quoting breaks. - Don't sleep-poll runs or checks;
gh run watch IDandgh pr checks N --watch --fail-fastexist; let the harness background them.
Preguntas frecuentes
¿Necesita software especial?
Sí. Los scripts se ejecutan con Bun, un entorno de ejecución de JavaScript, y funcionan junto con la herramienta de línea de comandos de GitHub.
¿Puede responder o resolver comentarios de revisión?
No. El script de hilos de revisión es de solo lectura, así que el agente no responde ni resuelve hilos a menos que se lo pidas de forma explícita.
¿En qué se diferencia de los comandos normales de GitHub?
Reúne varios tipos de información en una sola llamada y guarda los registros completos de CI en archivos, para que el agente no tenga que encadenar muchos comandos.
Detalles
Descripción original del autor
Use for 1) inspecting PR state, 2) reading review threads, or 3) debugging CI failures. Otherwise use the gh CLI.
repo: humanlayer/humanlayer
Popularidad
- Estrellas en GitHub
- 13 mil
- Posición en el ranking
- #11381
- Licencia
- Apache-2.0
- Actualizada
- 31/10/2026
Comentarios
- …
Más skills de este repositorio
asd-ste100
13 milEnseña a tu agente a reescribir inglés confuso en frases cortas de un solo significado, fáciles de leer para personas y para otros programas.
calldiff
13 milAyuda a tu agente a comparar las cadenas de llamadas a funciones de un código entre dos versiones de git, para que una revisión de código vea qué comportamiento cambió.
chrome-devtools-cli
13 milPermite que tu agente controle Chrome desde la terminal para abrir páginas, hacer clic, rellenar formularios y tomar instantáneas de páginas, para automatizar y probar el navegador.
effect-program-design
13 milAyuda a tu agente a diseñar y probar programas de producción con Effect v4, con servicios claros, errores tipados, capas y un manejo seguro de los recursos.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.