本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)48k · #4751

github

できること

このツールは、開発者がコードを保存・共有するWebサイトであるGitHubとのやり取りを支援します。プロジェクトの状態の確認、Issueの閲覧、コードレビューの確認などができます。

使う場面

  • ✓GitHubのプロジェクトが正しく動いているか確認したいとき。
  • ✓プロジェクトのエラーの詳細を確認したいとき。
  • ✓コードレビュー(Pull Request)の一覧や状態を確認したいとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/github/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“リポジトリ'my-user/my-project'のPull Request 55番の状態を確認して。”

毎週5つの新しいスキル。1分で読めます。

仕組み

GitHubと直接やり取りする`gh`というプログラムを使います。レビューの状態を確認したいなど、やりたいことを伝えると、`gh`がその情報を取得して届けてくれます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

GitHub Skill

Use the gh CLI to interact with GitHub. Always specify --repo owner/repo when not in a git directory, or use URLs directly.

When to Use

  • When the user asks about GitHub issues, pull requests, workflow runs, or CI failures.
  • When you need gh issue, gh pr, gh run, or gh api from the command line.

Pull Requests

Check CI status on a PR:

gh pr checks 55 --repo owner/repo

List recent workflow runs:

gh run list --repo owner/repo --limit 10

View a run and see which steps failed:

gh run view <run-id> --repo owner/repo

View logs for failed steps only:

gh run view <run-id> --repo owner/repo --log-failed

Debugging a CI Failure

Follow this sequence to investigate a failing CI run:

  1. Check PR status — identify which checks are failing:
    gh pr checks 55 --repo owner/repo
    
  2. List recent runs — find the relevant run ID:
    gh run list --repo owner/repo --limit 10
    
  3. View the failed run — see which jobs and steps failed:
    gh run view <run-id> --repo owner/repo
    
  4. Fetch failure logs — get the detailed output for failed steps:
    gh run view <run-id> --repo owner/repo --log-failed
    

API for Advanced Queries

The gh api command is useful for accessing data not available through other subcommands.

Get PR with specific fields:

gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'

JSON Output

Most commands support --json for structured output. You can use --jq to filter:

gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
よくある質問

「pull request」とは何ですか?

プロジェクトにコードの変更を取り込むための依頼です。採用される前に、他の人が変更内容を確認できるようになります。

「Actions runs」や「workflow runs」とは何ですか?

GitHub上で実行される自動化された作業のことで、コードのテストなどを行い、すべてが正しく動いているかを確認します。

このツールを使うのにプログラミングの知識は必要ですか?

いいえ、プロジェクト名と確認したい内容が分かれば十分です。技術的な部分はツールが処理します。

詳細

作者による元の説明

Use the `gh` CLI for issues, pull requests, Actions runs, and GitHub API queries.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#4751
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル