LearnThatStack Ace your next interview
Context Engineering · question
Question 3 of 49

What kinds of information belong in a project instruction file, and what should stay out?

beginner
← All Context Engineering questions
Re-explain

Put in stable facts that affect many tasks:

  • important directories
  • standard commands
  • architectural boundaries
  • naming rules
  • approved libraries
  • any dangerous action that needs approval

Add a short definition of done, such as running focused tests and reporting any failures.

  • Leave out secrets, credentials and customer data.
  • Leave out temporary task details and long tutorials too. Point to a trusted document instead of copying it.
  • Skip vague advice such as "write good code", because it gives the model nothing to act on.
  • Drop rules that tools or linters already enforce, unless the assistant needs them to choose an approach.

A useful file is a small map and policy guide, not a complete project handbook.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Context Engineering One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. 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.
  2. That means the important directories, the standard commands, architectural boundaries, naming rules, approved libraries, and any dangerous action that needs approval first.
  3. I'd also add a short definition of done, like running the focused tests and reporting any failures.
  4. 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.
  5. 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.
  6. 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 file A 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 data Leaving 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 in The 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.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Context Engineering cheatsheet.

← Back to all Context Engineering questions
Pro · $10/mo

42 of 49 Context Engineering answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime