What belongs in your AI’s instruction file, and what should stay out, so the rules that matter get followed?Giving Your Agent the Right Context
- Module
- 01/05
- To read
- ~11 min
A team’s instruction file has grown to hundreds of lines. One line says never to run database changes (migrations) on the shared staging database, the test copy the whole team uses. What do you think their AI does?
In the module you make your guess first, then read what happened and why.
Only what your AI can’t work out
Keep the main file small and push detail down
Keep it up to date, like code
“Never” rules need a hard block
Your AI’s instruction file
A spec for your own app, as a text file you download. The module also gives you the prompt to paste into the AI you build with (Lovable, Bolt, Replit, Cursor, Claude Code or Codex), a checklist to check what it built, and recommended skills.
- Settings kept with your code (configuration as code)
- Advice versus hard blocks