Give an assistant useful context
Useful context is the small set of files, constraints, and observed behavior that determine your task.
How it works
Begin with the entry point an actual visitor uses and the evidence you already have. Include a small reproduction and the local conventions that matter. More files are only useful if they explain the path from that entry point to where the behavior is implemented.
Walk through an example
When changing lesson navigation, include the route and the file that defines lesson order. Add the actual behavior you saw and the behavior you expected.
What to watch for
Keep passwords, private customer data, and raw production logs out of shared context. Use a minimal example that reproduces the issue.
Check your understanding
What context helps locate the issue?
See the example and explanation
- Worked example
- Given
The wrong lesson opens after Java Variables. - Answer
The lesson URL, current destination, expected destination, and lesson-order source.
Those facts narrow the work to content order and link generation.