pr-draft

pr-draft is a command for Claude Code, Cursor from ivangrynenko/cursorrules. It costs 0 tokens per session (736 once invoked), scanned A, original, MIT.

A command for drafting a GitHub pull request, which is a request to merge code changes into a project. It uses notes about changes, tests, and reviewer concerns to shape the pull request title and description.

In plain words
What is it for?
Use it to prepare a pull request from notes and the current Git branch, with GitHub CLI or GitHub tools when available.
Why use it?
It reduces the effort of turning branch changes and scattered notes into a clear pull request, including details such as a ticket number and repository template.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

Good fit Use it to prepare a pull request from notes and the current Git branch, with GitHub CLI or GitHub tools when available.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ivangrynenko/cursorrules/pr-draft
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.

Clone the repo
git clone --depth 1 https://github.com/ivangrynenko/cursorrules

Made for: Claude Code, Cursor.

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 pr-draft

README.md
[![agentmods](https://agentmods.dev/badge/commands/ivangrynenko/cursorrules/pr-draft/github.svg)](https://agentmods.dev/commands/ivangrynenko/cursorrules/pr-draft)
Your own site
<a href="https://agentmods.dev/commands/ivangrynenko/cursorrules/pr-draft"><img src="https://agentmods.dev/badge/commands/ivangrynenko/cursorrules/pr-draft/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 pr-draft

Your own site · 80×15
<a href="https://agentmods.dev/commands/ivangrynenko/cursorrules/pr-draft"><img src="https://agentmods.dev/badge/commands/ivangrynenko/cursorrules/pr-draft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 736 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.00000 $0.00736
Opus 5.5 $0.00000 $0.00294
Sonnet 5.5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00074

Measured 1mo ago against content hash 293af3df1995, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-draft 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 1mo 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.

.cursor/commands/pr-draft.md · 63 lines

How it starts

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

Custom Command: PR Draft

Command Usage

/pr-draft <pr-notes>

The argument <pr-notes> should capture highlights, testing notes, and reviewer callouts. Use it to shape the PR title and body.

You are tasked with creating a pull request (PR) for a code change. Follow these instructions carefully to generate an appropriate PR description and title.

Check if Use the user-provided arguments (if any) as contextual input was provided in a prompt. If not, stop first and ask user for any comments, assign them as Use the user-provided arguments (if any) as contextual input. Process the Use the user-provided arguments (if any) as contextual input, extract the useful information and plan how it might impact pull request creation. If none provided, proceed with the PR creation.

Tool use

Use github cli or github mcp if available for PR creation.

Template

First, here is the PR template that should be used as a base for the pull request description:

<pr_template> the repository pull request template </pr_template>

Now, let's create the pull request:

  1. Extract the ticket number: Analyze the branch name provided: the active Git branch name Look for a four-digit number in the branch name, which should represent the Freshdesk ticket number. If found, use it in the next steps. If not found, make a note to ask for it later, unless Use the user-provided arguments (if any) as contextual input instruct you to skip ticket number.

  2. Create the PR title: Format: "[#TICKET_NUMBER] [Verb in past tense] [description of the change] [full stop at the end.]" Example: "[#5765] Updated user authentication process."

  3. Create the PR description: Start with the PR template provided above.

    For the "Freshdesk or JIRA ticket" section:

Read the full file on GitHub · 63 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. 1mo ago First seen · 63 lines · 0 tokens per session scan A 293af3df1995

Subscribe to this mod's changes

pr-draft is a command published in the GitHub repository ivangrynenko/cursorrules (88 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 736 tokens. 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-30.