본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)11k · #11719

gh-issues

하는 일

이 스킬은 열린 GitHub 이슈를 읽고, 도우미 에이전트가 수정 작업을 하게 하며, 그 결과로 풀 리퀘스트를 엽니다. 버그 백로그를 더 빨리 해결하려는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓버그 라벨이 붙은 열린 GitHub 이슈들을 차례로 처리하고 싶을 때.
  • ✓검토받을 수 있도록 수정을 풀 리퀘스트로 열고 싶을 때.
  • ✓그 풀 리퀘스트에 달린 검토 댓글을 따라가야 할 때.

스킬 링크

https://github.com/spinabot/brigade/blob/main/skills/gh-issues/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/spinabot/brigade/blob/main/skills/gh-issues/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제 프로젝트의 열린 bug 라벨 이슈 세 개를 수정하고, 각 이슈마다 풀 리퀘스트를 열어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 GitHub에서 이슈를 읽고, 이슈마다 하나씩 도우미 에이전트를 병렬로 실행합니다. 그다음 풀 리퀘스트를 열고, 검토 댓글을 지켜보며 처리합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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 origin Extract owner/repo from the URL (handles both HTTPS and SSH formats).

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-only is 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
자주 묻는 질문

실행 전에 무엇을 할지 미리 볼 수 있나요?

네. 드라이 런 옵션으로 아무것도 바꾸기 전에 어떤 일을 할지 볼 수 있습니다.

어떤 이슈를 고를지 거를 수 있나요?

네. 라벨, 마일스톤, 담당자, 상태로 거를 수 있고, 가져올 이슈의 수도 정할 수 있습니다.

새 작업을 계속 확인할 수 있나요?

네. 감시 옵션을 켜면 정해진 간격마다 새 이슈와 검토 댓글을 확인합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
11k
순위
#11719
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬