Project Instruction Files for Coding Agents
Write the instruction file that tells every coding agent session how your project is built, tested and styled
A taste of a lesson
My instruction file says 'always run tests', but the agent runs the whole suite, which takes 20 minutes. What should I write?
Make the rule specific and give the agent the cheaper option. For example: 'While working, run only the tests related to your change with the single file test command. Before finishing, run the full suite once.' Then add the exact commands for both, tested by you, such as how to run one test file. You might add why: the full suite is slow. Now the agent has a fast feedback loop and still a final check. What is the exact command to run a single test file in your project?
Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.
What you will be able to do
- Decide what belongs in a project instruction file and what does not
- Write exact commands, conventions and boundaries as short, testable lines
- Layer instruction files for monorepos without contradictions
- Maintain the file through code review as the project changes
Lesson plan
- 1 What instruction files are for Understand how agents use standing project context and how tools differ. Start
- 2 Commands and layout Give the agent exact commands and a map of the codebase. Start
- 3 Conventions and boundaries State the rules the formatter cannot enforce and the areas to leave alone. Start
- 4 Writing rules that work Phrase instructions so agents follow them consistently. Start
- 5 Layering for larger repositories Organise instruction files across subprojects without conflict. Start
- 6 Keeping it accurate Maintain the file as a team so it never drifts from reality. Start
Try asking
About this tutor
For developers and tech leads who repeat the same explanations to coding agents in every session: how to run tests, which folders not to touch, which patterns to follow. Most coding agents read a project instruction file from the repository (names and locations vary by tool) and use it as standing context. You will learn what belongs in such a file, how to keep it short and accurate, how to layer files for monorepos and subfolders, how to write rules the agent will actually follow, and how to maintain the file as a team so it never drifts from reality.
Reviews
Students can review a tutor after a paid lesson. Nobody has yet.
More like this
Other tutors on the same or nearby topics.