VS Code 上の GitHub Copilot の挙動制御やカスタマイズ
VS Code 上の GitHub Copilot の挙動制御やカスタマイズ
AGENTS.md: リポジトリルートやサブディレクトリに「このリポジトリ/サブフォルダにおけるエージェント(Agent mode)用のカスタム指示(custom instructions)」を記述できます。
https://github.blog/changelog/2025-08-28-copilot-coding-agent-now-supports-agents-md-custom-instructions/
.github/copilot-instructions.md: リポジトリ全体に対して「Copilot(Chat/Agent)にこう振る舞ってほしい」という指示・ガイドラインを記載できます。
https://docs.github.com/ja/enterprise-cloud@latest/copilot/tutorials/coding-agent/get-the-best-results?utm_source=chatgpt.com
.github/instructions/ フォルダ内の *.instructions.md: 複数の指示ファイルを整理したり、サブフォルダ/モジュール単位で指示を分割したいときに使えます。
.github/prompts/ フォルダ内の *.prompt.md: 再利用可能な「プロンプトファイル(Markdown)」。スラッシュコマンドや Copilot Chat/Agent に対して特定タスクを行わせるための雛形が書いてあります。
独自チャットモード: .github/chatmodes/(好きなファイル名).chatmode.md というマークダウン形式のファイルで定義するっぽい
https://code.visualstudio.com/docs/copilot/customization/custom-chat-modes