/tldrpr:tldrpr <pr-url-or-ref> [pr-url-or-ref] ... [--lang <language>] [--no-copy]from tldrpr
Generates plain-text TLDR summaries for GitHub PRs with scope, review-effort rating, and outcome rating. Copies to clipboard for Slack sharing.
Ships in tldrpr. 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 plain-text TLDR summary of one or more Pull Requests for pasting into Slack. No markdown formatting — just plain text. Result is copied to clipboard by default; pass --no-copy to print the text only and leave the clipboard untouched (useful when another tool consumes the output).
Parse $ARGUMENTS for:
https://github.com/owner/repo/pull/123owner/repo#123--lang <language> — language for the TLDR line (e.g. en, ru, de). If omitted, use the same language the user communicates in during this conversation.--no-copy — do not copy the result to the clipboard; print the text only. Default (flag absent) copies to clipboard as before.If no PR references provided, look in the conversation context for recently mentioned PR URLs or refs.
Fetch PR metadata, scope, and file list:
gh pr view <NUMBER> --repo <OWNER>/<REPO> --json title,body --jq '{title, body: .body[:2000]}'
gh api "repos/<OWNER>/<REPO>/pulls/<NUMBER>" --jq '{additions, deletions, changed_files, commits}'
gh api "repos/<OWNER>/<REPO>/pulls/<NUMBER>/files" --jq '.[] | "\(.status) +\(.additions)/-\(.deletions) \(.filename)"'
Compute the scope line from the metadata: +N/-M lines, K files, C commits (one space between fields, no rounding).
Assign a review-effort rating from 1 to 5 stars (★ filled, ☆ empty — render as ★★★☆☆). The rating is a judgment call informed by the file list and diff, NOT a pure mechanical line count. Use the heuristic below:
Apply these adjustments on top of a baseline derived from line count:
< 20 → ★20-100 → ★★100-500 → ★★★500-2000 → ★★★★≥ 2000 → ★★★★★*.rbac.yaml, clusterrolebinding-*.yaml, anything granting permissions to groups/SAs), authentication code, secrets handling, crypto, or admission webhooks.pkg/ / internal/ / cmd/.feat!:, fix!:, BREAKING CHANGE: footer, or a labeled major-version bump).*.md, docs/), generated regeneration (zz_generated.*, *.pb.go), or vendored-dependency deletion.When in doubt between two adjacent ratings, pick the higher one — the rating is meant to budget review time, and over-budgeting is cheaper than under-budgeting.
Assign the outcome rating — a 1-5 star score on a single axis whose label depends on what the PR does for the people who use the product. First pick the axis, then rate on it. The outcome axis is orthogonal to review effort: a one-line fix can relieve ★★★★★ pain while being ★ to review; a 2000-line refactor can be ★ internal Impact while being ★★★★ to review. Judge by user-facing outcome, not size.
Default to the PR's Conventional-Commit type in the title, then override by the actual diff when the title lies — a feat: whose diff only fixes a regression is Pain; a fix: that mostly ships a new capability is Joy. The type is a signal, not a verdict.
fix, revert, a perf that removes a regression or slowness users feel, a docs change that documents a footgun or silent-failure prerequisite. Rates how much hurt the PR takes away.feat, a perf that delivers a wanted speedup, a docs change that ships a genuinely new guide or capability. Rates how much the PR delights or empowers users.chore, ci, test, build, refactor, style. Maintainer-only plumbing a user cannot observe; almost always ★.Generate the TLDR block in this exact format (plain text, no markdown):
https://github.com/owner/repo/pull/123 -- PR title as-is
Scope: +N/-M lines, K files, C commits
Review effort: ★★★☆☆ (medium) | Pain relieved: ★★★★☆ (oxycodone)
TLDR: one sentence explaining WHY this PR exists (motivation, not technical details). Written in the resolved language.
Guidelines for TLDR line:
Guidelines for the Scope and ratings lines:
+<additions>/-<deletions> lines, <files> files, <commits> commits even when one of the numbers is 0 — the consistent shape is easier to scan in Slack.Review effort: <stars> (<word>) | <outcome-axis>: <stars> (<word>), where <outcome-axis> is exactly one of Pain relieved, Joy, or Impact per the axis picked in step 4. Review-effort words are (trivial), (small), (medium), (large), (huge); Pain-relieved words are (aspirin), (ibuprofen), (codeine), (oxycodone), (morphine); Joy words are (negligible), (nice), (useful), (wanted), (delight); Impact words are (internal), (internal+).--lang; only the TLDR sentence follows --lang, and the scope counts are locale-neutral.fix can be ★☆☆☆☆ (trivial) to review yet ★★★★★ (morphine) Pain relieved, and a huge refactor can be ★★★★☆ (large) to review yet ★☆☆☆☆ (internal) Impact. Rate each on its own merits, never copy one onto the other.Example ratings lines, one per outcome axis:
Review effort: ★☆☆☆☆ (trivial) | Pain relieved: ★★★★★ (morphine)
Review effort: ★★★☆☆ (medium) | Joy: ★★★☆☆ (useful)
Review effort: ★★★★☆ (large) | Impact: ★☆☆☆☆ (internal)
--no-copy is set: print the complete text only, skip every clipboard step, and confirm with "Done" — do not attempt pbcopy/wl-copy/xclip and do not print a clipboard-failure note.pbcopywl-copyxclip -selection clipboard or xsel --clipboard --inputWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lexfrei/ccc --plugin tldrprOther plugins' skills for the same job