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

github-triage

하는 일

GitHub 저장소의 열린 이슈와 풀 리퀘스트를 분류하고, 이미 해결된 것을 찾고, 이슈를 해당 수정과 연결합니다. 이슈 백로그를 정리하려는 관리자를 위한 것입니다.

사용하는 경우

  • ✓관리자가 저장소의 열린 이슈와 풀 리퀘스트를 정리하고 싶을 때.
  • ✓관리자가 이슈를 닫지 않은 채 들어간 수정을 발견할 때.
  • ✓관리자에게 준비된 풀 리퀘스트가 쌓여 있어서 검토하거나 병합하려는 경우.

스킬 링크

https://github.com/trailofbits/skills/blob/main/plugins/github-triage/skills/github-triage/SKILL.md

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

사용 방법

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

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

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

AI에게 요청하는 예시

“제 저장소의 열린 이슈와 풀 리퀘스트를 살펴보고, 닫거나 병합할 수 있는 것을 알려 주세요.”

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

작동 방식

이 스킬은 gh 도구로 열린 항목을 확인하고, 이미 고쳐진 이슈를 찾으며, 이슈를 대기 중인 수정과 연결합니다. 우선순위와 크기 추정은 로컬에만 붙이고, 병합이나 닫기는 승인을 받도록 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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-triage to 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

  1. Writes are gated. Compute the full triage first, present every proposed write — merges included — for review, and execute nothing until the user approves.
  2. 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.
  3. 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/REPO and have them set GH_HOST / use gh'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

자주 묻는 질문

스스로 병합하거나 닫나요?

아니요. 병합과 닫기는 명시적인 승인을 받도록 제안되며, 스킬이 단독으로 실행하지 않습니다.

우선순위 라벨이 GitHub에 올라가나요?

아니요. 우선순위와 크기 추정은 로컬에만 표시되며 절대 올리지 않습니다.

자동으로 실행되나요?

아니요. 되돌릴 수 없는 GitHub 변경을 하므로, 직접 호출할 때만 실행됩니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
8.0k
순위
#12681
라이선스
CC-BY-SA-4.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬