Prepare a human-reviewable PR summary of the current work. Use when the human asks for a PR description, a merge summary, or "prepare a PR". Never commits, pushes or mutates git history.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Prepare Pr?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/davidleberknight-prepare-pr)
---
name: prepare-pr
description: Prepare a human-reviewable PR summary of the current work. Use when the human asks for a PR description, a merge summary, or "prepare a PR". Never commits, pushes or mutates git history.
---
# Prepare PR
The summary must give reviewers a clear picture of what changed, why, and whether it is safe to merge.
## Step 1: Verify doc-sync ran
Check whether `doc-sync` has been run since the last significant change in this session. If it has not, flag this in the PR summary as a prerequisite gap: do not silently omit it.
## Step 2: Gather facts
Read:
- current diff (changed files and their diffs)
- verification per the test-targets line in root `CLAUDE.md`, run if not already done; report pass/fail
- the gate: the bare `./run_all_tests.sh`, which the maintainer starts; report its result and verdict (GREEN, INCOMPLETE or VOID) if it has run on the current tree, otherwise list it as the maintainer's prerequisite with that command
- any open questions or unresolved risks
## Step 3: Verify architecture compliance
Path-scoped rule files in `.claude/rules/` (read each touched path's rule yourself, per the pre-writing-code gate in root `CLAUDE.md`) define the non-negotiable patterns for service, controller, template, view-layer, and db-layer work. Confirm the change complies. Public-page work also follows the `.claude/rules/view-layer.md` rendering invariants and the owning service's file-header JSDoc; service-boundary work also follows the service's file-header JSDoc ownership and required patterns. Intentional deviations land as private-tracker issues.
Flag any violations explicitly in the summary.
## Step 4: Produce the PR summary
Include:
- **What changed**: concise description of behavior added, fixed, or removed
- **Why**: user story, bug, or decision that drove it
- **Key files changed**: list with one-line notes on the role of each
- **Tests**: the tests added or changed and the evidence the `write-tests` report carries for them (defect caught, criteria covered, red-then-green, surviving breaks on a high-risk change, new exemptions with reasons); pass/fail status
- **Type-check**: `tsc` pass/fail
- **Architecture compliance**: confirm the rules above or flag any deviations
- **Risks and tradeoffs**: anything a reviewer should scrutinize
- **Open questions**: anything unresolved that the reviewer should decide
- **Follow-up work**: known gaps deferred to a later task
Never claim verification that did not happen. Git writes are the human's (the git-mutation hook refuses them).
## Stop when
The summary is shown to the human; nothing is committed or pushed.