pr-draft
Skill1 starsChanged 12 days agoMITView on GitHub
Prepare or update a pull request title and description for the current branch's changes, reusing existing PR content whenever available, across any language, framework, or Git hosting platform. Use whenever the user asks to create a PR, open a pull request, write a PR description, or update an existing PR.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Srltas/claude-skillstheir own version, first seen Oct 31, 2026
- omson-datco/claude-skillstheir own version, first seen Oct 11, 2026
- jis3r/skillstheir own version, first seen Oct 11, 2026
- forcedotcom/salesforcedx-vscodetheir own version, first seen Oct 8, 2026
- paoloirrera/ccgraphtheir own version, first seen Aug 4, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- forcedotcom/salesforcedx-vscode★ 1ksame name
- jis3r/skills★ 1same name
- paoloirrera/ccgraph★ 1same name
- omson-datco/claude-skills★ 0same name
- Srltas/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- web/AGENTS.mdAGENTS.md
- apply-review-feedbackSkill
- code-changes-reviewSkill
- explain-changesSkill
- prd-generatorSkill
- project-explanationSkill
- push-to-originSkill
- releaseSkill
- skill-nameSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. 0 are common, 20 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
20
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Before writing any PR content, perform the following in order:
- Distinctive: line 24
Run git status to confirm there is a working branch and understand the current state of the working tree.
- Very specific: line 25
Run git log --oneline origin/main..HEAD (or origin/master..HEAD if main does not exist) to see all commits that are unique to this branch.
- Very specific: line 26
Run git diff origin/main...HEAD (three-dot diff) to capture the full content diff between this branch and the base.
- Very specific: line 27
Check for a PR template in the repository.
- Distinctive: line 28
Check if the user has provided an existing PR title and description (pasted text or a file path).
- Distinctive: line 33
Read the commit log from Step 2 to understand the scope and intent of the branch.
- Distinctive: line 34
Read the full diff from Step 3 to understand the specific modifications made to the codebase.
- Distinctive: line 40
Avoid vague titles like "Updates" or "Fix bug." Be specific enough that a reviewer understands the scope without reading the full …
- Distinctive: line 41
If an existing title is provided and still accurately reflects the change, keep it.
- Distinctive: line 44
If a PR template was found in Step 4, fill in every section of that template.
- Distinctive: line 45
If no template exists, use the default structure defined in the Output Format section below.
- Distinctive: line 46
If an existing PR description was provided, update only the sections affected by new commits.
- Distinctive: line 47
Do not fabricate testing steps, context, or motivation that is not directly evidenced by the code or explicitly provided by the user.
- Distinctive: line 48
If the diff includes a migration, schema change, or breaking API change, ensure this is prominently noted in the description under a …
- Very specific: line 51
Check for a CI/CD configuration file (.github/workflows/, Jenkinsfile, .gitlab-ci.yml, .circleci/config.yml).
- Distinctive: line 55
If this is an update to an existing PR, explicitly state which sections were changed and which were preserved.
- Distinctive: line 57
Ask the user if they would like any sections adjusted before they submit.
- Distinctive: line 61
Never discard an existing PR title or description wholesale.
- Distinctive: line 63
Do not fabricate testing steps, screenshots, issue references, or context that is not evidenced by the code changes or user-provided input.
- Distinctive: line 64
Keep the title concise and the description scannable.
- Distinctive: line 65
If the branch has no commits ahead of the base branch, state this clearly and do not generate a PR description.
- Distinctive: line 66
Do not push, create, or update PRs on any platform automatically.
- Distinctive: line 70
When no PR template is found, use the following default structure:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
pr-draft
Purpose
Produce or update a well-structured pull request title and description that accurately reflects the current code changes. When an existing PR description is available, make targeted, incremental edits rather than rewriting it wholesale. The output should be immediately usable by the author with minimal edits.
Trigger
Activate this skill when the user:
- Asks to "create a PR," "open a pull request," "write a PR description," or "draft a PR."
- Asks to update or refresh an existing PR title or description.
- Wants to prepare a PR message before pushing or using the platform UI.
Pre-flight Checks
Before writing any PR content, perform the following in order:
- Run
git statusto confirm there is a working branch and understand the current state of the working tree. - Run
git log --oneline origin/main..HEAD(ororigin/master..HEADifmaindoes not exist) to see all commits that are unique to this branch. If there are no commits ahead of the base branch, state this clearly and stop. - Run
git diff origin/main...HEAD(three-dot diff) to capture the full content diff between this branch and the base. - Check for a PR template in the repository. Common locations include
.github/PULL_REQUEST_TEMPLATE.md,.github/PULL_REQUEST_TEMPLATE/,docs/PULL_REQUEST_TEMPLATE.md, orPULL_REQUEST_TEMPLATE.mdin the root. If found, read it and use its structure as the required format for the description. - Check if the user has provided an existing PR title and description (pasted text or a file path). If so, treat it as the base to update rather than starting fresh.
Workflow
Step 1: Analyze the Changes
- Read the commit log from Step 2 to understand the scope and intent of the branch.
- Read the full diff from Step 3 to understand the specific modifications made to the codebase.
- Identify the primary type of change: new feature, bug fix, refactor, performance improvement, documentation update, dependency upgrade, or configuration change. A PR may span multiple types.
Step 2: Draft or Update the Title
- The title must be concise (ideally under 72 characters), written in the imperative mood, and accurately describe the primary change.
- Good examples: "Add email validation to the registration flow" or "Fix race condition in the session refresh handler."
- Avoid vague titles like "Updates" or "Fix bug." Be specific enough that a reviewer understands the scope without reading the full description.
- If an existing title is provided and still accurately reflects the change, keep it. Only update if the new commits have changed the scope or intent.
Step 3: Draft or Update the Description
- If a PR template was found in Step 4, fill in every section of that template. Do not omit sections unless the template itself marks them as optional.
- If no template exists, use the default structure defined in the Output Format section below.
- If an existing PR description was provided, update only the sections affected by new commits. Preserve all other sections exactly as they are. Do not rewrite unaffected content.
- Do not fabricate testing steps, context, or motivation that is not directly evidenced by the code or explicitly provided by the user.
- If the diff includes a migration, schema change, or breaking API change, ensure this is prominently noted in the description under a dedicated section.
Step 4: Review CI/CD Context
- Check for a CI/CD configuration file (
.github/workflows/,Jenkinsfile,.gitlab-ci.yml,.circleci/config.yml). If one exists, note whether the PR changes affect the build or deployment pipeline and include a brief note in the PR description if so.
Step 5: Present the Output
- Present the drafted title and description clearly, separated from each other.
- If this is an update to an existing PR, explicitly state which sections were changed and which were preserved.
- Mark the output as "New PR Draft" or "Updated PR Description (changes from existing)" so the author knows at a glance what to expect.
- Ask the user if they would like any sections adjusted before they submit.
Rules
- Never discard an existing PR title or description wholesale. Always make targeted, incremental edits when a base exists.
- Match the repository's PR template structure exactly if one exists. The template's headings and section order are required, not optional.
- Do not fabricate testing steps, screenshots, issue references, or context that is not evidenced by the code changes or user-provided input.
- Keep the title concise and the description scannable. Use short sections, bullet points, and clear headings. Avoid writing paragraphs of dense prose where structured lists would be clearer.
- If the branch has no commits ahead of the base branch, state this clearly and do not generate a PR description.
- Do not push, create, or update PRs on any platform automatically. The output of this skill is a draft text only.
Output Format
When no PR template is found, use the following default structure:
Title: A concise, imperative summary of the change.
Description:
- Summary — A 2-4 sentence explanation of what this PR does and why.
- Changes Made — A bullet list of the specific modifications, organized by file or area.
- Type of Change — Checkboxes or a list indicating: Bug Fix / New Feature / Refactor / Performance / Documentation / Dependency Update / Breaking Change.
- Testing Notes — How the change was tested, or a note if testing is not applicable. Do not invent steps; only include what is evident.
- Breaking Changes — If applicable, describe what breaks and what consumers of this code need to do. Omit if no breaking changes.
- Related Issues — Links to relevant issues or tickets if provided by the user. Omit if none.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

