Skip to content

docs: add agent instructions (AGENTS.md, CLAUDE.md) (#17) - #48

Merged
YaelAnaya merged 1 commit into
mainfrom
docs/17-agent-instructions
Dec 5, 2026
Merged

YaelAnaya merged 1 commit into
mainfrom
docs/17-agent-instructions

Conversation

@YaelAnaya

Copy link
Copy Markdown
Contributor

Summary

Adds repository-wide agent instructions:

  • AGENTS.md (149 lines) is the canonical file.
  • CLAUDE.md contains only @AGENTS.md, Claude Code's import syntax, so there is one copy of the rules.

Closes #17.

What AGENTS.md covers

  • Sources of truth (topic → owning file).
  • Repository map.
  • Commands and when to run each.
  • The component workflow, using ADR 0001's foundation order, the shadcn registry, and DESIGN's checklist.
  • Design constraints and accessibility.
  • Tests and documentation conventions.
  • Dependency selection and public API compatibility.
  • GitHub workflow: issue first, <type>/<issue>-<slug> branches, Conventional Commits, no pushes to main, merges, tags or publishes unless asked.
  • A definition-of-done checklist.

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

  • Links: all 20 local links resolve, including heading anchors, checked by a script against GitHub's slug rules.
  • Commands: every pnpm … command named exists in package.json.
  • Claude Code (2.1.323): run in the repo with claude -p --max-turns 1 and all file/shell tools disallowed, it quoted the example branch feat/31-sortable-list-behavior and "never edit src/theme/shadcn.css". The branch name exists only in AGENTS.md, so the @AGENTS.md import works.
  • Codex (codex-cli 0.172.0): codex exec --sandbox read-only gave the same two answers. Codex reads AGENTS.md natively.
  • 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

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
@YaelAnaya YaelAnaya added type: documentation Documentation changes area: agent-tooling Agent instructions, skills, and workflows labels Dec 5, 2026
@YaelAnaya YaelAnaya self-assigned this Dec 5, 2026
@YaelAnaya
YaelAnaya merged commit 5b5c901 into main Dec 5, 2026
1 check passed
@YaelAnaya
YaelAnaya deleted the docs/17-agent-instructions branch December 5, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: agent-tooling Agent instructions, skills, and workflows type: documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[04] AGT-01 · Add repository-wide agent instructions (AGENTS.md, CLAUDE.md)

1 participant