guidelines-for-creating-pull-requests-of-github

guidelines-for-creating-pull-requests-of-github is a cursor rule for Cursor from fumito-ito/mdcvalult. It costs 10 tokens per session (448 once invoked), scanned A, original, MIT.

A standardized process for creating and managing GitHub pull requests, which are proposed code changes submitted for review. It covers checking related issues, reviewing the branch difference, writing the description, and creating a draft pull request.

In plain words
What is it for?
Use it when preparing or reviewing a GitHub pull request. It helps check the issue reference, compare changes with the target branch, create the pull request, and open it for viewing.
Why use it?
It gives contributors a repeatable checklist before opening a pull request. This helps keep issue links, change summaries, target branches, and review information consistent.

Cursor rule for Cursor

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

Good fit Use it when preparing or reviewing a GitHub pull request. It helps check the issue reference, compare changes with the target branch, create the pull request, and open it for viewing.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/fumito-ito/mdcvalult/guidelines-for-creating-pull-requests-of-github
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/fumito-ito/mdcvalult

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 guidelines-for-creating-pull-requests-of-github

README.md
[![agentmods](https://agentmods.dev/badge/rules/fumito-ito/mdcvalult/guidelines-for-creating-pull-requests-of-github.svg)](https://agentmods.dev/rules/fumito-ito/mdcvalult/guidelines-for-creating-pull-requests-of-github)
Your own site
<a href="https://agentmods.dev/rules/fumito-ito/mdcvalult/guidelines-for-creating-pull-requests-of-github"><img src="https://agentmods.dev/badge/rules/fumito-ito/mdcvalult/guidelines-for-creating-pull-requests-of-github.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 448 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.00010 $0.00448
Opus 5 $0.00005 $0.00224
Sonnet 5 $0.00002 $0.00090
Haiku 4.5 $0.00001 $0.00045

Measured 8d ago against content hash a6ea722a0fa8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

guidelines-for-creating-pull-requests-of-github 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 8d 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.

mdc/guidelines-for-creating-pull-requests-of-github.mdc · 78 lines

What it actually says

Basics

  • When referencing this file, shout 'CREATE PULL REQUEST!' out loud.

Pull Request Creation Process

Prerequisites

  • Check the Issue Number
    • If an issue link is not provided, ask the user: "Is there a related issue link?"
    • If no related issue exists, explicitly mention this in the PR description.

Reviewing Changes

  • Use the following command to check the diff against the target branch:
    git diff origin/{{TARGET_BRANCH}}...HEAD | cat
    
  • If no specific target branch is given, default to main.

Preparing Links for the Description

  • Confirm that the issue link is included (as checked in the prerequisites).

Creating and Viewing the Pull Request

  • Use the following command to create a pull request and open it in a browser:
git push origin HEAD && \
gh pr create --draft --title "{{PR_TITLE}}" --body $'{{PR_TEMPLATE_SINGLE_LINE}}' && \
gh pr view --web
  • Ensure the PR title and description reflect the diff against the target branch.
  • Unless specified otherwise, create the PR as a Draft.
  • Convert the PR template into a single-line string using \n for line breaks.
  • Utilize $'...' syntax to ensure correct handling of newline characters.
  • Clearly separate each section with appropriate heading levels.
  • Ensure all necessary information is provided without omissions.
PR Template
## Summary
{{SUMMARY}}

### Related Issues / Documents
- {{ISSUE_LINK}}
*If no related issue exists, explain why.*

### Changes
- {{CHANGES}}

## Areas of Focus for Reviewers
- {{REVIEW_POINTS}}

## Impact Scope
- {{IMPACT_SCOPE}}

## Screenshots
- {{SCREENSHOTS}}

## Steps to Verify
{{VERIFICATION_STEPS}}
Required Sections
  • Summary
  • Related Issue (if no related issue exists, explain why)
  • Changes
Optional Sections
  • Areas of Focus for Reviewers
  • Impact Scope
  • Screenshots
  • Steps to Verify
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. 8d ago First seen · 78 lines · 10 tokens per session scan A a6ea722a0fa8

Subscribe to this mod's changes

guidelines-for-creating-pull-requests-of-github is a cursor rule published in the GitHub repository fumito-ito/mdcvalult (33 stars, last pushed 1y ago), licensed MIT. It adds 10 tokens to every session and 448 once invoked, about $0.0001 per session on Opus 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-30.