jpskill.com
🛠️ 開発・MCP コミュニティ

copilot-coding-agent

GitHub Copilot Coding Agent automation. Apply the ai-copilot label to an issue → GitHub Actions auto-assigns Copilot via GraphQL → Copilot creates a Draft PR. One-click issue-to-PR pipeline.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o copilot-coding-agent.zip https://jpskill.com/download/20895.zip && unzip -o copilot-coding-agent.zip && rm copilot-coding-agent.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/20895.zip -OutFile "$d\copilot-coding-agent.zip"; Expand-Archive "$d\copilot-coding-agent.zip" -DestinationPath $d -Force; ri "$d\copilot-coding-agent.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して copilot-coding-agent.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → copilot-coding-agent フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

GitHub Copilot Coding Agent — Issue → ドラフト PR 自動化

ai-copilot ラベルを Issue に追加すると、GitHub Actions が自動的に Copilot にアサインし、 Copilot がブランチを作成 → コードを記述 → ドラフト PR をオープンします。

このスキルを使用するタイミング

  • PM/デザイナーが Issue を作成し、開発者なしで Copilot が実装を開始する場合
  • バックログの Issue(リファクタリング/ドキュメント/テスト)を Copilot にオフロードする場合
  • Vibe Kanban / Conductor によって作成されたフォローアップ作業を Copilot に委任する場合
  • Jira → GitHub Issue → Copilot PR のようなパイプラインを自動化する場合

前提条件

  • GitHub プラン: Copilot Pro+、Business、または Enterprise
  • Copilot Coding Agent が有効: リポジトリ設定で有効にする必要があります
  • gh CLI: 認証済み
  • PAT: repo スコープを持つ Personal Access Token

ワンタイムセットアップ

# ワンクリックセットアップ(トークン登録 + ワークフローデプロイ + ラベル作成)
bash scripts/copilot-setup-workflow.sh

このスクリプトは以下を実行します。

  1. COPILOT_ASSIGN_TOKEN をリポジトリシークレットとして登録します
  2. .github/workflows/assign-to-copilot.yml をデプロイします
  3. ai-copilot ラベルを作成します

使用方法

オプション 1: GitHub Actions 自動化(推奨)

# Issue を作成 + ai-copilot ラベル → Copilot を自動アサイン
gh issue create \
  --label ai-copilot \
  --title "Add user authentication" \
  --body "Implement JWT-based auth with refresh tokens. Include login, logout, refresh endpoints."

オプション 2: 既存の Issue にラベルを追加する

# Issue #42 にラベルを追加 → Actions をトリガー
gh issue edit 42 --add-label ai-copilot

オプション 3: スクリプト経由で直接アサインする

export COPILOT_ASSIGN_TOKEN=<your-pat>
bash scripts/copilot-assign-issue.sh 42

仕組み(技術的)

Issue が作成/ラベル付けされる
    ↓
GitHub Actions がトリガーされる (assign-to-copilot.yml)
    ↓
GraphQL 経由で Copilot ボット ID を検索する
    ↓
replaceActorsForAssignable → Copilot をアサイン担当者として設定する
    ↓
Copilot Coding Agent が Issue の処理を開始する
    ↓
ブランチを作成 → コードを記述 → ドラフト PR をオープンする
    ↓
あなたを PR レビュアーとして自動アサインする

必要な GraphQL ヘッダー:

GraphQL-Features: issues_copilot_assignment_api_support,coding_agent_model_selection

GitHub Actions ワークフロー

ワークフロー トリガー 目的
assign-to-copilot.yml Issue に ai-copilot ラベルが付与された場合 Copilot に自動アサイン
copilot-pr-ci.yml PR のオープン/更新 CI を実行(ビルド + テスト)

Copilot PR の制限事項

Copilot は外部コントリビューターとして扱われます。

  • PR はデフォルトでドラフトとして作成されます
  • 最初の Actions 実行前に、書き込みアクセス権を持つユーザーによる手動承認が必要です
  • 承認後、copilot-pr-ci.yml CI が通常通り実行されます
# 手動承認後の CI を確認
gh pr list --search 'head:copilot/'
gh pr view <pr-number>

planno (plannotator) 連携 — オプション

Copilot にアサインする前に planno で Issue の仕様を確認します(独立したスキルであり、必須ではありません)。

planno でこの Issue の仕様を確認し、承認してください

承認後、ai-copilot ラベルを追加 → Actions をトリガーします。


一般的なユースケース

1. ラベルベースの Copilot キュー

PM が Issue を作成 → ai-copilot ラベルを追加
→ Actions が自動アサイン → Copilot がドラフト PR を作成
→ チームは PR レビューのみを実行

2. Vibe Kanban / Conductor との組み合わせ

Vibe Kanban によって作成されたフォローアップ Issue:
  リファクタリング/ドキュメントのクリーンアップ/テストの追加
  → ai-copilot ラベル → Copilot が処理
→ チームは主要な機能開発に集中

3. 外部システム連携

Jira Issue → Zapier/webhook → GitHub Issue を自動作成
→ ai-copilot ラベル → Copilot PR
→ 完全自動化されたパイプライン

4. リファクタリングバックログの処理

# バックログの Issue に一括でラベルを追加
gh issue list --label "tech-debt" --json number \
  | jq '.[].number' \
  | xargs -I{} gh issue edit {} --add-label ai-copilot

結果の確認

# Copilot によって作成された PR を一覧表示
gh pr list --search 'head:copilot/'

# 特定の Issue のステータス
gh issue view 42

# PR CI のステータス
gh pr checks <pr-number>

参考文献


クイックリファレンス

=== セットアップ ===
bash scripts/copilot-setup-workflow.sh   ワンタイムセットアップ

=== Issue のアサイン ===
gh issue create --label ai-copilot ...  新規 Issue + 自動アサイン
gh issue edit <num> --add-label ai-copilot  既存の Issue
bash scripts/copilot-assign-issue.sh <num>  手動アサイン

=== 結果の確認 ===
gh pr list --search 'head:copilot/'    Copilot PR リスト
gh pr view <num>                        PR の詳細
gh pr checks <num>                      CI ステータス

=== 制約 ===
Copilot Pro+/Business/Enterprise が必要
最初の PR は手動承認が必要(外部コントリビューターとして扱われるため)
PAT: repo スコープが必要
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

GitHub Copilot Coding Agent — Issue → Draft PR automation

If you add the ai-copilot label to an issue, GitHub Actions automatically assigns it to Copilot, and Copilot creates a branch → writes code → opens a Draft PR.

When to use this skill

  • When PMs/designers create issues and Copilot starts implementation without a developer
  • When offloading backlog issues (refactors/docs/tests) to Copilot
  • When delegating follow-up work created by Vibe Kanban / Conductor to Copilot
  • When automating pipelines like Jira → GitHub Issue → Copilot PR

Prerequisites

  • GitHub plan: Copilot Pro+, Business, or Enterprise
  • Copilot Coding Agent enabled: Must be enabled in repo settings
  • gh CLI: Authenticated
  • PAT: Personal Access Token with repo scope

One-time setup

# One-click setup (register token + deploy workflow + create label)
bash scripts/copilot-setup-workflow.sh

This script does:

  1. Register COPILOT_ASSIGN_TOKEN as a repo secret
  2. Deploy .github/workflows/assign-to-copilot.yml
  3. Create the ai-copilot label

Usage

Option 1: GitHub Actions automation (recommended)

# Create issue + ai-copilot label → auto-assign Copilot
gh issue create \
  --label ai-copilot \
  --title "Add user authentication" \
  --body "Implement JWT-based auth with refresh tokens. Include login, logout, refresh endpoints."

Option 2: Add a label to an existing issue

# Add label to issue #42 → trigger Actions
gh issue edit 42 --add-label ai-copilot

Option 3: Assign directly via script

export COPILOT_ASSIGN_TOKEN=<your-pat>
bash scripts/copilot-assign-issue.sh 42

How it works (technical)

Issue created/labeled
    ↓
GitHub Actions triggered (assign-to-copilot.yml)
    ↓
Look up Copilot bot ID via GraphQL
    ↓
replaceActorsForAssignable → set Copilot as assignee
    ↓
Copilot Coding Agent starts processing the issue
    ↓
Create branch → write code → open Draft PR
    ↓
Auto-assign you as PR reviewer

Required GraphQL header:

GraphQL-Features: issues_copilot_assignment_api_support,coding_agent_model_selection

GitHub Actions workflows

Workflow Trigger Purpose
assign-to-copilot.yml Issue labeled ai-copilot Auto-assign to Copilot
copilot-pr-ci.yml PR open/update Run CI (build + tests)

Copilot PR limitations

Copilot is treated like an external contributor.

  • PRs are created as Draft by default
  • Before the first Actions run, a manual approval from someone with write access is required
  • After approval, copilot-pr-ci.yml CI runs normally
# Check CI after manual approval
gh pr list --search 'head:copilot/'
gh pr view <pr-number>

planno (plannotator) integration — optional

Review the issue spec in planno before assigning to Copilot (independent skill, not required):

Review and approve this issue spec in planno

After approval, add the ai-copilot label → trigger Actions.


Common use cases

1. Label-based Copilot queue

PM writes an issue → add ai-copilot label
→ Actions auto-assigns → Copilot creates Draft PR
→ Team only performs PR review

2. Combined with Vibe Kanban / Conductor

Follow-up issues created by Vibe Kanban:
  refactors/docs cleanup/add tests
  → ai-copilot label → Copilot handles
→ Team focuses on main feature development

3. External system integration

Jira issue → Zapier/webhook → auto-create GitHub Issue
→ ai-copilot label → Copilot PR
→ Fully automated pipeline

4. Refactoring backlog processing

# Bulk-add label to backlog issues
gh issue list --label "tech-debt" --json number \
  | jq '.[].number' \
  | xargs -I{} gh issue edit {} --add-label ai-copilot

Check results

# List PRs created by Copilot
gh pr list --search 'head:copilot/'

# Specific issue status
gh issue view 42

# PR CI status
gh pr checks <pr-number>

References


Quick Reference

=== Setup ===
bash scripts/copilot-setup-workflow.sh   one-time setup

=== Issue assignment ===
gh issue create --label ai-copilot ...  new issue + auto-assign
gh issue edit <num> --add-label ai-copilot  existing issue
bash scripts/copilot-assign-issue.sh <num>  manual assign

=== Verify results ===
gh pr list --search 'head:copilot/'    Copilot PR list
gh pr view <num>                        PR details
gh pr checks <num>                      CI status

=== Constraints ===
Copilot Pro+/Business/Enterprise required
First PR requires manual approval (treated as an external contributor)
PAT: repo scope required