A small recipe site uses npm run test:recipes to check its parsing fixtures. Its coding assistant keeps suggesting the generic npm test command. Put the specific command in .github/copilot-instructions.md, along with the location where the team expects any new recipe examples. Keep both rules short enough to check in the assistant's response or the resulting change.
Start a fresh Copilot chat with the repository open. Ask it to inspect the recipe parser and identify the first command it would run after changing the parser. Where the response shows References, check for the instructions file. VS Code also documents instruction diagnostics and agent debug logs for supported sessions if you need to inspect what reached the request.
Check loading and behavior separately
The file appearing in References confirms inclusion. The response naming npm run test:recipes confirms what the assistant proposed for this task. Open the package manifest and make sure the command still exists. If the project renames it, update the instructions in the same change so future requests receive the correct project rule.
Troubleshoot a missing or ignored instruction
Use the same narrow prompt in each fresh chat: “For a change to the recipe parser, name the exact test command and the fixture directory. Explain where each came from. Leave the files as they are.” If the file is missing from the available diagnostics, check that the active session uses the workspace containing .github/copilot-instructions.md and that the selected agent supports it. If diagnostics show the file was included but the response names npm test, look for a conflicting rule in other instructions and state the parser-specific rule more directly. Compare the next response with the actual scripts in package.json.
