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

What are instruction files such as CLAUDE.md or AGENTS.md, and what problem do they solve?

beginner
← All Context Engineering questions
Re-explain

Instruction files hold standing guidance for a coding assistant. They describe the repository layout, the build and test commands, and the coding conventions. They also set safety limits and the expected definition of done. Tools load them automatically at the project or directory scope.

They solve the problem of repeating stable facts in every prompt. Without them, each session may guess how to run tests or which helper to use.

Keep them short and specific, link to longer docs instead of copying them, and never put secrets in them.

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 like CLAUDE.md or AGENTS.md holds standing guidance for a coding assistant, the things it should know about a repo before it does any work.
  2. It describes the repo layout, the build and test commands, and the coding conventions, and it sets safety limits and what done means for a change.
  3. The tool loads it automatically at the project or directory scope, so nobody has to paste it in.
  4. The problem it solves is repetition. Without it you restate the same stable facts in every prompt, or each session guesses how to run the tests or which helper to use.
  5. The catch is that it loads every session, so I keep it short, link to longer docs instead of copying them, and never put secrets in it.

Weak answers to avoid

  • Defines it but never names the problem The question asks what it solves. Say it stops you repeating stable facts in every prompt and stops each session guessing how to run tests.
  • Treats it as the place for all the docs It loads into every session, so a long file costs context and hides the key rules. Keep it short and link to longer docs instead of copying them.
  • Suggests putting API keys or tokens in it A clear red flag. The file is shared and fed to the model. Keep secrets in environment variables or a secret manager, never in the file.
  • Fills it with vague advice like 'write clean code' The assistant can't act on that. Give specific facts it can use, like the exact test command, a named helper to prefer, or what counts as done.
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