/dd:git:prfrom dd:git
Generates a review-ready PR/MR title and description from the branch diff, including conventional-commit title, summary, and changes list. Activates when opening or preparing pull/merge requests.
Ships in dd:git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a review-ready title + description from the branch diff. Output it for the user to review — never open or push it unless the user explicitly asks.
git rev-parse --abbrev-ref origin/HEAD (falls back to main, then master).git diff <base>...HEAD --stat for the shape, git diff <base>...HEAD for detail.git log <base>..HEAD --format='%s' — the commit subjects are the outline of the story. Then the release footers: git log <base>..HEAD --format=%b | grep -E '^(BREAKING[ -]CHANGE|Release-As):'.dd:git:commit says (Release job). If one exists and the diff tags, bumps a version, or edits CHANGELOG.md, flag it to the user.~/.context/<project>/*.md flow doc covers this work, read it to understand the "why" — but it's a private, local note. Fold that understanding into the Summary prose; never cite its path or slice numbers in the output (see Step 3).git remote get-url origin:
github.com → it's a PR (open with gh pr create only if asked).gitlab → it's an MR (open with glab mr create only if asked).Title: one line, conventional-commit style (type(scope): subject) — reuse the dd:git:commit rules, its types and their release levels. Imperative, ≤72 chars.
! > feat > fix / perf). If a commit outranks the title — a fix: title over a feat: commit releases a minor — say so. Real feature → raise the title. Mistyped commit → propose a reword; it rewrites history, so ask first.Release-As: goes in a commit footer (see dd:git:commit), never in the description.The description is an index, not the documentation. A reviewer reads it to learn what changed and why — then they read the diff. Anything that explains the code belongs in the code as a comment, not here. A long description is not thorough; nobody reads it.
Two sections, nothing else: ## Summary and ## Changes. Budget: ~150 words. Over that, cut whole bullets — never compress them into denser prose or abbreviations.
| Section | Budget | What goes in |
|---|---|---|
## Summary | ≤4 sentences + optional visual | The problem, its effect, and what this does about it. The only place prose is allowed. |
## Changes | ≤6 bullets, one line each | Grouped by intent, never a file list. |
| The change… | Visual |
|---|---|
| moves a flow between services or components | Mermaid sequenceDiagram / flowchart |
| changes the control flow inside one service | call tree in a text block |
| adds a module layout or is a broad refactor | shallow file tree, one # role comment per entry |
| adds an algorithm or state logic | pseudocode in a text block |
Skip it when it repeats the Summary or the change sits in one function. Never a diff-shaped tree (+/- lines on a tree), and never a full code block — the diff already shows the code.
**One-way door:** <what a revert cannot bring back>. A two-way door gets no line.~/.context/ paths, or internal slice/task numbers that live only on your machine — they're useless to other devs.A PR that merges a new upstream release into a fork. Spot it: the branch merges an upstream/* ref or tag, or the user says "sync upstream".
fix(upstream): sync vX.Y.Z (patch), feat(upstream): sync vX.Y.Z (minor), or feat(upstream)!: sync vX.Y.Z (major). vX.Y.Z is the upstream tag.| Change | Title | Release |
|---|---|---|
| adds a webhook endpoint | feat(api): add webhooks | minor |
| fixes an RPC timeout | fix(rpc): retry on timeout | patch |
| removes the legacy auth API | feat(api)!: remove legacy auth | major |
| docs only | docs: describe the bridge flow | none |
fix: title, one feat: commit inside | fix(api): … | minor — raise the title or fix the commit type |
| upstream sync, upstream has breaking commits | feat(upstream): sync v0.25.0 | minor — only the title counts; merge commit |
| fork starts its version line, user asked | any commit with footer Release-As: 1.0.0 | 1.0.0 |
| can't tell if users must change anything | — | ask before adding ! |
Print the title and description in a code block so the user can copy it. If the description holds a visual, fence the outer block with four backticks so the inner fence does not close it. Under the block, state the release the title gives — Release: minor or Release: none — and for an upstream sync add "merge commit, not squash". Then offer — don't do it — to open it (gh pr create / glab mr create). Opening a PR/MR is an outward-facing action: get an explicit yes first. If the user asks you to merge a sync PR, use gh pr merge --merge / glab mr merge without --squash.
The first thing the user does next is open the PR, so always end with the full URL on its own line — never just "PR created" or a bare number.
gh pr create / glab mr create print the URL as the last line of their output — reuse it.gh pr view --json url -q .url / glab mr view -F json | jq -r .web_url.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pull-request, merge-request, pr-description, git-workflow, code-review
Other plugins' skills for the same job
npx claudepluginhub napalmpapalam/skills --plugin git