Skip to content

Add AGENTS.md and CLAUDE.md to guide AI coding assistants#45

Merged
dolph merged 2 commits into
mainfrom
claude/add-agents-md
May 16, 2026
Merged

Add AGENTS.md and CLAUDE.md to guide AI coding assistants#45
dolph merged 2 commits into
mainfrom
claude/add-agents-md

Conversation

@dolph
Copy link
Copy Markdown
Owner

@dolph dolph commented May 16, 2026

Summary

Adds AGENTS.md and CLAUDE.md so AI coding assistants (and human contributors) operating in this repo have a short, consistent reference for project structure, dev workflow, code style, and repository conventions.

  • AGENTS.md is the canonical guidance file (tool-agnostic convention adopted across the industry).
  • CLAUDE.md is a one-line @AGENTS.md import so Claude Code reads the same content without duplication.

The guide includes:

Also ignores .claude/ in .gitignore — that's the worktree directory created by Claude Code's agent-isolation feature and should never be committed.

Test Plan

  • AGENTS.md reads cleanly as Markdown (verified locally).
  • CLAUDE.md uses Claude Code's documented @<path> import syntax pointing at AGENTS.md.
  • git status is clean after .claude/ is gitignored.
  • Future PRs should land on agent-generated branches following the documented conventions; light validation by observing the next agent-authored PR.

No code changes; documentation and gitignore only.

https://claude.ai/code/session_01WjHPSobuzrRkjwUgjAJWMk


Generated by Claude Code

claude added 2 commits May 16, 2026 13:05
AGENTS.md is the canonical guidance file (tool-agnostic convention).
CLAUDE.md imports it via @AGENTS.md so Claude Code reads the same
content. The guide covers project structure, dev loop, code style,
repo conventions, label/priority rubric, scope discipline, and a
short list of "known traps" tied to currently open issues so agents
do not reintroduce them.

Also ignore .claude/ — the worktree directory created by Claude
Code's agent isolation feature should never be committed.

https://claude.ai/code/session_01WjHPSobuzrRkjwUgjAJWMk
Adds a focused TDD section between the dev loop and code-style
guidance: write the failing test first, confirm it fails for the
right reason, make the smallest change to pass, refactor while
green. Includes Go-specific notes on table-driven tests, hermetic
fixtures via t.TempDir, descriptive test names, and an explicit
escape hatch for fixes whose surrounding code has no testable seam
yet (note in the PR Test Plan and file a follow-up).

The section ends with a warning against checklist-theater tests
that call the function and t.Fatal on errors without asserting on
outputs, because those give false confidence.

https://claude.ai/code/session_01WjHPSobuzrRkjwUgjAJWMk
@dolph dolph merged commit d1cb5b5 into main May 16, 2026
2 checks passed
@dolph dolph deleted the claude/add-agents-md branch May 16, 2026 13:13
dolph added a commit that referenced this pull request May 16, 2026
The release workflow defaults to a patch bump when a merged PR has
no release:* label. Docs-only PR #45 and test-only PR #50 were both
opened unlabeled because AGENTS.md only mentioned the labels exist
without instructing agents to apply one. #45 likely cut an empty
patch release; #50 needed retroactive labeling before merge.

Replace the passing mention with a short rubric covering when to
use skip / patch / minor / major, and an explicit "before merge"
deadline so future agents pick exactly one.

https://claude.ai/code/session_01WjHPSobuzrRkjwUgjAJWMk

Co-authored-by: Claude <noreply@anthropic.com>
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.

2 participants