Alternative Architecture DOJO

オルターブースのクラウドネイティブ特化型ブログです。

GitHub CLIで自作のエージェントスキルを発行する

こんにちは、MLBお兄さんこと松村です。
2026年4月24日に福岡で AI Dev Day in Fukuoka が開催され、そこでエージェントスキルについて発表させていただきました。

speakerdeck.com

そのセッションでも取り上げましたが、私は自作のエージェントスキルを GitHub で公開しています。

github.com

このスキルを自分のマシンにインストールする際、これまでは dotfiles を管理する過程でリポジトリをクローンする形で行っていました。
私は GitHub Copilot でエージェントスキルを利用するため、 ~/.copilot/skills に配置しています。

コマンドプロンプトの例:

cd %USERPROFILE%\.copilot
if exist skills rmdir /s /q skills
git clone https://github.com/tsubakimoto/skills skills

こうすることでユーザーとしてのエージェントスキルとして認識され、作業ディレクトリの場所に限らず利用することができます。

docs.github.com

gh コマンドでスキルを管理する

2026年4月16日の GitHub CLI のアップデートにて、GitHub Copilot のエージェントスキルを管理するための gh skill コマンドが追加されました。(v2.90.0 以上で利用可能)
gh skill コマンドを使用することで、エージェントスキルの検索、インストール、発行などを行うことができるようになります。

github.blog

スキルの検索の例:

gh skill search azure

✓ Showing 15 skills matching "azure" (page 1/3)
Use --page 2 for more results.

? Select skills to install:  [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
> [ ]  azure  Mindrally/skills  ★ 83
       Azure cloud development guidelines for ARM templates, Azure Pipelines, Kubernetes, and cloud-native services.
  [ ]  azure  clawdata/clawdata  ★ 25
       Manage Azure cloud resources -- resource groups, storage, databases, functions, and data services using the az CLI.
  [ ]  cloud/azure  claude-dev-suite/claude-dev-suite  ★ 12
       Azure cloud services SDK integration. Azure Functions, Cosmos DB, Blob Storage, Service Bus, Azure AD (Entra ID), and Key Vault. Node.js and ...
  [ ]  azure  ffsshhttiikk/opencode-agents-skills  ★ 2
       Microsoft Azure cloud services and best practices
  [ ]  azure-managed-grafana/azure_managed_grafana  Azure/sre-agent-plugins  ★ 1
       Expertise in Azure Managed Grafana including dashboards, Azure Monitor metrics, Application Insights failures and traces, Azure Data Explorer...
  [ ]  data/azure-rbac  majiayu000/claude-skill-registry  ★ 217
       Query Azure RBAC role assignments and definitions (read-only)

自作のエージェントスキルを発行する

gh コマンドでは、自分が作っているエージェントスキルを発行する gh skill publish コマンドが用意されていますので、試しに私のエージェントスキルを発行してみたいと思います。

エージェントスキルのリポジトリで gh skill publish コマンドを実行すると、ガイドに沿って内容を構成することで発行が完了します。

gh skill publish --tag 1.0.0
! no active tag protection rulesets found. Consider protecting tags to ensure immutable releases (Settings > Rules > Rulesets)

1 warning(s)

skills include code files but code scanning does not appear to be configured (Settings > Code security > Code scanning)

Ready to publish! Repository: tsubakimoto/skills

Publishing to tsubakimoto/skills...
? Create release 1.0.0 with auto-generated notes? Yes
✓ Published 1.0.01.0.0 with auto-generated notes? (Y/n)
✓ Install with: gh skill install tsubakimoto/skills
✓ Pin with:     gh skill install tsubakimoto/skills <skill> --pin 1.0.0

今回は発行の際にタグを指定することで、リポジトリの Tags と Release も同時に作成しました。
ただし前提として、不変リリース (Immutable releases) をリポジトリで有効にしておく必要があります。

docs.github.com

自作のエージェントスキルをインストールする

続いて、公開した自作のエージェントスキルをインストールします。いくつか入力を求められます。

gh skill install tsubakimoto/skills

まずはインストールするスキルを選択します。 (all skills) を選択すると、全てのスキルがインストールされます。

Using ref 1.0.0 (a35c1a5d)
Note: found 6 skill(s) at the repository root
? Select skill(s) to install:  [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
> [ ]  Search
  [ ]  [root] azure-resource-abbreviations - Use this skill whenever working with Azure resources and you need to define, verify, or understand resource naming co...
  [ ]  [root] backlog-api - Backlog(ヌーラボ社のプロジェクト管理SaaS)のREST API v2に関するエキスパートスキル。課題の作成・検索・更新、プロジェ...
  [ ]  [root] devblog-updates - Use this skill when the user wants to know what Microsoft announced for developers on a specific date, wants to revie...
  [ ]  [root] github-changelog - Use this skill when the user wants to know what GitHub announced or released on a specific date, wants to review GitH...
  [ ]  [root] marp-css - Use this skill whenever the user is working on Marp or Marpit slide design with CSS: creating a custom theme, restyli...
  [ ]  [root] marp-deck - Use this skill whenever the user wants to create, outline, rewrite, or organize a presentation in Marp or Marpit Mark...
  [ ]  (all skills)

次に、どのエージェントで使用するかを選択します。私は GitHub Copilot を選択しました。

? Select target agent(s):  [Use arrows to move, space to select, <right> to all, <left> to none, type to filter]
> [x]  GitHub Copilot
  [ ]  Claude Code
  [ ]  Cursor
  [ ]  Codex
  [ ]  Gemini CLI
  [ ]  Antigravity
  [ ]  AdaL
  [ ]  Amp
  [ ]  Augment
  [ ]  IBM Bob
  [ ]  Cline
  [ ]  CodeBuddy
  [ ]  Command Code
  [ ]  Continue
  [ ]  Cortex Code
  [ ]  Crush
  [ ]  Deep Agents
  [ ]  Droid
  [ ]  Firebender
  [ ]  Goose

最後に、エージェントスキルをインストールする場所を選択します。私は Global を選択しました。
これにより ~/.copilot/skills にインストールされます。

? Installation scope:  [Use arrows to move, type to filter]
  Project: install in current repository (recommended)
> Global: install in home directory (available everywhere)

✓ Installed azure-resource-abbreviations (from tsubakimoto/skills@1.0.0) in ~/.copilot\skills
✓ Installed backlog-api (from tsubakimoto/skills@1.0.0) in ~/.copilot\skills
✓ Installed devblog-updates (from tsubakimoto/skills@1.0.0) in ~/.copilot\skills
✓ Installed github-changelog (from tsubakimoto/skills@1.0.0) in ~/.copilot\skills
✓ Installed marp-css (from tsubakimoto/skills@1.0.0) in ~/.copilot\skills
✓ Installed marp-deck (from tsubakimoto/skills@1.0.0) in ~/.copilot\skills

自分のエージェントスキルをインストールすることができました。

ls ~/.copilot/skills

    Directory: C:\Users\yuta\.copilot\skills

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d----          2026/04/26    11:57                azure-resource-abbreviations
d----          2026/04/26    11:57                backlog-api
d----          2026/04/26    11:57                devblog-updates
d----          2026/04/26    11:57                github-changelog
d----          2026/04/26    11:57                marp-css
d----          2026/04/26    11:57                marp-deck

ちなみにコマンドにオプションを指定することで、エージェントやインストール先の選択を省略することができます。
gh skill install {skill} --agent github-copilot --scope user

リポジトリそのものを扱うよりも、エージェントスキルの取り扱いがやりやすくなったと感じます。
ぜひ皆さんも試してみてください。


サービス一覧 www.alterbooth.com www.alterbooth.com www.alterbooth.com