skills/gh/SKILL.md
GitHub CLI (gh) で Issue・Sub-issue・PR・CI を操作するためのクイックリファレンス
npx skillsauth add myuon/agent-skills ghInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
GitHub Issues・PR・CI を CLI から操作するためのクイックリファレンス。
gh issue create --title "タイトル" --body "本文"
# ラベル付き
gh issue create --title "タイトル" --body "本文" --label "bug"
# 複数行の本文(HEREDOC)
gh issue create --title "タイトル" --body "$(cat <<'EOF'
## 概要
説明
## 受け入れ条件
- [ ] 条件1
- [ ] 条件2
EOF
)"
# Issue の詳細を表示
gh issue view <number>
# Web ブラウザで開く
gh issue view <number> --web
# オープンな Issue 一覧
gh issue list
# 状態を指定
gh issue list --state closed
gh issue list --state all
# ラベルで絞り込み
gh issue list --label "bug"
# 自分にアサインされた Issue
gh issue list --assignee @me
# キーワード検索
gh issue list --search "キーワード"
# 複合検索
gh issue list --search "label:bug sort:updated-desc"
gh-sub-issue 拡張を使用する。
# インタラクティブモード
gh sub-issue create <parent-number>
# タイトル指定
gh sub-issue create <parent-number> --title "サブタスクのタイトル"
# タイトル + 本文
gh sub-issue create <parent-number> --title "タイトル" --body "詳細"
# URL で親 Issue を指定
gh sub-issue create https://github.com/owner/repo/issues/10 --title "タイトル"
# 別リポジトリ
gh sub-issue create <parent-number> --repo owner/other-repo
# 一覧
gh sub-issue list <parent-number>
未インストールの場合:
gh extension install yahsan2/gh-sub-issue
gh pr create --title "タイトル" --body "$(cat <<'EOF'
## Summary
- 変更内容
Closes #<issue-number>
EOF
)"
# draft PR
gh pr create --title "タイトル" --body "..." --draft
Closes #<number> を本文に含めるとマージ時に Issue が自動クローズされる。
# CI のステータスを確認
gh pr checks <pr-number>
gh pr checks <pr-number> --watch --fail-fast
gh run list
gh run view <run-id> --log
gh pr comment <pr-number> --body "コメント内容"
# merge commit(推奨)
gh pr merge <pr-number> --merge --delete-branch
# squash merge
gh pr merge <pr-number> --squash --delete-branch
development
React Router v7 の loader パターンのリファレンス。画面表示に伴うデータフェッチに loader を使うことでデータの流れを一方向にし、コードの見通しを良くし、不要な useEffect の利用を抑制する。
development
React の useEffect を避け、より適切なパターンに置き換えるためのガイド。useEffect を含むコードを書こうとしているとき、またはコードレビューで useEffect を検出したとき、代替パターンを提案するために使う。
development
LLM Key Ring (lkr) - macOS Keychainを使ったAPIキー管理ツールのリファレンス。APIキーの登録・取得・一覧・環境変数注入が必要なときに使う。
tools
ユーザーがタスク一覧に対して実装を求めてきた際に参照するスキル。複数のイシューを同時に取り組むためのワークフロー。