agentleFS
davidvornholtdavidvornholt/standards/AGENTS.md

standards

AGENTS.md3 starsChanged todayMITView on GitHub

Ask before choosing product intent or another costly, durable direction. Before you change anything in a repository, read its AGENTS.md and its skills, also when your session started somewhere else. Leave an issue or pull request labelled not-for-agents alone unless the user asks you to work on it in this session. The label marks what the user handles themselves and pull requests that must not merge yet, not work that waits for a date or another project. Disagree openly when…

The file

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

11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 5
  2. Distinctive:

    Before you change anything in a repository, read its AGENTS.md and its skills, also when your session started somewhere else.

    line 7
  3. Distinctive:

    Write for a reader who has no background on the task and hasn't read the code.

    line 13
  4. Distinctive:

    Write plainly and directly, in literal wording that is easy to follow.

    line 15
  5. Distinctive:

    When you ask the reader to decide, say what's at stake and where each option leads, and recommend one before giving technical evidence.

    line 19
  6. Distinctive:

    Don't weaken a quality gate to make a change pass.

    line 25
  7. Distinctive:

    Don't build backwards compatibility by default.

    line 31
  8. Distinctive:

    Use sentence case for reader-facing text, including Markdown headings.

    line 35
  9. Distinctive:

    Don't hard-wrap Markdown prose.

    line 37
  10. Very specific:

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

    line 45
  11. Very specific:

    Use Effect extensively wherever it makes sense, because it helps agents write more robust code.

    line 62

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

Working with the user

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

Before you change anything in a repository, read its AGENTS.md and its skills, also when your session started somewhere else.

Leave an issue or pull request labelled not-for-agents alone unless the user asks you to work on it in this session. The label marks what the user handles themselves and pull requests that must not merge yet, not work that waits for a date or another project.

Disagree openly when an instruction, plan, or rule seems wrong, and say what you would do instead. Recommend the better option even when it's a bigger change than was asked for.

Write for a reader who has no background on the task and hasn't read the code. That includes the user, because agents write most of the code.

Write plainly and directly, in literal wording that is easy to follow. Avoid mannered prose, stock phrases, and jargon where plain words say the same thing, and don't compress sentences into fragments to save words.

Every instruction you write for an agent, whether documentation, a skill, a prompt, or a brief for another agent, costs that agent a little attention, and the user pays for its input and reasoning tokens. Keep a sentence only when it saves more than it costs, such as a decision agents would otherwise get wrong or work out again on every run, and put it where only the agents that need it read it: user-wide instructions reach every session, so knowledge that only some tasks need belongs in a skill or in the repository it concerns.

When you ask the reader to decide, say what's at stake and where each option leads, and recommend one before giving technical evidence.

The user may read only your last message. While working, write only to answer a question, when your goal changes, when something is ready for review, or when you need something from the user, such as an approval, and leave out the details of the step you're on. Start each final message by answering every question the user asked after the last final message they replied to, even if you answered it before, then say what you need from them and what's ready for their review.

Quality gates

Don't weaken a quality gate to make a change pass. Explain every inline suppression where it appears. Use a configuration exception only where a rule can't apply, scoped to the affected path and rule.

Change policy

You are the owner and long-term maintainer of this codebase, and its design is up to you.

Don't build backwards compatibility by default. Code in these repositories has no consumers outside them, so migrate every call site and delete the old shape in the same change.

Formatting

Use sentence case for reader-facing text, including Markdown headings.

Don't hard-wrap Markdown prose.

Documentation and instructions

Simplify by removing decisions and branches rather than compressing sentences, and before adding a rule, check whether changing an existing one would do. Give the reason for a rule that isn't obvious, and state each fact once. Keep history and status in PRs and issues, and cut documentation in the same change that makes it stale.

Package management

Use Bun only, at the exact version declared by the root packageManager. Workspaces that use the Bun runtime or bun:test types declare @types/bun themselves.

Architecture

  • App code lives in apps/*. Business logic belongs in src/features/<domain> and app-wide infrastructure in src/shared. Code used by one app stays in that app unless it has an intentional shared contract.
  • Shared code lives in packages/*, by default as src/<capability>.ts(x) with colocated tests, and 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 the runtime or UI.
  • Dependencies flow entrypoint -> features -> shared -> packages. Features don't 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 in the owning workspace's package.json. Root scripts stay minimal: the quality gates, including lint and lint:fix, plus a few filtered Turbo aliases that are actually useful. Biome lints the whole repository once from the root, so workspaces don't declare lint scripts. Canonical repo-spanning workflows and convenience recipes live in the root justfile, and project-specific recipes in local.just.

Effect standards

Use Effect extensively wherever it makes sense, because it helps agents write more robust code. In an Effect v4 workspace, follow the agent guide shipped at node_modules/effect/AGENTS.md, because v4's API differs from the v3 most models learned.

Project-specific rules

Payloads and the generated AGENTS.md

sync-standards.json lists what standards sync copies into consumers, in two payloads: core, for repositories in any language, and bun, which Bun consumers get on top of core. Put a path in bun when it assumes a Bun workspace. AGENTS.md is generated from the payloads' parts in agents-md/ down to its ## Project-specific rules heading: edit the parts and run bun run check:fix, which regenerates that part. A session-start hook in nix-config also adds the ## Working with the user section of agents-md/core.md to David's sessions wherever the repository's AGENTS.md lacks that heading, so keep the heading and put only rules there that hold in any folder. Sync ships this repository's .github/dependabot.yml only down to its # Project-specific updates line, so update blocks for this repository alone go below that line.

Source-repository structure profile

This repository is not a standards structure consumer. Its root gate runs the local CLI instead of standards check, and packages/standards-cli is a published bin-only package with a SemVer version. The source profile in packages/standards-cli/src/structure-profile.ts pins these exceptions. When the repository's shape changes, update that profile and the root check and check:fix scripts together.

Standards CLI bootstrap architecture

packages/standards-cli is exempt from the Effect standards. It must run through bunx before a consumer installs dependencies, so it uses plain async TypeScript and minimal runtime dependencies.

Standards CLI subcommand vs. justfile recipe

Operator tooling with real logic, such as validation, credential resolution, provider calls, or structured output, becomes a tested bun standards subcommand. Justfile recipes stay one-line compositions of existing commands. Do not wrap a subcommand that is already a single obvious invocation.

Dependency version holds

Declare template-wide holds as ignore entries in the shared blocks of .github/dependabot.yml, above its # Project-specific updates line, each with a comment giving the reason and the lift condition. Every dependency that a synced package manifest declares needs such an entry, without a lift condition, because a bump rewrites a read-only file and fails standards check in every consumer. Never hold a version by closing Dependabot PRs or with @dependabot ignore comments. When a hold or held pin changes, update the hold entry and every affected pin in the root package.json, template/package.json, and the biome.base.jsonc schema URL together.

Authoring the canonical Biome base

biome.base.jsonc enables every applicable rule domain, the recommended set, and applicable opt-in nursery and security rules at error. On Biome upgrades, adopt new rules at error and opt out deliberately.

Bun upgrades

Let the Bun upgrade workflow raise Bun. For a manual run, use bun standards bun upgrade --write so the archive hashes and settings checker stay in sync.

Skill descriptions

A skill's description is loaded into every session, so it says only when to use the skill, such as Use when opening an issue or changing its title or description. What the skill does belongs in its body.

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.