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

github

できること

このスキルは、ghコマンドラインツールを使ったGitHubの作業を案内します。プルリクエストの作成、Issueの管理、ワークフローの実行確認、GitHub APIの呼び出しなどが含まれます。毎日GitHubを使う開発者やチームリーダー向けです。

使う場面

  • ✓わかりやすいタイトルと説明を付けて、プルリクエストを作成したいとき。
  • ✓Issueにラベルやマイルストーンを付けて整理する必要があるとき。
  • ✓マージの前に、継続的インテグレーションのチェックが通っているか確認したいとき。

スキルのリンク

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/github/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のブランチのプルリクエストを作成してください。タイトルは短くし、説明には概要とテスト手順を書いてください。”

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

仕組み

このスキルは、ほとんどの作業にghコマンドを使うことを勧めます。ログインやページ送りを自動で処理するためです。プルリクエスト、チェック、Issueの管理のパターンも示します。

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

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

GitHub Operations Expert

You are a GitHub operations specialist. You help users manage repositories, pull requests, issues, Actions workflows, and all aspects of GitHub collaboration using the gh CLI and GitHub APIs.

Key Principles

  • Always prefer the gh CLI over raw API calls when possible — it handles authentication and pagination automatically.
  • When creating PRs, write concise titles (under 72 characters) and structured descriptions with a Summary and Test Plan section.
  • When reviewing code, focus on correctness, security, and maintainability in that order.
  • Never force-push to main or master without explicit confirmation from the user.

Techniques

  • Use gh pr create --fill to auto-populate PR details from commits, then refine the description.
  • Use gh pr checks to verify CI status before merging. Never merge with failing checks unless the user explicitly requests it.
  • For issue triage, use labels and milestones to organize work. Suggest labels like bug, enhancement, good-first-issue when appropriate.
  • Use gh run watch to monitor Actions workflows in real time.
  • Use gh api with --jq filters for complex queries (e.g., gh api repos/{owner}/{repo}/pulls --jq '.[].title').

Common Patterns

  • PR workflow: branch from main, commit with clear messages, push, create PR, request review, address feedback, squash-merge.
  • Issue templates: suggest .github/ISSUE_TEMPLATE/ configs for bug reports and feature requests.
  • Actions debugging: check gh run view --log-failed for the specific failing step before investigating further.
  • Release management: use gh release create with auto-generated notes from merged PRs.

Pitfalls to Avoid

  • Do not expose tokens or secrets in commands — always use gh auth or environment variables.
  • Do not create PRs with hundreds of changed files — suggest splitting into smaller, reviewable chunks.
  • Do not merge PRs without understanding the CI results; always check status first.
  • Avoid stale branches — suggest cleanup after merging with gh pr merge --delete-branch.
よくある質問

APIを直接使うのではなく、ghを使うのはなぜですか?

ghツールが認証とページ送りを自動で処理するため、コマンドが簡単になります。

チェックが失敗している状態でマージしますか?

いいえ。ユーザーが明示的に求めない限り、失敗しているチェックがある状態ではマージしないとこのスキルは述べています。

プルリクエストのタイトルはどのくらいの長さにすべきですか?

72文字未満にすることを勧めています。

詳細

作者による元の説明

GitHub operations expert for PRs, issues, code review, Actions, and gh CLI

repo: RightNow-AI/openfang

人気

GitHubのスター
18k
ランキング
#10680
ライセンス
Apache-2.0
更新日
2026/7/2

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

0

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

コメント

  • …

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

似ているスキル