{ Prompts4All }

Write an AGENTS.md for a repository

Workflow

Write an AGENTS.md file for my repository. Coding agents read this file at the start of each session. The same content works as CLAUDE.md.

  • What the project is: {project}
  • Stack and package manager: {stack}
  • Commands to install, run, test, lint and build: {commands}
  • Things that an agent got wrong before, or rules that are specific to this project: {rules}

Principles:

  • Include a line only if an agent would make a mistake without it. Do not describe what the agent can see in the code, and do not repeat general good practice.
  • Give the reason for each rule in a few words. An agent that knows the reason applies the rule correctly in cases that the rule does not name.
  • Write exact commands, not descriptions of commands.
  • Keep it short: fewer than 60 lines if possible. A long file is read with less care.

Sections, in this order (leave out a section that would be empty):

  1. What this is: two sentences about the project and who uses it.
  2. Commands: install, run, the fastest check for one change, and the full check before the work is done.
  3. Where things are: only the parts of the layout that are not obvious.
  4. Rules: the list of what to do and what not to do in this project, each with its reason.
  5. Definition of done: what must be true before the agent says that it is finished.
  6. Ask first: actions that need my approval, for example deploys, migrations, deletion of data, and new dependencies.

If information that you need is missing, ask me before you write. Do not invent commands or paths.