agentleFS
alvaroofernaandezalvaroofernaandez/aval/AGENTS.md

aval

AGENTS.md5 starsChanged 2 days agoMITView on GitHub

Read by any coding agent working in this repository (Claude Code loads it through CLAUDE.md). The project skills in .claude/skills/ are the standard here: where one disagrees with a global or personal skill, the project skill wins. plan-deck, design-pipeline and strict-tdd are the skills aval distributes from skills/; they apply here as well. Run the focused package or -run pattern while iterating and the full suite once at the end. Every report of work, by a person or an agent,…

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

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:

    Read by any coding agent working in this repository (Claude Code loads it through CLAUDE.md).

    line 3
  2. Very specific:

    Assert errors, not text: Use errors.Is or errors.As, never err.Error() comparisons.

    line 24
  3. Very specific:

    Visible surfaces: Run the design pipeline and aval design ack <surface> before editing one.

    line 28
  4. Very specific:

    Run the focused package or -run pattern while iterating and the full suite once at the end.

    line 44
  5. Distinctive:

    Every report of work, by a person or an agent, states:

    line 48

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

Agent instructions for aval

Read by any coding agent working in this repository (Claude Code loads it through CLAUDE.md). The project skills in .claude/skills/ are the standard here: where one disagrees with a global or personal skill, the project skill wins.

Load the project skill before the task

TaskSkill
Package boundaries, a new package, interface or seam, an import between internal/ packages, before and after a refactoraval-architecture
Writing or changing a test, TDD, running any suite, flaky or slow testsaval-testing
Any Markdown file, README, guide, ADR or documentation imageaval-docs
Versioning, the changelog, tagging or publishing a releaseaval-release
Release notes and the changelog of a version, in English and Spanish, and the GitHub release bodyaval-release-notes
Executing a plan from odd/tasks, or slides of a planplan-deck
Any visible surface: a TUI screen, CLI output, layout, style, copy, or .agents/DESIGN.mddesign-pipeline
Any feature, bug fix or behavioural refactorstrict-tdd

plan-deck, design-pipeline and strict-tdd are the skills aval distributes from skills/; they apply here as well.

Hard rules

  • Go only. New behaviour is Go in cmd/ or internal/. No shell or Python; dotfiles sourced by zsh (home/) are the only exception.
  • Strict TDD. RED first: a test that fails on its assertion, not on a compile or import error. Then GREEN with the minimum code, then refactor.
  • Assert errors, not text. Use errors.Is or errors.As, never err.Error() comparisons. User-facing text is pinned in one place.
  • Tests are deterministic. Temp dirs only through t.TempDir(); no fixed sleeps.
  • Commits. Conventional Commits, one reviewable unit each, with its tests. No Co-Authored-By or AI attribution.
  • Plan before execution. Substantial work gets a plan in odd/tasks/<feature>.md and a deck (plan-deck) before the first source edit.
  • Visible surfaces. Run the design pipeline and aval design ack <surface> before editing one; prove it with aval design gate.
  • Never push unasked.
  • Hooks and the statusline never load config. They are hot paths: pure work on their input, no config read, no exec, no network. Amended 2026-11-23 (ADR 0007): a hook may start an already resolved tool under a timeout, never on its no-op path. Amended 2026-11-28 (ADR 0009): aval hook guard may read its private allow-list, only after a rule has matched.
  • Opening the hub writes nothing and never touches the network. It reads local state only (the update badge uses refs already fetched).
  • Decisions are recorded, never rewritten. A changed decision gets a dated amendment or a new ADR.

Commands

go test ./...                          # the full suite
go test ./tests/ -run Architecture     # the import-boundary gate
go vet ./...
gofmt -l .                             # must print nothing
go test -race -count=1 ./path/...      # chasing a flake: race detector, no cache

Run the focused package or -run pattern while iterating and the full suite once at the end.

Output contract

Every report of work, by a person or an agent, states:

  • What ran: the exact command, its exit code, and the pass, fail and skip counts.
  • What did not run, and why: a suite skipped, a build tag not set, a tool missing. Skipped is not passed.
  • Failures: the test name and the tail of its output, not a paraphrase.
  • TDD evidence: the RED line (the failing assertion) and the GREEN output.

Report only what ran and what you observed. Never invent evidence.

Where things live

  • cmd/aval: the entry point, a thin wrapper.
  • internal/: leaves (agent/*, devops/*, term/*, herdr/*, deck, design/ack, design/gate, release, docs/*, devmode, i18n, ui/caps, testenv) and tools/* import nothing internal; design/hook imports only design/ack; core/* imports only core/* and release; ui sits on core/*, devmode, i18n, release and ui/caps; ui/cli on ui, ui/caps and i18n. The model and the allowlist are in docs/architecture/model.md and ADR 0002; go test ./tests/ -run Architecture enforces them.
  • tests/: repo-level guards (budgets, workflows, docs, architecture).
  • odd/tasks/: plans, one file per feature.
  • docs/adr/: architecture decision records.
  • .agents/DESIGN.md: the design contract for every visible surface.
  • install.manifest: what aval install links; code reads it, never hard-codes paths.
  • config/claude/CLAUDE.md: the global file aval installs for its users, not this project's instructions.

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.