agent-instructions
Agent instructions
Write the smallest set of instruction files that each target runtime actually loads. A correct file in a location the runtime skips, or one shadowed by another file, does nothing. Recover facts from the repository before asking, and separate commands you ran from commands you only read about.
Choose the task
- Create: no instruction files exist.
- Improve: one existing file is thin, stale or bloated.
- Reconcile: files duplicate or contradict each other, or one runtime ignores guidance the others see.
- Scope a subtree: a package or directory needs different commands, ownership or boundaries.
- Explain loading: the user asks why an agent ignores its instructions. Report what each runtime loads here. Change nothing unless asked.
Infer the target runtimes from the request, existing files and the user's tooling. Ask only when the answer changes which files exist. "Make this work for our agents" with no other signal means Claude Code, Codex and Cursor.
Read the loading matrix first
Read the loading matrix before choosing any file. It records which files Claude Code, Codex and Cursor read, in what order, with which limits, checked on a stated date. Follow its run-time rule: re-check a runtime's docs when the check date is more than about 90 days old or the installed runtime is older than a version it names.