github
できること
このスキルは、AIがコマンドラインからGitHubのプロジェクトを扱えるようにします。プルリクエスト、Issue、自動チェックを扱う、GitHub上でコードを管理する開発者向けです。
使う場面
- ✓プルリクエストの状態や、その自動チェックの状況を確認したいとき。
- ✓GitHubのIssueを作成、クローズ、またはコメントしたいとき。
- ✓ワークフローの実行ログを見る必要があるとき。
スキルのリンク
https://github.com/spinabot/brigade/blob/main/skills/github/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“リポジトリのプルリクエスト55の状態と、失敗しているチェックを見せてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、サインインしていることを確認したうえで、リポジトリと項目番号を指定してGitHubのコマンドラインツールを実行します。項目の一覧表示、表示、作成ができ、ワークフローの実行からログを読むこともできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
GitHub Skill
Use the gh CLI to interact with GitHub repositories, issues, PRs, and CI.
When to Use
✅ USE this skill when:
- Checking PR status, reviews, or merge readiness
- Viewing CI/workflow run status and logs
- Creating, closing, or commenting on issues
- Creating or merging pull requests
- Querying GitHub API for repository data
- Listing repos, releases, or collaborators
When NOT to Use
❌ DON'T use this skill when:
- Local git operations (commit, push, pull, branch) → use
gitdirectly - Non-GitHub repos (GitLab, Bitbucket, self-hosted) → different CLIs
- Cloning repositories → use
git clone - Reviewing actual code changes → use
coding-agentskill - Complex multi-file diffs → use
coding-agentor read files directly
Setup
# Authenticate (one-time)
gh auth login
# Verify
gh auth status
Common Commands
Pull Requests
# List PRs
gh pr list --repo owner/repo
# Check CI status
gh pr checks 55 --repo owner/repo
# View PR details
gh pr view 55 --repo owner/repo
# Create PR
gh pr create --title "feat: add feature" --body "Description"
# Merge PR
gh pr merge 55 --squash --repo owner/repo
Issues
# List issues
gh issue list --repo owner/repo --state open
# Create issue
gh issue create --title "Bug: something broken" --body "Details..."
# Close issue
gh issue close 42 --repo owner/repo
CI/Workflow Runs
# List recent runs
gh run list --repo owner/repo --limit 10
# View specific run
gh run view <run-id> --repo owner/repo
# View failed step logs only
gh run view <run-id> --repo owner/repo --log-failed
# Re-run failed jobs
gh run rerun <run-id> --failed --repo owner/repo
API Queries
# Get PR with specific fields
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
# List all labels
gh api repos/owner/repo/labels --jq '.[].name'
# Get repo stats
gh api repos/owner/repo --jq '{stars: .stargazers_count, forks: .forks_count}'
JSON Output
Most commands support --json for structured output with --jq filtering:
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
gh pr list --json number,title,state,mergeable --jq '.[] | select(.mergeable == "MERGEABLE")'
Templates
PR Review Summary
# Get PR overview for review
PR=55 REPO=owner/repo
echo "## PR #$PR Summary"
gh pr view $PR --repo $REPO --json title,body,author,additions,deletions,changedFiles \
--jq '"**\(.title)** by @\(.author.login)\n\n\(.body)\n\n📊 +\(.additions) -\(.deletions) across \(.changedFiles) files"'
gh pr checks $PR --repo $REPO
Issue Triage
# Quick issue triage view
gh issue list --repo owner/repo --state open --json number,title,labels,createdAt \
--jq '.[] | "[\(.number)] \(.title) - \([.labels[].name] | join(", ")) (\(.createdAt[:10]))"'
Notes
- Always specify
--repo owner/repowhen not in a git directory - Use URLs directly:
gh pr view https://github.com/owner/repo/pull/55 - Rate limits apply; use
gh api --cache 1hfor repeated queries
よくある質問
ログインが必要ですか?
はい。このスキルが動く前に、GitHubのコマンドラインツールで一度サインインしておく必要があります。
コードの変更をレビューできますか?
直接はできません。コード変更のレビューは、別のコーディングエージェントのスキルのほうが適しています。
プルリクエストをマージできますか?
はい。依頼があれば、プルリクエストをマージできます。
詳細
作者による元の説明
GitHub operations via `gh` CLI: issues, PRs, CI runs, code review, API queries. Use when: (1) checking PR status or CI, (2) creating/commenting on issues, (3) listing/filtering PRs or issues, (4) viewing run logs. NOT for: complex web UI interactions requiring manual browser flows (use browser tooling when available), bulk operations across many repos (script with gh api), or when gh auth is not configured.
repo: spinabot/brigade
人気
- GitHubのスター
- 11k
- ランキング
- #11721
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
1password
11kエージェントが、1Passwordのコマンドラインツールを設定し、安全にサインインできるようにしたうえで、必要なときに保存された秘密情報を読み取るか、注入できるよう支援します。
apple-reminders
11kエージェントが、ターミナルからAppleのリマインダーを表示、追加、編集、完了、削除できるよう支援します。リストや日付による絞り込みも含みます。
bluebubbles
11kエージェントが、BlueBubblesを通じてiMessageの送信と管理を行えるよう支援します。テキスト、添付ファイル、タップバックのリアクション、編集、グループ設定を含みます。
camsnap
11kエージェントが、すでに設定済みのネットワーク防犯カメラから、スナップショット、短い動画、動きの監視を行えるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。