Repository navigation
docs: add agent instructions (AGENTS.md, CLAUDE.md) (#17) - #48
Merged
Merged
Conversation
AGENTS.md is the canonical entry point for coding agents: sources of truth, repository map, commands and when to run them, the component workflow, design and accessibility constraints, tests, docs, dependencies, public API compatibility, the GitHub workflow and a definition of done. Each rule is one line that links to the section of DESIGN.md, CONTRIBUTING.md or ADR 0001 that owns it, rather than repeating it. CLAUDE.md imports it (@AGENTS.md) so Claude Code and Codex read one file. Closes #17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds repository-wide agent instructions:
AGENTS.md(149 lines) is the canonical file.CLAUDE.mdcontains only@AGENTS.md, Claude Code's import syntax, so there is one copy of the rules.Closes #17.
What AGENTS.md covers
<type>/<issue>-<slug>branches, Conventional Commits, no pushes tomain, merges, tags or publishes unless asked.Each rule is one line linking to the section of DESIGN.md, CONTRIBUTING.md or ADR 0001 that owns it. Nothing from those files is replicated.
Verification
pnpm …command named exists inpackage.json.claude -p --max-turns 1and all file/shell tools disallowed, it quoted the example branchfeat/31-sortable-list-behaviorand "never editsrc/theme/shadcn.css". The branch name exists only inAGENTS.md, so the@AGENTS.mdimport works.codex exec --sandbox read-onlygave the same two answers. Codex readsAGENTS.mdnatively.pnpm format:check✓. Markdown is excluded from Prettier and hand-wrapped at 100 columns; the one longer line is a link.Public API / dependency changes
None.
Notes