draft-pr
Skill0 starsChanged 5 months agoMITView on GitHub
Create a draft pull request for the current branch. Use when the user asks to open, create, publish, or draft a PR; mirrors the user's latest repo PR when possible, pushes the branch when needed, runs `gh pr create --draft`, and reports the created PR URL.
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- Integralist/agent-skillstheir own version, first seen Oct 4, 2026
- gigio1023/agent-skillstheir own version, first seen Sep 29, 2026
- Xenoneqq/claudified-workflowtheir own version, first seen Sep 24, 2026
- k3forx/skillstheir own version, first seen Jul 16, 2026
- flavio-portela/skillstheir own version, first seen Jun 30, 2026
- microsoft/roosterjstheir own version, first seen Jun 17, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- microsoft/roosterjs★ 1.3ksame name
- g2i-ai/agents★ 52same name
- Integralist/agent-skills★ 3same name
- zahardev/aicontext★ 2same name
- gigio1023/agent-skills★ 1same name
- k3forx/skills★ 1same name
- Xenoneqq/claudified-workflow★ 1same name
- flavio-portela/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 repository2 other files it gives its agents.
- commitSkill
- second-opinionSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Create a real draft PR for the current branch.
- Very specific: line 24
Create the PR with gh pr create --draft --base <base_branch> --head <current_branch> --title "<title>" --body-file <body_file>.
- Distinctive: line 27
Follow repo guidance for command prefixes and validation.
- Distinctive: line 31
Keep it short and specific.
- Distinctive: line 32
Prefer "what" over "how"; avoid vague titles.
- Distinctive: line 37
Prefer the newest PR opened by the current user in this repo as the body format reference.
“Common” is measured: kept by at least 6 in 10 of the 7 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
Draft PR
Create a real draft PR for the current branch.
Workflow
- Confirm the current directory is a git repository and identify the current branch.
- Choose the base ref specified by the user. If none is specified, use the first existing ref in this order:
origin/mainorigin/master
- Inspect the branch diff against the base:
git diff <base_ref>...HEAD --name-statusgit diff <base_ref>...HEAD --statgit diff <base_ref>...HEAD
- Fetch the newest PR opened by the current user in this repo:
gh pr list --state all --author "@me" --limit 1 --json number,title,body,url,createdAt
- Generate the PR title and body from the branch diff. Mirror the user's latest PR format and tone when one exists.
- Push the current branch if the remote head does not already exist or is behind local
HEAD. - Create the PR with
gh pr create --draft --base <base_branch> --head <current_branch> --title "<title>" --body-file <body_file>. - Report the created draft PR URL, title, base, head, and any push performed.
Follow repo guidance for command prefixes and validation. Do not create a ready-for-review PR, merge, approve, request review, add labels, or push unrelated branches unless the latest user request explicitly asks.
PR Title
- Keep it short and specific; aim to fit comfortably in GitHub UI.
- Prefer "what" over "how"; avoid vague titles.
- Use imperative mood.
PR Body
Prefer the newest PR opened by the current user in this repo as the body format reference. If none exists, use the repository's existing PR template when present. Otherwise, include:
- Why: 1-2 sentences explaining the problem being solved or the feature being added.
- What: concise description of the new behaviour or functionality introduced.
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.

