📄

.github/copilot-instructions.md

GitHub Copilot

プロジェクトルールをCopilotに伝達

GitHub Copilotは.github/copilot-instructions.mdファイルを通じてプロジェクトコンテキストを受け取ります。Claude CodeのCLAUDE.md、Cursorの.cursorrulesと同じ役割です。コーディングスタイル、フレームワークルール、ドメイン知識などを記録します。

使い方

1

.github/copilot-instructions.mdファイルを作成

2

コーディングスタイル、フレームワークルール、禁止パターンを記録

3

Copilot Chatで自動的にコンテキストとして含まれる

4

VS Code設定で「Use Instruction Files」の有効化を確認

タグ

#instructions #context #convention #project

Source

GitHub Docs