chore(root): improving AI contribution guidelines

Merged
DI
20d ago
+76-7

Adds guidelines for AI-assisted contributions, following what Next.js and TanStack do.

  • AGENTS.md: rules for coding agents, split in two. Rules for everyone: add tests, add a short changeset, and don't add comments explaining the code. Rules for external contributors, skipped when the person is in the resend GitHub org: the person reviews everything including the PR description, changes stay scoped, and there's an issue or RFC before coding. Also lists the checks to run and the PR title format.
  • CLAUDE.md: imports AGENTS.md, since Claude Code doesn't read AGENTS.md directly.
  • PR template: adds a checklist, with "I understand the code in this PR and the problem it solves", "I read this description, and it accurately describes the change", and a changeset item.
  • CONTRIBUTING.md and the docs page on opening PRs: a new section on using AI tools. Also removes the stale line saying we have no PR template.

Open question:

  • Keep the "may close the pull requests and block the account" spam clause, or soften it?