better-github-skill
하는 일
이 스킬은 에이전트에게 풀 리퀘스트 상태, 리뷰 대화, 실패한 CI 검사를 위한 세 가지 준비된 도우미를 제공합니다. 풀 리퀘스트에 대해 빠른 답을 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓검사와 리뷰를 포함한 풀 리퀘스트 전체 상태 보고서가 필요할 때.
- ✓아직 해결되지 않은 댓글을 포함해 리뷰 대화를 읽어야 할 때.
- ✓CI 빌드가 실패해서 어느 단계가 왜 깨졌는지 알고 싶은 경우.
스킬 링크
https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/better-github-skill/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 풀 리퀘스트의 CI 검사가 왜 실패했고, 리뷰어들은 무엇이라고 했나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 작은 스크립트를 실행해 풀 리퀘스트 세부 정보, 리뷰 스레드, 실패한 작업 로그를 한 번에 모읍니다. 그 밖의 작업에는 일반 GitHub 명령줄 도구를 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
특별한 프로그램이 필요한가요?
네. 스크립트는 JavaScript 런타임인 Bun으로 실행되며 GitHub 명령줄 도구와 함께 작동합니다.
리뷰 댓글에 답하거나 해결할 수 있나요?
아니요. 리뷰 스레드 스크립트는 읽기 전용이라, 명시적으로 요청하지 않으면 스레드에 답하거나 해결하지 않습니다.
일반 GitHub 명령과 무엇이 다른가요?
여러 종류의 정보를 한 번의 호출로 모으고 전체 CI 로그를 파일에 저장하므로, 에이전트가 많은 명령을 연결할 필요가 없습니다.
상세 정보
작성자의 원본 설명
Use for 1) inspecting PR state, 2) reading review threads, or 3) debugging CI failures. Otherwise use the gh CLI.
repo: humanlayer/humanlayer
인기도
- GitHub 스타
- 13k
- 순위
- #11381
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
asd-ste100
13k혼동되는 영어를 짧고 뜻이 하나뿐인 문장으로 다시 써서, 사람과 다른 소프트웨어가 쉽게 읽을 수 있게 하도록 에이전트를 가르칩니다.
calldiff
13k두 git 버전 사이 코드베이스의 함수 호출 체인을 비교해, 코드 리뷰에서 어떤 동작이 바뀌었는지 볼 수 있도록 에이전트를 돕습니다.
chrome-devtools-cli
13k에이전트가 터미널에서 Chrome을 제어해 페이지를 열고, 클릭하고, 양식을 채우고, 페이지 스냅숏을 찍어 브라우저 자동화와 테스트를 하도록 돕습니다.
effect-program-design
13k명확한 서비스, 타입이 있는 오류, 레이어, 안전한 리소스 처리로 실제 운영 가능한 Effect v4 프로그램을 설계하고 테스트하도록 에이전트를 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.