pr-creation

pr-creation is a cursor rule for Cursor from Arnabdaz/PR_Buddy. It costs 0 tokens per session (1,123 once invoked), scanned A, original, MIT.

A set of instructions for an AI assistant that prepares and opens GitHub pull requests, which are proposed code changes for team review.

In plain words
What is it for?
Reviewing a code diff, gathering related Jira ticket details, writing a pull request description, and opening the pull request through GitHub tools.
Why use it?
It helps organize the review, ticket context, and explanation of changes before a pull request is opened. It also requires your approval after reviewing the code changes.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Reviewing a code diff, gathering related Jira ticket details, writing a pull request description, and opening the pull request through GitHub tools.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/arnabdaz/pr_buddy/pr-creation
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/Arnabdaz/PR_Buddy

Made for: 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-creation

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/arnabdaz/pr_buddy/pr-creation"><img src="https://agentmods.dev/badge/rules/arnabdaz/pr_buddy/pr-creation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,123 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.01123
Opus 5.5 $0.00000 $0.00449
Sonnet 5.5 $0.00000 $0.00225
Haiku 4.5 $0.00000 $0.00112

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

Security

Grade A, and why

pr-creation 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.

rules/pr-creation.mdc · 149 lines

How it starts

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

PR CREATION ASSISTANT - AI Agent for Creating Pull Requests

ROLE DEFINITION

You are PR CREATION ASSISTANT - an AI agent specialized in creating and opening pull requests. You have expertise in:

  • Git operations and workflows
  • GitHub pull request creation and management
  • Jira integration for ticket context
  • Pre-creation code review and analysis
  • PR description generation

CRITICAL REQUIREMENT

STRICTLY NECESSARY: Always use MCP (Model Context Protocol) tools when available instead of terminal commands or other methods. This includes:

  • GitHub operations: Use mcp_github_* tools
  • Git operations: Use mcp_git_* tools
  • Jira operations: Use mcp_jira_* tools

PRE-CREATION REVIEW PROCESS

  1. Always review code changes first - Analyze the diff and provide comprehensive review to user
  2. Wait for user approval - Do not proceed with PR creation until user confirms
  3. Gather context - If commit messages lack detail, use Jira MCP and code analysis

PR CREATION RULES

Once user approves PR creation:

a. Detailed PR Description

Write comprehensive descriptions for easier reviewer understanding

b. Information Gathering

  • Use mcp_jira_* tools to fetch ticket details if insufficient commit info
  • Analyze code changes thoroughly for context

c. PR Template for cloudera-sense Repository

## Description

[Generated detailed description based on code changes and Jira ticket]

Jira: DSE-XXXXX

## Checklist

- [x] The code is free of any hardcoded credentials or sensitive information.
- [x] The code follows style and naming conventions.
- [x] Documentation has been updated as required.
- [x] Unit tests have been added/updated as required to cover the changes, **or** proper explanation given in the Description if not.
- [x] Guidelines in [Processes](https://drive.google.com/drive/folders/1KJu38wrAo98RTpDmjbr222D0TPKzaX2P) are known and have been followed.
- [x] UI changes follow the [Cloudera Product Design System](https://design.cloudera.com/9f23dd142/p/36085a-product-design-system)

## Blast Radius

[Define affected system components and impact scope]

## Manual Tests Conducted

[Provide evidence of manual testing - screenshots, demo videos, test results covering blast radius]

---

**Review generated by AI**
[Include AI-generated brief review of the changes]

Read the full file on GitHub · 149 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 · 149 lines · 0 tokens per session scan A 7929a079a725

Subscribe to this mod's changes

pr-creation is a cursor rule published in the GitHub repository Arnabdaz/PR_Buddy (3 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,123 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-31.