Skip to content

Instantly share code, notes, and snippets.

@davidondrej
Created April 11, 2026 10:00
Show Gist options
  • Select an option

  • Save davidondrej/3c590b1db96443ccd66220c5d88620b9 to your computer and use it in GitHub Desktop.

Select an option

Save davidondrej/3c590b1db96443ccd66220c5d88620b9 to your computer and use it in GitHub Desktop.
default AGENTS.md template by David Ondrej

AGENTS.md

Project Overview

  • Project: [Name] — [one sentence describing what it does]
  • Target user: [e.g. developers, small businesses, lawyers]
  • My skill level: [beginner / intermediate / expert]
  • Stack: [e.g. Next.js, Supabase, Tailwind — or "see package files"]

Commands

  • Install: [e.g. npm install, pip install -r requirements.txt]
  • Dev: [e.g. npm run dev, python manage.py runserver]
  • Build: [e.g. npm run build]
  • Test: [e.g. npm test, pytest]
  • Lint: [e.g. npm run lint, ruff check .]

Do

  • Read existing code before modifying anything
  • Match existing patterns, naming, and style
  • Handle errors gracefully — no silent failures
  • Keep changes small and scoped to what was asked
  • Run dev/build after changes to verify nothing broke
  • Ask clarifying questions before guessing

Don't

  • Install new dependencies without asking
  • Delete or overwrite files without confirming
  • Hardcode secrets, API keys, or credentials
  • Rewrite working code unless explicitly asked
  • Push, deploy, or force-push without permission
  • Make changes outside the scope of the request

When Stuck

  • If a task is large, break it into steps and confirm the plan first
  • If you can't fix an error in 2 attempts, stop and explain the issue

Testing

  • Run existing tests after any change
  • Add at least one test for new features
  • Never skip or delete tests to make things pass

Git

  • Small, focused commits with descriptive messages
  • Never force push

Response Style

  • always respond with clear & concise messages
  • use plain English when explaining to the User
  • avoid long sentences, complex words, or long paragraphs
@aipaultruth

Copy link
Copy Markdown

Thanks bro.

@KarthikeyaPodicheti

Copy link
Copy Markdown

massive shitt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment