gh-issues
Qué hace
Esta skill lee incidencias abiertas de GitHub, hace que agentes auxiliares trabajen en las correcciones y abre pull requests para ellas. Es para desarrolladores que quieren vaciar más rápido su lista pendiente de errores.
Cuándo usarla
- ✓Cuando quieres trabajar en un conjunto de incidencias abiertas de GitHub, por ejemplo errores con una etiqueta concreta.
- ✓Cuando quieres que las correcciones se abran como pull requests para revisarlas.
- ✓Cuando quieres dar seguimiento a los comentarios de revisión de esas pull requests.
Link de la skill
https://github.com/spinabot/brigade/blob/main/skills/gh-issues/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
“Corrige las tres incidencias abiertas con la etiqueta bug en mi proyecto y abre una pull request para cada una.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La IA lee las incidencias de GitHub y ejecuta agentes auxiliares en paralelo, uno por incidencia. Después abre las pull requests, vigila los comentarios de revisión y los atiende.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
gh-issues — Auto-fix GitHub Issues with Parallel Sub-agents
You are an orchestrator. Follow these 6 phases exactly. Do not skip phases.
IMPORTANT — No gh CLI dependency. This skill uses curl + the GitHub REST API exclusively. The GH_TOKEN env var is already injected by Brigade. Pass it as a Bearer token in all API calls:
curl -s -H "Authorization: Bearer $GH_TOKEN" -H "Accept: application/vnd.github+json" ...
Phase 1 — Parse Arguments
Parse the arguments string provided after /gh-issues.
Positional:
- owner/repo — optional. This is the source repo to fetch issues from. If omitted, detect from the current git remote:
git remote get-url originExtract owner/repo from the URL (handles both HTTPS and SSH formats).- HTTPS: https://github.com/owner/repo.git → owner/repo
- SSH: git@github.com:owner/repo.git → owner/repo If not in a git repo or no remote found, stop with an error asking the user to specify owner/repo.
Flags (all optional):
| Flag | Default | Description |
|---|---|---|
| --label | (none) | Filter by label (e.g. bug, enhancement) |
| --limit | 10 | Max issues to fetch per poll |
| --milestone | (none) | Filter by milestone title |
| --assignee | (none) | Filter by assignee (@me for self) |
| --state | open | Issue state: open, closed, all |
| --fork | (none) | Your fork (user/repo) to push branches and open PRs from. Issues are fetched from the source repo; code is pushed to the fork; PRs are opened from the fork to the source repo. |
| --watch | false | Keep polling for new issues and PR reviews after each batch |
| --interval | 5 | Minutes between polls (only with --watch) |
| --dry-run | false | Fetch and display only — no sub-agents |
| --yes | false | Skip confirmation and auto-process all filtered issues |
| --reviews-only | false | Skip issue processing (Phases 2-5). Only run Phase 6 — check open PRs for review comments and address them. |
| --cron | false | Cron-safe mode: fetch issues and spawn sub-agents, exit without waiting for results. |
| --model | (none) | Model to use for sub-agents (e.g. glm-5, zai/glm-5). If not specified, uses the agent's default model. |
| --notify-channel | (none) | Telegram channel ID to send final PR summary to (e.g. -1002381931352). Only the final result with PR links is sent, not status updates. |
Store parsed values for use in subsequent phases.
Derived values:
- SOURCE_REPO = the positional owner/repo (where issues live)
- PUSH_REPO = --fork value if provided, otherwise same as SOURCE_REPO
- FORK_MODE = true if --fork was provided, false otherwise
If --reviews-only is set: Skip directly to Phase 6. Run token resolution (from Phase 2) first, then jump to Phase 6.
If --cron is set:
- Force
--yes(skip confirmation) - If
--reviews-onlyis also set, run token resolution then jump to Phase 6 (cron review mode) - Otherwise, proceed normally through Phases 2-5 with cron-mode behavior active
Phase 2 — Fetch Issues
Token Resolution: First, ensure GH_TOKEN is available. Check environment:
echo $GH_TOKEN
If empty, read from config:
CONFIG_PATH="${BRIGADE_CONFIG_PATH:-${BRIGADE_STATE_DIR:-$HOME/.brigade}/brigade.json}"
cat "$CONFIG_PATH" | jq -r '.skills.entries["gh-issues"].apiKey // empty'
If still empty, check /data/.brigade/brigade.json:
cat /data/.brigade/brigade.json | jq -r '.skills.entries["gh-issues"].apiKey // empty'
Export as GH_TOKEN for subsequent commands:
export GH_TOKEN="<token>"
Build and run a curl request to the GitHub Issues API via exec:
curl -s -H "Authorization: Bearer $GH_TOKEN" -H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/{SOURCE_REPO}/issues?per_page={limit}&state={state}&{query_params}"
Where {query_params} is built from:
- labels={label} if --label was provided
- milestone={milestone} if --milestone was provided (note: API expects milestone number, so if user provides a title, first resolve it via GET /repos/{SOURCE_REPO}/milestones and match by title)
- assignee={assignee} if --assignee was provided (if @me, first resolve your username via
GET /user)
IMPORTANT: The GitHub Issues API also returns pull requests. Filter them out — exclude any item where pull_request key exists in the response object.
If in watch mode: Also filter out any issue numbers already in the PROCESSED_ISSUES set from previous batches.
Error handling:
- If curl returns
Preguntas frecuentes
¿Puedo ver antes lo que hará?
Sí. Una opción de simulación te permite ver qué haría antes de cambiar nada.
¿Puede filtrar qué incidencias recoge?
Sí. Puedes filtrar por etiqueta, hito, persona asignada y estado, y elegir cuántas incidencias traer.
¿Puede seguir buscando trabajo nuevo?
Sí. Una opción de vigilancia le permite revisar incidencias nuevas y comentarios de revisión en un intervalo definido.
Detalles
Descripción original del autor
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
repo: spinabot/brigade
Popularidad
- Estrellas en GitHub
- 11 mil
- Posición en el ranking
- #11719
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
1password
11 milEnseña a tu agente a instalar la CLI de 1Password e iniciar sesión de forma segura, y a leer secretos guardados cuando los necesite.
apple-reminders
11 milPermite que tu agente vea, añada, edite, complete y borre Recordatorios de Apple desde la terminal, incluidas las listas y los filtros por fecha.
bluebubbles
11 milPermite que tu agente envíe y gestione iMessages mediante BlueBubbles, con textos, adjuntos, reacciones tapback, ediciones y ajustes de grupo.
camsnap
11 milPermite que tu agente tome instantáneas, clips cortos o vigile movimientos en cámaras de seguridad de red que ya tengas configuradas.
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.