codehub-pr-description
Linear skill. No subagents. Sonnet. Writes a Markdown PR body you can
paste into gh pr create --body-file (or let the Claude Code session
drive the GitHub CLI directly).
Frontmatter
Section titled “Frontmatter”name: codehub-pr-descriptionargument-hint: "[--base <rev>] [--head <rev>] [--out <path>]"color: tealmodel: sonnetPreconditions
Section titled “Preconditions”git diff --name-only <base>..<head>must return ≥ 1 path. Refuses on a clean tree withNo diff detected — resolve base/head or stage changes.
Process
Section titled “Process”- Resolve
--base(defaultmain) and--head(defaultHEAD). mcp__opencodehub__detect_changes({base, head})→ affected symbols + processes.mcp__opencodehub__verdict({base, head})→ 5-tier merge recommendation.mcp__opencodehub__owners({paths})→ required reviewers per path.mcp__opencodehub__list_findings_delta({base, head})→ new / resolved scanner findings.- For verdict tier ≥ 3:
mcp__opencodehub__impact({symbol, direction: "downstream", depth: 2})— spell out who breaks. - For public API changes:
mcp__opencodehub__api_impact({route})when the diff touches a handler. - Assemble the Markdown body and write to
<out>(default.codehub/pr/PR-<branch>.md).
Output shape
Section titled “Output shape”# <branch-name or commit subject>
## Summary2–3 sentences — what changes, why.
## Verdict**Tier <N> — <label>** per `mcp__opencodehub__verdict`.Reasons: ... (from verdict.reasons[])
## Affected surface| Category | Count | Details ||---|---|---|| Files changed | N | ... || Symbols added | N | ... |
### Top touched files| File | Change | Top owner |
## Blast radius ← tier ≥ 3 only## Findings delta## Required reviewers## Test planArguments
Section titled “Arguments”| Flag | Meaning |
|---|---|
--base <rev> | Base revision. Default: main. |
--head <rev> | Head revision. Default: HEAD. |
--out <path> | Output path. Default: .codehub/pr/PR-<branch>.md. |
Related
Section titled “Related”- codehub-document — for architecture docs, not PR bodies
- Skills index