agentleFS
anasahmed07anasahmed07/doit/backend/AGENTS.md

doit / backend

AGENTS.md1 starsChanged 10 months agoApache-2.0View on GitHub

This file provides guidance to AI agents (Claude, Gemini, etc.) when working with code in this directory.

We split this AGENTS.md into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use pydantic-settings for configuration.

    line 32
  2. Very specific:

    Use SQLModel for database models.

    line 33
  3. Very specific:

    Use async/await for I/O bound operations (though psycopg sync is currently configured, consider async if scaling).

    line 34
  4. Distinctive:

    Follow TDD: Write tests before implementation.

    line 35
  5. Very specific:

    Place business logic in services/, not in routes.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 36,368 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

This file provides guidance to AI agents (Claude, Gemini, etc.) when working with code in this directory.

Environment

  • Framework: FastAPI (Python 3.13+)
  • ORM: SQLModel
  • Database: PostgreSQL (Neon Serverless)
  • Migrations: Alembic
  • Package Manager: uv

Commands

  • Run Server: uv run uvicorn backend.main:app --reload
  • Run Tests: uv run pytest
  • Format: uv run ruff format .
  • Lint: uv run ruff check .
  • Migrations:
    • Create: uv run alembic revision --autogenerate -m "message"
    • Apply: uv run alembic upgrade head

Structure

  • src/backend/ - Main application code
    • routes/ - API Route definitions
    • core/ - Configuration, Database, Security
    • models/ - SQLModel entities
    • services/ - Business logic
    • middlewares/ - Custom middlewares
  • tests/ - Tests (Unit & Integration)
  • migrations/ - Database migration scripts managed by Alembic

Code Standards

  • Use pydantic-settings for configuration.
  • Use SQLModel for database models.
  • Use async/await for I/O bound operations (though psycopg sync is currently configured, consider async if scaling).
  • Follow TDD: Write tests before implementation.
  • Place business logic in services/, not in routes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.