Custom instructions and a custom agent
Stop repeating yourself in every prompt. Write repository instructions, add path-specific instructions for tests, and create a custom agent that only writes tests, then watch Copilot follow them.
You will learn:.github/copilot-instructions.md for the whole repo.github/instructions/*.instructions.md with applyToCustom agents in .github/agents/<name>.agent.mdRunning an agent with --agent
Related lessons: Custom Instructions and Prompt Files · Copilot Chat: Slash Commands, Participants and Limits · Prompt Structure and Context for Copilot