agentleFS
eugenelimeugenelim/agent-ready-repo/packages/AGENTS.md

agent-ready-repo / packages

AGENTS.md24 starsChanged 2 months agoApache-2.0View on GitHub

Applies to packages/. Inherits the root AGENTS.md. Scope-specific deltas only. Non-cosmetic package changes update both version.py and pyproject.toml. CLI-surface changes may require release; see AGENTS.local.md. - Text reads and writes must pass encoding="utf-8". - Use list-form subprocess calls only: never shell=True or shell out to grep, sed, or make from portable package code. - Tests isolating a user root must set AGENTBUNDLE_USER_ROOT with HOME: Windows expanduser() ignores monkeypatched environment variables. - Do not hardcode /tmp or read os.environ["HOME"] directly in…

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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 list-form subprocess calls only: never shell=True or shell out to grep, sed, or make from portable package code.

    line 14
  2. Very specific:

    Do not hardcode /tmp or read os.environ["HOME"] directly in portable tests.

    line 18
  3. Very specific:

    Use tmp_path, not tempfile.mkdtemp().

    line 20
  4. Very specific:

    Use build_pipeline, not build, for build-pipeline tests: pytest skips any directory named build by default.

    line 25

≈ “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 — packages/

Applies to packages/. Inherits the root AGENTS.md. Scope-specific deltas only.

Version bump rule

Non-cosmetic package changes update both version.py and pyproject.toml. CLI-surface changes may require release; see AGENTS.local.md.

Cross-package traps

  • Text reads and writes must pass encoding="utf-8".
  • Use list-form subprocess calls only: never shell=True or shell out to grep, sed, or make from portable package code.
  • Tests isolating a user root must set AGENTBUNDLE_USER_ROOT with HOME: Windows expanduser() ignores monkeypatched environment variables.
  • Do not hardcode /tmp or read os.environ["HOME"] directly in portable tests.
  • Wrap os.symlink() in try/except OSError and skip when symlinks are unavailable.
  • Use tmp_path, not tempfile.mkdtemp(); autouse fixtures use tmp_path_factory.mktemp().
  • Patch environments with the monkeypatch fixture.
  • Projection-layout, orphan-scanner, and adapter-resolution tests parametrize over every shipped adapter from agentbundle/_data/adapter.toml; document exceptions.
  • Use build_pipeline, not build, for build-pipeline tests: pytest skips any directory named build by default.

Test conventions

Assertion ownerTest home
Engine distributionpackages/agentbundle/tests/{unit,integration,build_pipeline}/
Catalogue ruletests/conformance/
Catalogue rostertests/roster/
Pack behaviorpacks/<pack>/tests/
Repository toolbeside its tools/ script

This table is enforced, not stylistic. packages/agentbundle/tests/ ships inside the sdist and is re-run against an extracted workspace holding only the package — no contracts/, packs/, docs/, or catalogue.toml. A test placed here that reads a repository path passes locally and fails the sdist artifact gate. Keep the package behaviour here against fixtures and move the repository-level half to tests/roster/; tests/AGENTS.md owns what that obliges.

Deeper pointers

Package release process lives in docs/guides/explanation/release-coupling.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.