Skip to content
mentoor

Writing AGENTS.md and CLAUDE.md files

For engineers

Deciding what goes into a coding agent's project memory file, how files layer, and how to prove a file changes behaviour

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

Which line is the best candidate for a repository memory file?

Choose one answer

Check yourself · 2 of 5

A teammate wants to paste the staging API key into the memory file so the agent can deploy. What is the best response?

Choose one answer

Check yourself · 3 of 5

Where does a rule that applies only to the services/billing/ package best live?

Choose one answer

Check yourself · 4 of 5

What is the cleanest way to test whether a memory-file rule matters?

Choose one answer

Check yourself · 5 of 5

An agent proposes adding a 40-line procedure for adding a payment provider to the root memory file. What is the best response?

Choose one answer

Topics

  1. Commands, conventions and boundaries worth writing down4 min read · Build and test commands, house conventions, architecture pointers and no-go areas an agent cannot infer from the code
  2. Content that bloats or endangers a memory file4 min read · Secrets, copied documentation, stale facts, vague style advice and long tutorials that waste tokens or leak data
  3. Layering global, repository and folder instructions5 min read · How user, repo, nested folder and path-scoped rule files combine, which wins on conflict, and how imports work
  4. Testing whether a memory file changes agent behaviour5 min read · Running the same tasks with and without a rule, reading transcripts and catching rules the agent ignores
  5. Keeping memory files short and current4 min read · Size budgets, pruning, owners, and reviewing agent-proposed memory updates like code

Start here

110 questions · last verified 2026-12