GitHub Copilot のリポジトリ カスタムインストラクションを追加する

- GitHub Copilot用のリポジトリカスタムインストラクションを追加・編集できる

Views0
PublishedJan 15, 2026

Loading actions...

5 minBeginnerpromptSingle file

Skill content

Main instructions and any bundled files for this skill.

markdown

GitHub Copilot のリポジトリ カスタムインストラクションを追加する

学習目標

  • GitHub Copilot用のリポジトリカスタムインストラクションを追加・編集できる
  • インストラクションの適用状況を確認できる

カスタムインストラクションとは

サンプル

カスタムインストラクションのサンプル集 には様々な例が掲載されています。

ラボ — カスタムインストラクションの作成とテスト

  1. .github/copilot-instructions.md を作成
  2. 以下のテンプレートを貼り付け、保存
# Repository Custom Instructions for GitHub Copilot

## Language Preference

このリポジトリの人向けコンテンツ(README, コメント, ドキュメント等)は日本語で記述してください。
  1. GitHub Copilotに指示を出し、日本語で出力されるか確認

  2. 任意のインストラクションを追加し、挙動を確認

  3. gitでコミット

git checkout ブランチ名
git add .github/copilot-instructions.md
git commit -m "Add GitHub Copilot repository custom instructions"
git push
  1. push後、GitHub上でファイルが追加されたか確認

チェックリスト

  • .github/copilot-instructions.md を作成した
  • テンプレートを貼り付けた
  • GitHub Copilotが日本語で出力するか確認した

インストラクター向けノート

所要時間目安

  • 30分
Share: