GitHub Projectの管理スキル。ghコマンドを使用してプロジェクトの確認、アイテム追加・状態変更、フィールド更新を行う。 トリガー条件: - 「Projectを確認して」「プロジェクトのアイテム一覧」「Project #N を見せて」 - 「IssueをProjectに追加」「PRをProjectに紐付け」 - 「ステータスをDoneに変更」「フィールドを更新」 - 「カンバンを操作」「タスクの進捗を更新」
Manages GitHub Projects using the gh CLI. Triggers on commands to view project items, add issues/PRs, update fields, or change task status on the Kanban board.
/plugin marketplace add CAPHTECH/claude-marketplace/plugin install caphtech-plugin@caphtech-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
github-project.skillreferences/operations.mdghコマンドでGitHub Projectを操作する。
# projectスコープが必要
gh auth refresh -s project
ユーザーがデフォルトプロジェクトを指定している場合、以下を使用:
default_project:
owner: "@me" # または org/user名
number: 1 # プロジェクト番号
指定がない場合は gh project list で選択を促す。
# 一覧
gh project list --owner "@me"
# 詳細(アイテム数、フィールド情報)
gh project view NUMBER --owner OWNER --format json
gh project item-list NUMBER --owner OWNER --format json --limit 50
# Issue/PRを追加
gh project item-add NUMBER --owner OWNER --url ISSUE_OR_PR_URL
# ドラフトIssue作成
gh project item-create NUMBER --owner OWNER --title "タイトル" --body "本文"
フィールド更新には複数のIDが必要。詳細は references/operations.md 参照。
# 1. フィールドID取得
gh project field-list NUMBER --owner OWNER --format json
# 2. アイテムID取得
gh project item-list NUMBER --owner OWNER --format json
# 3. プロジェクトID取得
gh project view NUMBER --owner OWNER --format json --jq '.id'
# 4. フィールド更新
gh project item-edit \
--id ITEM_ID \
--project-id PROJECT_ID \
--field-id FIELD_ID \
--single-select-option-id OPTION_ID # Status等の場合
# アーカイブ(非表示)
gh project item-archive NUMBER --owner OWNER --id ITEM_ID
# 削除
gh project item-delete NUMBER --owner OWNER --id ITEM_ID
# フィールド情報を取得してStatusのoption_idを特定
gh project field-list NUMBER --owner OWNER --format json | jq '.fields[] | select(.name=="Status")'
# ステータス更新
gh project item-edit --id ITEM_ID --project-id PROJECT_ID --field-id FIELD_ID --single-select-option-id OPTION_ID
# Issue作成
gh issue create --title "タイトル" --body "本文" --repo OWNER/REPO
# Project追加
gh project item-add NUMBER --owner OWNER --url ISSUE_URL