With a working quiz in the workspace, generate repository custom instructions that describe the real project. Copilot reads these instructions with every chat request.
In this lesson, you will:
- generate repository custom instructions with
/init. - review
.github/copilot-instructions.mdbefore saving it. - trim and personalize the instructions.
Capture the rules with /init
- Run
/initin Copilot Chat. - Review the generated
.github/copilot-instructions.mdfile before saving it. - Keep only guidance that matches this project: a single file, no dependencies, accessible, and browser-tested.
Repository custom instructions live in .github/copilot-instructions.md and apply to every chat request.
Make it yours
The instructions file is not only for facts about the project. Add the specifics you would otherwise repeat in every prompt, such as how you like code written, naming conventions, which libraries to avoid, and how much commenting you want. Every future session reads this file before it reads your prompt.
Summary and next steps
Your workspace now has custom instructions grounded in real code. Continue to Lesson 3: Inspect context and test.