Skip to content

Tell AI agents to use the PR templates and the contribution terms box - #972

Merged
coffandro merged 2 commits into
mainfrom
docs/agent-pr-descriptions
Dec 3, 2026
Merged

coffandro merged 2 commits into
mainfrom
docs/agent-pr-descriptions

Conversation

@coffandro

@coffandro coffandro commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

PRs opened by AI agents often skip the PR template, because gh pr create --body and the API don't apply it. That drops the contribution terms checkbox, so the required Contribution terms check fails and auto-merge (E23) refuses the PR.

  • AGENTS.md (new, read by Codex, Copilot, Cursor and others): start every PR description from the matching template (data, web editor/code, "Used by", or the default) and keep the "Contribution terms" checkbox line exactly as written. When no template fits, add the section anyway. The box is the human's agreement, so the agent asks the person it works for whether they accept the terms (with a one-line summary and the link), then ticks or leaves the box in the PR body based on the answer. It skips the question only when the person already answered in the session or in their own instructions. Fixing the box means editing the description, which re-runs the check without a new commit.
  • CLAUDE.md (new): @AGENTS.md, because Claude Code reads CLAUDE.md.
  • .github/copilot-instructions.md: the PR template list now includes the default and used-by-listing.md templates, plus a pointer to AGENTS.md.

Contribution terms

  • I agree to the contribution terms: my contribution is MIT-licensed, SimplyPrint may also use it under other licence terms, and I'm allowed to submit it.

AGENTS.md (and CLAUDE.md, which imports it) tells agents to start every PR
description from the matching template, which gh pr create --body and the
API skip, to keep the "Contribution terms" checkbox line as written, and to
add the section when no template fits. The box is the human's agreement:
agents tick it only when the person they work for has accepted the terms,
and otherwise leave it unticked and say so.

copilot-instructions.md lists the default and used-by-listing templates
and points to AGENTS.md.
@coffandro
coffandro merged commit f0a1df0 into main Dec 3, 2026
9 checks passed
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.

1 participant