Summary of "How I Write My AGENTS.md Files - Best Practices"

How I Write My AGENTS.md Files — Best Practices

What Agents.md is

Keep a single source of truth for environment and workflow rules so agents consistently follow project conventions.

Demo setup (what the presenter did)

Key technical / practical points and behavior

Best practices and recommended content

  1. Put commands early
    • Specify how to run project commands so agents use the correct invocation.
    • Example: for Django + uv workflows, state something like “use uv; all Python commands must run with uv run.”
  2. Provide concrete examples rather than long prose
    • For coding style, prefer “bad example → corrected example” over long textual descriptions.
  3. Specify stack and exact versions
    • State precise versions (e.g., Python 3.12+, package manager, DB such as SQLite3, frameworks).
  4. Include a project structure / file tree
    • A pasted tree output or brief outline helps agents locate files and understand app responsibilities.
  5. Define coding conventions via examples
    • Show examples for camelCase vs snake_case, type hint usage, etc., instead of exhaustive prose.
  6. Add ground rules and boundaries
    • Examples: “Never delete files with rm”, “Never run git commands” (note: agents may ignore these if asked directly).
  7. State workflow constraints and environment details early
    • Example: migrations must be run via uv run manage.py migrate, or how to set up Tailwind/Vite/React.
  8. Prefer a single central file for global rules, with local agents.md for exceptions
    • Use local files to disable or alter rules for specific directories/apps.

Use cases called out

Limitations / cautions

What to include in your agents.md (concise checklist)

Sources / main speakers

Category ?

Technology


Share this summary


Is the summary off?

If you think the summary is inaccurate, you can reprocess it with the latest model.

Video