create-pull-request
Skill16 starsChanged 7 months agoMITView on GitHub
Create a GitHub pull request — concise body on the repo's PR template, conventional-commit title, ticket refs. `--draft` for a draft PR, `--diagram[=type]` to add a mermaid diagram of the change.
- Commits and pushes
13 other projects use a version of this.
Adopted by
Most recently taken up by
- JeffreyFerreiras/ai-skillstheir own version, first seen Oct 5, 2026
- Jay-1409/skillsword for word, first seen Oct 3, 2026
- marcellocurto/skillstheir own version, first seen Oct 2, 2026
- Weixi779/skillstheir own version, first seen Aug 6, 2026
- microsoft/vscode-pull-request-githubtheir own version, first seen Jul 16, 2026
- theoklitosBam7/skillstheir own version, first seen Jul 12, 2026
Other versions13 projects use a version of this.
Word for word · 1
- Jay-1409/skills★ 2100% same
Edited · 0
None found.
Wrote their own version · 12
- cline/cline★ 70ksame name
- microsoft/vscode-pull-request-github★ 2.6ksame name
- warpdotdev/oz-skills★ 825same name
- platformplatform/PlatformPlatform★ 440same name
- haru/redmine_ai_helper★ 106same name
- kimrgrey/claudini★ 9same name
- liatrio-labs/ai-prompts★ 4same name
- marcellocurto/skills★ 3same name
- dennishenle/agent-skills★ 2same name
- JeffreyFerreiras/ai-skills★ 1same name
2 more not listed
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 repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- a11y-auditSkill
- architecture-auditSkill
- buildSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- create-adrSkill
- create-skillSkill
- deps-auditSkill
- diagnoseSkill
- domain-modelingSkill
- e2eSkill
- explain-codeSkill
- fortifySkill
- frontend-ui-engineeringSkill
- grill-meSkill
- handoffSkill
- hardenSkill
- i18nSkill
- perf-auditSkill
- planSkill
- prose-fixSkill
- prototypeSkill
- researchSkill
- reviewSkill
- reviseSkill
- safe-repoSkill
- shipSkill
- source-drivenSkill
- specSkill
- tddSkill
- teachSkill
- testSkill
- triage-reviewSkill
- validate-codeSkill
- visual-reviewSkill
- visual-validateSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 12 edited versions we read keep these.
1
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 19
Ask the user, all at once: effort in hours (required), what was done in their words (required), testing not visible in the diff, tricky …
- Very specific: line 24
Commit anything uncommitted first (never open a PR on a dirty tree), push with -u if needed, gh pr create with a HEREDOC body (--draft if …
“Common” is measured: kept by at least 6 in 10 of the 12 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
Create Pull Request
Arguments: $ARGUMENTS
--draft— create as draft.--diagram— append a## Diagramsection with a mermaid diagram of the change (GitHub renders it natively). Optional=flow|sequence|class|stateforces the type; otherwise pick by the shape of the change (below).
Workflow
- In parallel: base branch (
git remote show origin | grep 'HEAD branch'), ticket id from the branch name ([A-Z]+-[0-9]+), PR template (.github/pull_request_template.md,.github/PULL_REQUEST_TEMPLATE.md,.github/PULL_REQUEST_TEMPLATE/,docs/pull_request_template.md,pull_request_template.md). - In parallel:
git diff <base>...HEADand the full commit list — review every commit, not just the latest. - Ask the user, all at once: effort in hours (required), what was done in their words (required), testing not visible in the diff, tricky parts, and any template field the diff can't answer (breaking change? type of change?).
- Draft title and body.
- Title matches
^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?: .+$. - Template found → it is the body, verbatim structure: fill every section and placeholder, check applicable boxes, add nothing outside it except
## Diagramwhen requested. No template →## Summary+## Test plan. - Reference the ticket (
Resolves TICKET-123).
- Title matches
- Commit anything uncommitted first (never open a PR on a dirty tree), push with
-uif needed,gh pr createwith a HEREDOC body (--draftif requested). Return the URL.
Writing the body
Concise and readable by someone who didn't see the diff. Each section 1–4 sentences or a short bullet list. Lead with the why, then the what; the diff already shows the how. Incorporate the user's answers — don't paraphrase the diff back at them. Cut a template section's boilerplate prose only if the template marks it optional; otherwise fill it in one line.
Diagram (--diagram)
Pick the type by what changed:
| Change | Type |
| request/response, handlers, integrations | sequenceDiagram |
| pipeline, branching logic, data migration | flowchart |
| models, types, schema | classDiagram / erDiagram |
| UI or process states | stateDiagram-v2 |
| module refactor | flowchart before → after, or a dependency graph |
Rules: ≤ ~12 nodes; only the path the PR touches, not the whole system; mark new or changed nodes with a classDef changed style so unchanged context reads as context. If the change is linear (one file, one function) a diagram adds nothing — say so in one line instead of forcing one.
flowchart LR
A[Request] --> B[validateInput]:::changed --> C[Service] --> D[(DB)]
classDef changed stroke:#e67e22,stroke-width:2pxRules
ghCLI only. Never force push. Never push from main/master without confirmation.
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.

