/empire-git:pr-descriptionfrom empire-git
Generates canonical PR description bodies for GitHub pull requests by analyzing git diff and repo context, following a structured template with TLDR, Why, and What changed sections.
Ships in empire-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.
Read when SKILL.md points to them; scripts run unread.
IMPORTANT: Output the rendered description verbatim. Do not summarize, paraphrase, or describe this skill. The caller pipes your output to gh pr create or gh pr edit unchanged.
CRITICAL:
## TLDR section (1–2 sentences) right after the start marker.—), en dash (–), and the spaced hyphen (-); they read as machine written. Split into two sentences or use a comma or colon. Hyphenated words like off-by-one and Markdown list bullets stay fine.CONTEXT.md exists in the repo, use its vocabulary for domain terms.| Diff size | Budget |
|---|---|
| ≤ 100 LOC | ≤ 80 words |
| ≤ 500 LOC | ≤ 200 words, include only non-empty sections |
| > 500 LOC | ≤ 200 words, summarize at higher level, note the size in What changed |
Skip empty sections entirely.
Render between markers. Preserve everything outside markers when updating.
<!-- pr-description:start -->
## TLDR
1–2 sentences. The whole change at a glance.
Only when the rest of the description runs longer than a couple of lines; omit otherwise.
## Why
1–2 sentences. Problem or goal. Link issue if a commit references one.
## What changed
3–5 bullets. Behavior changes only — what users or callers experience differently.
Skip mechanical changes (renames, moves, test additions) unless they affect behavior.
Pick the most important changes; don't enumerate everything.
<!-- pr-description:end -->
Default to Why / What changed only. Add an extra ## section only when the change carries something a reviewer must not miss and no existing section fits — e.g. a breaking change, a required migration, a new env var or dependency, a rollback step, or a security-relevant note. Never add one by default or to pad a thin PR. Prefix breaking changes with BREAKING:.
After rendering, run the classifier ONCE before piping to gh (Claude Code: ${CLAUDE_PLUGIN_ROOT}/scripts/check-description.sh; other agents: scripts/check-description.sh in this skill's dir):
bash "${CLAUDE_PLUGIN_ROOT}/scripts/check-description.sh" <body-file>
If an existing body is provided:
<!-- pr-description:start --> and <!-- pr-description:end -->.Fixes #N, task lists).The rendered body is the only thing piped to gh. Labels and assignee are set with flags on the same gh pr create/gh pr edit call — never inside the body.
--assignee @me on create, or gh pr edit --add-assignee @me on an existing PR.gh label list. Map type (feat/fix/docs/chore), affected area/scope, and size (only if the repo uses size labels) to the closest existing label.--label on create or gh pr edit --add-label. If no existing label fits, apply none — do not force a wrong one.docs/agents/issue-tracker.md) explicitly defines the label set agents may create. Absent that file, the existing labels are the only allowed set.Formatting only. No behavior change. between markers.| Bad | Good |
|---|---|
| "This PR adds support for…" | "Add support for…" |
| "We refactor auth to…" | "Refactor auth: extract token validation into…" |
| "Various fixes" | (list each) |
| "Fixes bug" | "Fix off-by-one in pagination cursor when total % limit == 0" |
| "Updated tests" | (omit — visible in diff) |
| "Renamed X to Y" | (omit unless rollout-relevant) |
| "Ran lint / CI / tests" | (never include) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pr-description, pull-request, github, gh-cli, code-review, git-workflow
Other plugins' skills for the same job
12 skills in this plugin
/activity-reportGenerate a concise activity report of the user's GitHub work over a period, grouped by area or feature instead of PR by PR. Use when user says "activity report", "weekly report", "what did I do this week", "what did I ship", "work summary", "summarize my week", "status update for my manager", "what did <user> ship", or `/empire-git:activity-report [start-date] [end-date] [author]`.
/pr-comment-replyRender the canonical reply text for a PR review comment. Use when drafting, writing, or posting a "PR comment reply", "review comment reply", "reply to this comment", "respond to this review comment", "answer the reviewer", "reply on the PR thread", or any text bound for `gh api` review-thread replies, `gh pr comment`, or a GitHub review comment box. Triggers on "reply to the comment", "answer this review comment", "respond to the reviewer", "draft a reply", "post a reply on the PR". Outputs plain text for the caller to post unchanged.
/pr-mergeGate then merge a single pull request safely. Use when the user says "merge this PR", "merge the PR", "land this", "ship this PR", "merge when green". Verifies CI is green (investigates and attempts a fix when red), rebases and resolves conflicts when the branch is behind, triages unresolved review threads intelligently (resolve, fix, or ask — never blindly block), then merges and deletes the branch. Fast-forwards the local base checkout (e.g. updates `master`) when it is checked out.
npx claudepluginhub marcoskichel/empire --plugin empire-git