How would you tell whether a rule in the file changes what the agent does?Run the same tasks with and without the rule and compare the diffs or transcripts. If a rule changes nothing, it is a candidate to delete.
What you can say
An instruction file should hold stable facts that affect many tasks. It works as a short map and policy guide, not a full project handbook.
That means the important directories, the standard commands, architectural boundaries, naming rules, approved libraries, and any dangerous action that needs approval first.
I'd also add a short definition of done, like running the focused tests and reporting any failures.
Secrets, credentials and customer data stay out, and so do temporary task details and long tutorials. If a trusted doc already exists, I point to it instead of copying it in.
I skip vague advice like 'write good code', because the model can't act on it. I also drop rules a linter already enforces, unless the agent needs them to pick an approach.
The cost is that the tool loads every line into every session, so I keep the file small and cut any rule that doesn't change what the agent does.
Weak answers to avoid
Dumps the whole handbook into the fileA long file uses up context in every session and buries the rules that matter. Say you keep a short map and point to trusted docs instead of copying them.
Never mentions secrets or customer dataLeaving out the hard exclusion is a red flag. Say plainly that keys, credentials and customer data never go in, because the file is shared and sent to the model.
Offers vague values like 'write clean code'The model has nothing to act on. Give concrete rules it can follow, such as the exact test command, the approved library, or which actions need approval.
Only covers what goes inThe question has two halves. Naming what stays out, like temporary task details and rules the linter already enforces, shows you know every line has a cost.
Interview lens
Likely follow-ups, what you can say, and the weak answers to avoid.