Skip to content

docs: add AGENTS.md, read by Claude Code through .claude/CLAUDE.md - #120

Merged
drevendev merged 1 commit into
masterfrom
beautifulrepo/agents-md-20261023
Oct 23, 2026
Merged

drevendev merged 1 commit into
masterfrom
beautifulrepo/agents-md-20261023

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem and change

Coding agents open most of BeautifulRepo's pull requests, and each one had to rediscover the house rules. AGENTS.md is a one-screen contract:

  • the purpose;
  • the five checks, in the exact block the consistency test already enforces for README, CONTRIBUTING and the maintenance guide;
  • the rules:
    • English and no invented facts;
    • stdlib-only, offline tools;
    • Related: versus Closes;
    • Keep a Changelog sections;
    • private security reports;
    • one topic per PR and a protected master;
  • where things live.

Codex reads AGENTS.md itself. For Claude Code, the issue suggested a root CLAUDE.md with @AGENTS.md. That breaks plugin validation, because the repository root is also the plugin root. .claude/CLAUDE.md imports @../AGENTS.md instead. CONTRIBUTING links the file.

Closes #53

Evidence

Run on a copy of the repository with claude plugin validate --strict .claude-plugin/plugin.json (Claude Code 2.1.259):

Layout Result
AGENTS.md only passed
plus a root CLAUDE.md failed: "CLAUDE.md at the plugin root is not loaded as project context"
plus .claude/CLAUDE.md passed

Verification

  • The five local checks passed on Windows 11 with Python 3.14.7: catalog OK; docs links 198 across 48 files; HTML navigation 209; 293 tests OK, 7 skipped; repo audit 0 findings.
  • tests/test_check_list_consistency.py covers it:
    • the five-check block also appears in AGENTS.md;
    • no root CLAUDE.md exists;
    • .claude/CLAUDE.md imports AGENTS.md;
    • CONTRIBUTING links it.
  • Not verified: that a Claude Code session in this repository loads the import. That is documented behaviour, not observed here.

🤖 Generated with Claude Code

Agents open most of BeautifulRepo's pull requests and had to rediscover the
house rules each time. AGENTS.md states the purpose, the five checks (kept in
step with CI by the check-list consistency test), the rules (English, no
invented facts, stdlib-only tools, Related versus Closes, changelog sections,
private security reports, protected master) and the layout.

Codex reads AGENTS.md directly. A root CLAUDE.md would fail
`claude plugin validate --strict` ("CLAUDE.md at the plugin root is not loaded
as project context", Claude Code 2.1.259), so .claude/CLAUDE.md imports it
instead; that variant validates. CONTRIBUTING links the file.

Closes #53

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@drevendev
drevendev merged commit 0a855f1 into master Oct 23, 2026
5 checks passed
@drevendev
drevendev deleted the beautifulrepo/agents-md-20261023 branch October 23, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add an AGENTS.md agent guide

1 participant