Skip to content

docs(contributing): state what a PR description must cover - #21080

Merged
brennanb2025 merged 1 commit into
mainfrom
brennanb2025/docs-agents-md-pr
Sep 16, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
brennanb2025/docs-agents-md-pr

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​15 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​11

ELI5

PR descriptions here vary a lot. This writes down the small set of things every PR description has to cover, in the two places people actually read: AGENTS.md for agents, and the PR template's own section comments for everyone opening a PR by hand.

What Changed

Before: AGENTS.md had no PR-writing guidance at all, and the template gave headers with minimal hints ("Simple high-level explanation", "Describe the change clearly"). A description could answer every prompt in the template and still leave a reviewer without two things — what a user experiences differently, and which mechanism actually moved.

After: both surfaces name the same four requirements. No jargon; the before and after as the user experiences it; the mechanism changed, not just the symptom; and why this approach over the alternatives considered.

Where the guidance lives is the part that matters: it went into the template's existing section comments rather than a new "how to write this PR" block, so each requirement sits inside the section that governs it and the template does not get longer. AGENTS.md links to the template instead of restating it, so there is one copy to keep current.

Why

Three alternatives, and why not:

  • A standalone guidance block in the template. Rejected: it restates what the section headers already ask, and it adds length to text that is re-read on every single PR.
  • CONTRIBUTING.md only. It already carries PR bullets, so this looked like the natural home. Rejected because agents read AGENTS.md and the template is what a contributor sees at the moment they are writing — guidance in a third file is the copy that goes stale.
  • More prescriptive wording, with worked examples of good and bad phrasing. Rejected deliberately: specific rules over-fit to whichever change inspired them. Broad requirements survive contact with a kind of PR nobody anticipated.

Linked Issue

No issue — requested directly. Flagging rather than inventing a number, since the template asks for one.

Visual Proof

N/A — documentation and template text only; no UI, no interaction change.

Testing

Docs-only; no runtime code path is touched, so there is nothing to unit-test and no platform-specific behavior to exercise.

Verified by hand: the new AGENTS.md link resolves to .github/pull_request_template.md, and the repo's check:readme-local-links gate scans only README.md plus docs/readme/, so no existing check covers that link either way.

  • I manually tested these changes locally — no runnable behavior; link target verified by hand instead
  • Automated tests added/updated, or explained why not below — no behavior to test

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Security, cross-platform (Linux/Windows/macOS), remote SSH, mobile, backwards compatibility, performance: no code changes, so none are affected.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred) — CI covers; no source files changed

AGENTS.md said nothing about writing PRs, and the template's section
comments could be satisfied without ever telling a reviewer what changed
for the user or which mechanism moved. Name the same four requirements in
both places: no jargon, user-facing before/after, the mechanism, and why
over the alternatives.
@coderabbitai

coderabbitai Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 03ae743e-77be-45b6-a7b0-cf0ca8a88476

📥 Commits

Reviewing files that changed from the base of the PR and between 71e308e and 09c1291.

📒 Files selected for processing (2)
  • .github/pull_request_template.md
  • AGENTS.md

Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

Updated .github/pull_request_template.md with clearer prompts for ELI5 explanations, user-facing before and after behavior, changed mechanisms, and rationale. Added a matching Writing Pull Requests section to AGENTS.md. The changes are documentation-only.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 09c12

The updated guidance is consistent and does not affect runtime behavior, so the change is ready to merge.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: documenting the required content of pull request descriptions.
Description check ✅ Passed The description is complete and matches the template. It explains the change, rationale, before and after, testing, visual proof, scope, and checklist status. It also explains why no linked issue is p…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Documentation-only change stating the four things every PR description must cover, in the two surfaces contributors actually read.

  • .github/pull_request_template.md — expands the ## ELI5, ## What Changed, and ## Why section comments to name plain language, the user-facing before/after, the mechanism, and why over the alternatives; the ## Checklist bullet now enumerates the same four.
  • AGENTS.md — new top-level # Writing Pull Requests section listing the four requirements and linking to the template, so there is one copy to keep current.

Verification I did while reviewing: CLAUDE.md is a one-line @AGENTS.md import, so the new section reaches Claude as well with no stale duplicate; the nested AGENTS.md files (src/main/daemon, tests, tests/e2e) are scoped and unaffected; .github/CONTRIBUTING.md says "follow the template. In particular:", i.e. a non-exhaustive subset, so leaving it untouched does not contradict the new wording; no test or snapshot asserts the template body (src/main/github/client-create-pr.test.ts only exercises candidate path resolution), and config/scripts/pr-code-change-scope.mjs already classifies .github/pull_request_template.md as docs-only. The new AGENTS.md link resolves root-relative from the repo root.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@brennanb2025
brennanb2025 merged commit 0cd05bc into main Sep 16, 2026
22 checks passed
ivanvykopal pushed a commit to ivanvykopal/orca that referenced this pull request Sep 20, 2026
…21080)

AGENTS.md said nothing about writing PRs, and the template's section
comments could be satisfied without ever telling a reviewer what changed
for the user or which mechanism moved. Name the same four requirements in
both places: no jargon, user-facing before/after, the mechanism, and why
over the alternatives.
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