github-triage
Qué hace
Ordena los issues y pull requests abiertos de un repositorio de GitHub, encuentra los ya resueltos y vincula los issues con sus correcciones. Es para mantenedores que quieren vaciar el acumulado de issues.
Cuándo usarla
- ✓Cuando un mantenedor quiere ordenar los issues y pull requests abiertos de un repositorio.
- ✓Cuando un mantenedor encuentra correcciones que llegaron sin cerrar sus issues.
- ✓Cuando un mantenedor tiene pull requests listos acumulados y quiere revisarlos o integrarlos.
Link de la skill
https://github.com/trailofbits/skills/blob/main/plugins/github-triage/skills/github-triage/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
“Revisa los issues y pull requests abiertos de mi repo y dime qué se puede cerrar o integrar.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill revisa los elementos abiertos con la herramienta gh, encuentra los issues que ya están corregidos y vincula los issues con sus correcciones pendientes. Asigna estimaciones locales de prioridad y tamaño, y propone cada integración o cierre para tu aprobación.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
GitHub Triage
Triage a repository's open GitHub issues and pull requests. Optionally clear ready PRs first (merge passing bot PRs and maintainer-approved PRs, review never-reviewed ones), then close issues that are already resolved (with a comment citing the PR or commit that resolved them), make sure issues and the pending PRs that fix them reference each other, and assign a local-only priority and change-size estimate to every issue that is still outstanding.
When to Use
- When the user runs
/github-triageto groom or review a repository's open issues and pull requests. - When an issue backlog has drifted: resolved work left open, fixes landed without closing their issues, or PRs in flight that never linked their issue.
- When ready PRs have piled up (passing dependency bumps, approved-and-green PRs) or PRs are sitting unreviewed.
When NOT to Use
- Do not invoke automatically. This skill performs irreversible GitHub writes (merging PRs, closing issues, posting comments) and runs only on explicit invocation.
- Do not use to apply priority/effort labels on GitHub. Priority and size are presented locally only and are never posted (see Safety Rules).
- Do not use as a substitute for a human's final merge decision — every merge is proposed for explicit approval, never performed autonomously.
Core Principles
- Writes are gated. Compute the full triage first, present every proposed write — merges included — for review, and execute nothing until the user approves.
- Evidence before closing. Never close an issue without a concrete, cited reason (a merged PR or a commit on the default branch). When evidence is weak or ambiguous, leave the issue outstanding and flag it for review.
- Priority and size stay local. They are an internal planning aid for the user, never written to GitHub.
Workflow
Phase 0: Select the target repository
gh auth status # confirm gh is authenticated
git rev-parse --is-inside-work-tree # is PWD a git repository?
git remote -v # enumerate remotes
Determine the set of distinct GitHub-hosted repositories among the remotes.
A remote is GitHub-hosted when its URL host is github.com, in any of these forms:
https://github.com/OWNER/REPO(.git)git@github.com:OWNER/REPO(.git)ssh://git@github.com/OWNER/REPO(.git)
Normalize each to OWNER/REPO and de-duplicate (a fork setup may have origin
and upstream pointing at different GitHub repos; multiple remotes pointing at
the same OWNER/REPO count once).
Selection rule:
| Situation | Action |
|---|---|
| Exactly one distinct GitHub repo | Use it as the default — do not prompt. |
| Not a git repo, or zero GitHub remotes | Ask the user for the OWNER/REPO to triage. |
| More than one distinct GitHub repo | Use AskUserQuestion to let the user pick which OWNER/REPO. |
GitHub Enterprise hosts cannot be auto-detected reliably. If the user works on a GHE instance, ask for
OWNER/REPOand have them setGH_HOST/ usegh's configured host. Confirm the resolved repo back to the user before continuing.
Store the result as REPO="OWNER/REPO" and pass -R "$REPO" to every gh call.
Validate it against ^[A-Za-z0-9._-]+/[A-Za-z0-9._-]+$ before use, so a malformed or
hostile remote URL never flows into a command.
Phase 1: Gather issues and context
# Open issues (gh issue list excludes PRs by default)
gh issue list -R "$REPO" --state open --limit 1000 \
--json number,title,body,labels,assignees,comments,reactionGroups,createdAt,updatedAt,url
# Open PRs — candidates for "pending fix" (issue phase) and PR triage (Phase 2)
gh pr list -R "$REPO" --state open --limit 1000 \
--json number,title,body,author,isDraft,reviewDecision,latestReviews,\
mergeable,mergeStateStatus,statusCheckRollup,labels,createdAt,headRefName,url,closingIssuesReferences
# Recently merged PRs — candidates for "already resolved"
gh pr list -R "$REPO" --state merged --limit 300 \
--json number,title,body,mergedAt,url,closingIssuesReferences
closingIssuesReferences lists the issues a PR is linked to close — populated by any
of GitHub's closing keywords (close/closes/closed, fix/fixes/fixed,
resolve/resolves/resolved) in the PR body, or by a manual UI link. It is the
strongest available signal. For issues it does not cover, also search commit messages
on the default branch. Re
Preguntas frecuentes
¿Integrará o cerrará cosas por sí sola?
No. Las integraciones y los cierres se proponen para aprobación explícita, y la skill no los ejecuta por su cuenta.
¿Las etiquetas de prioridad se publican en GitHub?
No. Las estimaciones de prioridad y tamaño se muestran en local y nunca se publican.
¿Se ejecuta automáticamente?
No. Solo se ejecuta cuando la invocas, porque hace cambios irreversibles en GitHub.
Detalles
Descripción original del autor
Triages a repository's open GitHub issues and pull requests via the gh CLI. Optionally reviews and merges ready PRs — incrementally merging passing automated/bot PRs and maintainer-approved ones, and spawning review subagents for never-reviewed ones — then closes already-resolved issues with comments citing the resolving PR or commit, cross-links issues with their pending fix PRs, and assigns local-only priority and change-size estimates for everything outstanding. Use when triaging, grooming, or reviewing a repository's open issues and PRs.
repo: trailofbits/skills
Popularidad
- Estrellas en GitHub
- 8,0 mil
- Posición en el ranking
- #12681
- Licencia
- CC-BY-SA-4.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
audit-context-building
8,0 milAyuda a tu agente a conocer un código desconocido antes de una revisión de seguridad, mapeando qué supone, garantiza y necesita cada función.
algorand-vulnerability-scanner
8,0 milAyuda a tu agente a revisar contratos de Algorand en TEAL o PyTeal en busca de 11 problemas de seguridad comunes, como el rekeying o las tarifas sin control.
audit-prep-assistant
8,0 milAyuda a tu agente a preparar tu código para una auditoría de seguridad externa, con análisis estático, pruebas, limpieza de código muerto y buena documentación.
cairo-vulnerability-scanner
8,0 milAyuda a tu agente a revisar contratos de Cairo en StarkNet en busca de 6 problemas graves, como desbordamientos, mensajes arriesgados entre capas y firmas repetidas.
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.