Community코딩 & 개발github.com

GitHub

GitHub CLI로 이슈, PR, CI/체크 로그, 댓글, 리뷰, 릴리스, 레포지토리 및 gh API 쿼리를 처리합니다.

GitHub란 무엇인가요?

이 스킬은 AI 에이전트가 `gh` CLI를 통해 GitHub 작업을 수행할 수 있도록 지원합니다. PR 생성 및 병합, 이슈 관리, CI 실행 확인 및 재실행, GitHub API 호출 등 포괄적인 GitHub 작업을 CLI 명령어로 처리합니다. 특히 비동기 병합(Octopool 사용)에 대한 상세한 가이드를 제공하여, 리뷰된 헤드 SHA를 기반으로 안전하고 정확한 PR 병합을 보장합니다. 또한, 에이전트가 PR을 병합할 때 최종 상태를 확인하고, 리뷰 결과나 CI 상태에 따라 추가 작업을 수행하며, 차단된 경우 정확한 이유를 보고하도록 명시합니다. 이 스킬은 GitHub CLI를 사용하는 모든 환경(예: Claude Code, Cursor, Codex)에서 활용 가능하며, 사용자가 에이전트에게 GitHub 관련 작업을 지시할 때 일관되고 안전한 결과를 제공합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/github

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

GitHub은(는) 무엇을 하나요?

GitHub 작업에는 gh를 사용합니다. 로컬 커밋/브랜치/푸시/풀에는 git을 사용합니다. 심층 리뷰에는 코드 읽기 도구를 사용하세요.

인증

gh auth status
gh auth login

게이트웨이의 HOME은 운영자 HOME과 다를 수 있습니다. 다른 곳에 gh 인증이 있는 경우, 게이트웨이 서비스 환경에 GH_CONFIG_DIR을 설정하고 재시작하세요.

PR

gh pr list --repo owner/repo --json number,title,state,author,url
gh pr view 55 --repo owner/repo --json title,body,author,files,commits,reviews,reviewDecision
gh pr checks 55 --repo owner/repo
gh pr diff 55 --repo owner/repo
gh pr create --repo owner/repo --title "feat: title" --body-file /tmp/pr.md

PR 본문을 생성하거나 새로 고칠 때, Runtime 라인이 sessionUrl=<정확한-url>을 제공하는 경우에만 이 최종 푸터를 추가하세요. <sessionUrl>을 해당 URL로 그대로 대체하고, 구성하거나 수정하지 마세요. sessionUrl은 명시적으로 공개된 세션에 대해서만 제공됩니다. 없으면 푸터를 생략하고, 비공개 채팅 URL을 대체하거나 공유를 활성화하여 얻지 마세요. 정확히 하나의 푸터 앞에 있는 게시 마커를 유지하고 푸터를 마지막에 두세요.

---
[OpenClaw 팀 세션 보기](https://raw.githubusercontent.com/clawdbot/clawdbot/main/<sessionUrl>)

URL은 직접 작동합니다: gh pr view https://github.com/owner/repo/pull/55.

비동기 병합

제공되는 경우 리포지토리의 기본 랜딩 워크플로우를 사용하세요. 다른 곳에서 승인된 프로그래밍 방식 병합의 경우, GitHub의 비동기 병합 API를 gh api를 통해 사용하세요. gh pr merge는 이 API를 선택하지 않습니다. 리뷰된 헤드 SHA를 제공하고, 필요한 리뷰/체크를 유지하며, 먼저 스택 멤버십을 확인하세요: 스택된 PR을 제출하면 열려 있는 다운스택 PR도 병합되거나 대기열에 추가되며, 이는 자체 리뷰와 승인이 필요합니다.

gh api -H 'X-Octopool-Require: merge-async-v1' \
  --method PUT repos/owner/repo/pulls/55/merge-async \
  -H 'X-GitHub-Api-Version: 2026-03-10' \
  -f sha=REVIEWED_HEAD_SHA -f merge_method=squash -f merge_action=direct_merge
gh api -H 'X-Octopool-Require: merge-async-v1' \
  repos/owner/repo/pulls/55/merge-async/REQUEST_UUID \
  -H 'X-GitHub-Api-Version: 2026-03-10' -H 'Cache-Control: max-age=0'

Octopool 가드 헤더를 api 다음에 먼저 두세요. 보호된 이전 래퍼는 병합 권한을 다시 작성하기 전에 이를 거부합니다. 거부되는 경우 비동기 가드가 포함된 Octopool 빌드를 사용하세요. 지원되는 래퍼는 SHA/메서드/작업/우회를 유지하고 커밋 텍스트만 다시 작성합니다. 네이티브 gh는 헤더를 전달할 수 있습니다. 거부를 해결하기 위해 이를 제거하거나, 정책을 비활성화하거나, 원시 바이너리를 선택하지 마세요.

폴링하기 전에 202 응답에서 details.uuid를 보관하세요. pending은 대기를 의미합니다. merged에는 details.sha가 포함되며, 이는 최종 PR/헤드 확인이 여전히 필요합니다. enqueued는 대기열에 추가되었음을 의미하며 병합된 것이 아닙니다. PR 자체를 모니터링하세요. 구성된 대기열을 적용하려면 merge_action=default(또는 명시적으로 대기열에 추가하려면 merge_queue)를 사용하고, 직접 전용 메서드/제목/메시지 필드는 생략하세요. 승인 없이 bypass_rules를 활성화하지 마세요.

failed 시 details.message를 보고하세요. 409는 기존 요청을 식별합니다. 재제출하지 않고 UUID와 옵션을 검사하세요. 손실된 응답, 폴링 오류 및 24시간 후 결과 만료는 블라인드 재시도나 동기식 폴백이 아닌 조정이 필요합니다. 제한된 대기와 새로 읽기로 폴링하세요. 비동기 처리는 충족되지 않은 검사에 대해 자동 병합을 활성화하지 않습니다. 해당 동작이 승인된 경우 기본 워크플로우나 gh pr merge --auto를 사용하세요.

랜딩 소유권

사용자가 PR을 랜딩하거나 병합하도록 요청하면, 최종 결과는 리뷰, 작업자 턴 또는 CI 관찰의 끝이 아니라 PR의 확인된 GitHub 상태입니다.

  • gh pr view ... --json state,mergedAt,mergeCommit이 state가 MERGED임을 증명할 때까지 작업을 활성 상태로 유지하세요.
  • 리뷰 결과, 병합 충돌, 실패한 검사 및 요청된 변경 사항이 범위 내에 있는 경우 계속 작업으로 처리하세요. 패치하고, 필요한 게이트를 재실행하며, 정확히 업데이트된 헤드를 재평가하세요.
  • 보류 중인 검사는 완료가 아닌 대기 상태입니다. 리포지토리에서 지원하는 대기 또는 병합 워크플로우를 사용하고, 부분적인 녹색 검사로 성공을 주장하지 마세요.
  • 지속 세션에 작업이 위임되었고 해당 실행이 병합 전에 중지된 경우, 보고서를 최종 결과로 처리하지 말고 동일한 세션을 계속하세요.
  • 계속하기 위해 새로운 권한, 사용할 수 없는 자격 증명 또는 안전하게 추론할 수 없는 제품 결정이 필요한 경우에만 차단된 것으로 중지하세요. 정확한 차단 요소를 보고하고 PR을 병합되지 않은 상태로 두세요.

이슈

gh issue list --repo owner/repo --state open --json number,title,labels,url
gh issue view 42 --repo owner/repo --json title,body,comments,labels,state
gh issue create --repo owner/repo --title "Bug: ..." --body-file /tmp/issue.md
gh issue comment 42 --repo owner/repo --body-file /tmp/comment.md
gh issue close 42 --repo owner/repo --comment "Fixed in ..."

CI/실행

gh run list --repo owner/repo --limit 10
gh run view <run-id> --repo owner/repo --json status,conclusion,headSha,url
gh run view <run-id> --repo owner/repo --log-failed
gh run rerun <run-id> --repo owner/repo --failed

API

gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
gh api repos/owner/repo/labels --jq '.[].name'
gh api --cache 1h repos/owner/repo --jq '{stars: .stargazers_count, forks: .forks_count}'

구조화된 출력을 위해 --json + --jq를 사용하세요. 백틱, 셸 스니펫, 환경 변수 이름 또는 사용자 텍스트가 포함된 댓글/본문에는 --body-file을 사용하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

관련 스킬