draft-pr

draft-pr is a skill for Claude Code from matheusPavaneli/workbench. It costs 42 tokens per session (854 once invoked), scanned A, original, MIT.

A tool that writes a pull request (PR) title and description from a branch’s commits, work plan, and recorded checks. A PR is a proposed code change submitted for review before it is merged.

In plain words
What is it for?
Use it when preparing a PR or asking for its description. It writes the result to `.workflow/pr.md` and adjusts the amount of detail to the size of the change.
Why use it?
It gathers the relevant change and verification details into one consistent description. It also avoids claiming checks or planning work that was never recorded.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the workbench plugin — 10 skills, 2 hooks shipped together

Good fit Use it when preparing a PR or asking for its description. It writes the result to .workflow/pr.md and adjusts the amount of detail to the size of the change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/matheuspavaneli/workbench/draft-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add matheusPavaneli/workbench --skill draft-pr
Clone the repo
git clone --depth 1 https://github.com/matheusPavaneli/workbench

Made for: Claude Code.

Or install workbench, the plugin that ships this one along with the rest of its 10 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for draft-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/matheuspavaneli/workbench/draft-pr/github.svg)](https://agentmods.dev/skills/matheuspavaneli/workbench/draft-pr)
Your own site
<a href="https://agentmods.dev/skills/matheuspavaneli/workbench/draft-pr"><img src="https://agentmods.dev/badge/skills/matheuspavaneli/workbench/draft-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for draft-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/matheuspavaneli/workbench/draft-pr"><img src="https://agentmods.dev/badge/skills/matheuspavaneli/workbench/draft-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 854 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00854
Opus 5.5 $0.00017 $0.00342
Sonnet 5.5 $0.00008 $0.00171
Haiku 4.5 $0.00004 $0.00085

Measured 19d ago against content hash ee87a1d49bfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

draft-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/draft-pr/SKILL.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

draft-pr

wb <args>    # wb not on PATH: python <this skill's directory>/../../lib/wb.py <args>

This skill writes the description. Opening the PR is the user's call.

Steps

  1. Assemble the inputs. pr context <KEY>. One call returns the branch and base, the commits on it, the changed files, the critical zones, the plan's summary and open questions, the verification verdict with each command's exit code, and a shape telling you how much description this change earns. For a PR onto a validation branch: pr context <KEY> --target homolog.

  2. Check _missing. If it lists plan or verification, that artifact does not exist. Say so in the description — do not write around the gap and do not claim a check that was never run.

  3. Write the title in the repo's commit style (commit convention if you have not already). One line, imperative, specific enough that a reviewer scanning a list knows what this is.

  4. Write only the shape you were given. trivial is a title and one sentence, no headings at all. small is What and Verification. Only large earns the full template, and even then a section with nothing to say is deleted rather than left as an empty heading.

    ## What
    One or two sentences. What changes, and why now.
    
    ## Why
    The problem, with the ticket link. Skip if the title says it.
    
    ## How
    Only the decisions a reviewer cannot infer from the diff — a trade-off, an
    approach considered and dropped, a constraint that forced the shape.
    
    ## Verification
    The actual commands and their results, from `pr context`.
    
    ## Risk and rollback
    Critical zones touched, and how to undo this.
    
    ## Open questions
    From the plan. An empty section is better deleted than left blank.
    
  5. Check and save. pr check --file <path> --shape <shape> --key <KEY> rejects empty sections, placeholders, unticked boxes and filler, and a PR whose plan still owes its handover. Then save to .workflow/<KEY>/pr.md and show it.

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed ee87a1d49bfd
  2. 21d ago Changed · +3 lines 02339e7769f6
  3. 22d ago Changed · +1 lines ef9d5acd2c3b
  4. 1mo ago First seen · 77 lines · 42 tokens per session scan A f30ed2f16a80

Subscribe to this mod's changes

draft-pr is a skill published in the GitHub repository matheusPavaneli/workbench (1 stars, last pushed 19d ago), licensed MIT. It adds 42 tokens to every session and 854 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 59 tokens

phx-pr-review

Address feedback left on a GitHub pull request: fetch unresolved review threads, make agreed Elixir/Phoenix code fixes, reply, and resolve. Use for a PR URL/number or reviewer comments. NOT for pre-PR review, findings triage, or CI monitoring.

oliver-kriska/claude-elixir-phoenix · 61 tokens

signing-preflight

Before the first commit of a session, check that commit signing will work — the key is loaded and unlocked — and ask the operator to unlock it once, up front, instead of discovering it after a hundred unsigned commits. Never disables signing silently, never re-signs history without asking. Use at the start of…

avelikiy/great_cto · 105 tokens

pr-review

Review pull requests and Git diffs with Graph-It-Live risk, breaking-change, dependency-impact, cycle, unused-export, and test-candidate evidence. Use when asked to review a PR, inspect a diff, assess merge risk, check a branch before merging, create a Graph-It-Live review gate, or explain review-pr results. Trigger…

magic5644/Graph-It-Live · 132 tokens

loop-gh-pr

A recipe for a scheduled GitHub pull-request watcher. It checks open pull requests for new activity and prepares read-only review drafts without posting comments or merging anything.

restarter/lets-workflow · 118 tokens

review

Structured code review with parallel audit agents, confidence-scored triage, and optional auto-fix. Examines uncommitted changes, staged diffs, commit ranges, or specific paths. Produces a tiered report (MUST-FIX / RECOMMENDED / NIT) backed by evidence, then optionally applies fixes with verification.

greglas75/zuvo · 70 tokens