agentleFS
davidvornholtdavidvornholt/mailbox/AGENTS.md

mailbox

AGENTS.md2 starsChanged 58 days agoMITView on GitHub

Do not weaken quality gates to make a change pass. Explain inline suppressions. Use configuration exceptions only where a rule cannot apply, scoped to the affected path and rule. Document only what readers need beyond code, configuration, skills, and existing docs; link instead of repeating. Keep change history, implementation summaries, and test-run logs in PRs. Read only documentation relevant to the current task. This is a canonical file from the standards repository. Project-specific rules belong in AGENTS.local.md. @AGENTS.local.md

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    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:

    Do not weaken quality gates to make a change pass.

    line 5
  2. Distinctive:

    Do not build backwards compatibility by default.

    line 9
  3. Distinctive:

    Ask before choosing product intent or another costly, durable direction.

    line 10
  4. Very specific:

    Use Bun only, at the exact version declared by the root packageManager.

    line 14
  5. Distinctive:

    Use Effect extensively where it makes code more robust.

    line 33
  6. Distinctive:

    Write plainly and directly.

    line 40
  7. Distinctive:

    Use sentence case for reader-facing text — UI copy, labels, command-style actions, Markdown headings — preserving proper nouns, acronyms, …

    line 41
  8. Distinctive:

    Do not hard-wrap Markdown prose.

    line 42
  9. Distinctive:

    Document only what readers need beyond code, configuration, skills, and existing docs.

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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

Quality gates

Do not weaken quality gates to make a change pass. Explain inline suppressions. Use configuration exceptions only where a rule cannot apply, scoped to the affected path and rule.

Change policy

  • Do not build backwards compatibility by default. Migrate every call site and delete the old shape in the same change. Do not add deprecated aliases, versioned copies, or compatibility-only optional parameters.
  • Ask before choosing product intent or another costly, durable direction. Assume no background knowledge or familiarity with the code; explain what is at stake, where each option leads, and recommend one before presenting technical evidence.

Package management

  • Use Bun only, at the exact version declared by the root packageManager.
  • Workspaces using Bun runtime or bun:test types must declare @types/bun.

Architecture

  • App code lives in apps/*. Business logic belongs in src/features/<domain> and app-wide infrastructure in src/shared. Keep single-app code in the app unless it has an intentional shared contract.
  • Shared code lives in packages/* and defaults to src/<capability>.ts(x) plus colocated tests, with deeper folders only when the capability needs them.
  • Package names use the project alias @<actual-project-name>/<package-name>. Canonical packages use @davidvornholt and change in the standards repository.
  • Entrypoints route, parse initial inputs, wire Effect layers, and bridge to runtime or UI.
  • Dependency flow is entrypoint -> features -> shared -> packages. Features do not import sibling features, and cross-package imports use package aliases rather than relative paths.
  • A cohesive boundary file may exceed the 400-line lint limit through a scoped biome.jsonc override and an entry in docs/quality/no-excessive-lines-per-file-exceptions.md.

Workspace scripts

  • Operational scripts belong to the owning workspace's package.json. Keep root scripts minimal: the quality gates plus narrowly useful filtered Turbo convenience aliases.
  • Canonical repo-spanning workflows and convenience recipes live in the root justfile; project-specific recipes live in local.just.

Effect standards

  • Use Effect extensively where it makes code more robust. Keep simple synchronous logic and UI components plain, integrating Effect at boundaries.
  • Service contracts expose typed errors and requirements. Represent expected failures with Schema.TaggedError, a stable _tag, and an actionable message instead of throwing.
  • In an Effect v4 workspace, follow the agent guide that ships with the package at node_modules/effect/AGENTS.md for idioms this section does not cover.
  • Workspace-wide exceptions require an architectural reason in AGENTS.local.md; keep each workspace consistent.

Writing style

  • Write plainly and directly. Avoid mannered prose, decorative metaphors, and stock phrases. Prefer literal wording and sentences that are easy to follow.
  • Use sentence case for reader-facing text — UI copy, labels, command-style actions, Markdown headings — preserving proper nouns, acronyms, filenames, package names, and domain terms.
  • Do not hard-wrap Markdown prose; keep each paragraph or list item on one logical line.

Documentation

Document only what readers need beyond code, configuration, skills, and existing docs; link instead of repeating. Keep change history, implementation summaries, and test-run logs in PRs. Read only documentation relevant to the current task.

Project-specific rules

This is a canonical file from the standards repository. Project-specific rules belong in AGENTS.local.md.

@AGENTS.local.md

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.