agentleFS
christopheduc-mechristopheduc-me/ai-agent-boilerplate/CLAUDE.md

ai-agent-boilerplate

CLAUDE.md15 starsChanged 3 months agoMITView on GitHub

Everything committed to this repository — documentation, code, comments, commit messages, identifiers — is written in English only. docs/ARCHITECTURE.md records every technical decision (ADR-001 to ADR-074) and MUST stay in sync with the code at all times: - Any change that affects the architecture (new adapter, new dependency, changed API contract, changed infrastructure, port/schema change, revisited decision) updates docs/ARCHITECTURE.md in the same change. - A revisited decision gets a new ADR entry; never rewrite history. - Not-yet-implemented parts are marked…

The file

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

2 rules. About 0 are common, 1 is distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before starting any structural work, read the relevant ADRs first.

    line 19
  2. Very specific:

    All dev/test/deploy commands are listed in docs/COMMANDS.md.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md

Project conventions

Language

Everything committed to this repository — documentation, code, comments, commit messages, identifiers — is written in English only.

Architecture document is the single source of truth

docs/ARCHITECTURE.md records every technical decision (ADR-001 to ADR-074) and MUST stay in sync with the code at all times:

  • Any change that affects the architecture (new adapter, new dependency, changed API contract, changed infrastructure, port/schema change, revisited decision) updates docs/ARCHITECTURE.md in the same change.
  • A revisited decision gets a new ADR entry; never rewrite history.
  • Not-yet-implemented parts are marked (planned) in the document and tracked in ROADMAP.md. When implementing one, flip both.
  • Before starting any structural work, read the relevant ADRs first.

Architecture rules (summary — details in docs/ARCHITECTURE.md)

  • Hexagonal on both server bricks: domain/ has zero infrastructure dependencies; use cases depend on ports (Rust traits / Python Protocols); adapters implement them.
  • The agent worker never touches the database — results go through the HTTP callback to the Rust API (ADR-006).
  • TDD: test first; unit tests use fakes of the ports; no test may call a paid service (Anthropic, Tavily) — live tests only behind RUN_LIVE_TESTS=1.

Commands

All dev/test/deploy commands are listed in docs/COMMANDS.md. Quick check before committing:

cd backend && cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test
cd agent && uv run ruff check . && uv run ruff format --check . && uv run mypy src && uv run pytest
cd frontend && npm run lint && npm run typecheck && npm test

PostgreSQL integration tests need the compose service: docker compose up -d postgres then DATABASE_URL=postgres://app:app@localhost:5433/aiagent cargo test.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.