GitHub Copilot tutorial
Repository instructions
GitHub Copilot supports repository-wide guidance in .github/copilot-instructions.md. Its repository instructions guide, checked November 14, 2026, also describes path-specific instructions and which features support them. Check the documentation for the surface you use rather than assuming every editor and hosted feature loads the same files.
For a fictional inventory service, include the test command and the rule that quantities must remain integers, then point to the shared validator that the agent should reuse. Name the validator. A phrase such as “write clean code” leaves that choice open.
A review task
Ask for a change that rejects fractional quantities while preserving valid integer requests. Include a fractional test input and an ordinary valid request. If the suggestion rejects every input, the negative test can pass while the service remains broken.
Practice these decisions in the scripted tool above. The certification guide links the official credential and explains why these tasks are independent practice. They do not replace hands-on use of the product or cover every exam objective.