open-pr
Skill9 starsChanged 3 months agoMITView on GitHub
Open or update the PR for the current branch against main with the fixed body shape (Why in plain English, Change Summary, Major Impact, Linked Issue, Test Plan seeded from the feat-checklist). Rescues work stranded on main onto a branch. Confirms before any push; never force-pushes; never pushes to main. Use when the user says "open a PR", "ship this", "put this up for review".
- Reads credentials
- Commits and pushes
20 other projects use a version of this.
Adopted by
Most recently taken up by
- Significant-Gravitas/AutoGPTtheir own version, first seen Nov 18, 2026
- angusfretwell/skillstheir own version, first seen Oct 4, 2026
- PPrauchner/ARK-Agent-Rules-Kittheir own version, first seen Sep 30, 2026
- snowfluke/engineering-skillstheir own version, first seen Sep 30, 2026
- xiaolongnk/SuperHarnesstheir own version, first seen Sep 26, 2026
- syanga/astacktheir own version, first seen Sep 20, 2026
Used with
Projects with it also use commit, review-pr and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 9 projects that use this
Microsoft AzureSkillreview-pr
Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.
Also in 4 projects that use this
HashiCorpSkillchangelog
Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 3 projects that use this
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 5 projects that use this
AWSSkillprototype
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- Significant-Gravitas/AutoGPT★ 188ksame name
- pascalorg/editor★ 25ksame name
- cloudflare/agents★ 5.8ksame name
- mongodb/docs★ 778same name
- brayandiazc/project-starter-template-es-ai★ 15same name
- fuzzyfox/skills★ 4same name
- xiaolongnk/SuperHarness★ 4same name
- brayandiazc/project-starter-template-en-ai★ 3same name
- ronaknnathani/relay★ 3same name
- gtapps/skills★ 2same name
10 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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- create-planSkill
- file-an-issueSkill
- grill-meSkill
- implementSkill
- refine-approachSkill
- reviewSkill
- to-specSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Write the body to a tempfile.
- Distinctive: line 51
Only labels that exist and fit.
“Common” is measured: kept by at least 6 in 10 of the 19 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
Open PR
Honour .agents/skills/README.md. Last step: … → /review → **/open-pr**. Only on request; it is outward-facing. Never push, commit or gh pr create without the user's confirmation (Phase 5).
Facts from AGENTS.md: trunk = main, issues_repo = mhmzdev/hisab-whatsapp, labels = only what gh label list returns (none is fine), attribution = keep (the repo's commits carry the Claude trailer; the PR body ends with the standard line and the session link — copy the form from git log -3).
Phase 1 — State
In parallel: git status --short, git branch --show-current, git fetch origin --quiet, git log --oneline origin/main..HEAD, gh pr view <branch> --json number,state,url (existing PR?), gh auth status.
- Feature branch, commits ahead, clean → Flow A.
- Feature branch, dirty → ask: include these files or not? Stage only named files.
- On
mainwith commits ahead or a dirty tree → Flow B (rescue): branch off HEAD first (git checkout -b GH-<N>-<topic>or<topic>), thengit branch -f main origin/main. Dirty tree:git stash push -u, checkout main,pull --ff-only, branch,stash pop. Neverreset --hard; stop on conflict. - Existing open PR → update it (
gh pr edit), never a duplicate.
Phase 2 — Linked issue
First match wins, never invented: numeric argument → the plan's frontmatter issue: for this branch → GH-<N> in the branch name → Closes #N in commit messages → gh issue list --search only if unambiguous (confirm). Verify with gh issue view N. Found → Closes #N; not found → _None._.
Phase 3 — Title and body
Title: conventional-commit shape, imperative, under ~70 chars, matching git log on main.
Body, headings verbatim, in this order; _None._ where honestly nothing, except Why, which is never empty:
## Why
<2–4 plain-English sentences for someone who has not seen the diff: what was wrong or missing, who it affected, what is true once this merges. Link the issue inline. No paths, no symbols.>
## Change Summary
<2–4 factual sentences for the reader who will open the diff: approach, files, what was chosen over the obvious alternative. Reference the plan path.>
## Major Impact
<One bullet per concrete breakage risk: a tool schema change, a store record shape, a ledger convention, a config key, a language string. Else _None._>
## Linked Issue
<Closes #N, or _None._>
## Test Plan
<Unchecked boxes seeded from docs/feat-checklist/<slug>.md: each [?] becomes a manual step verbatim; each [x] with a named test becomes "`<test>` passes"; a [!] means stop and say so. No checklist → one box per substantive change. Always end with: `- [ ] python3 tests/smoke.py — clean` (no CI runs it yet).>
## Deploy prerequisites
<Only when needed: a new config key (config.example.yaml), a new env var (.env.example), a Docker change that needs a rebuild. Omit otherwise.>Write the body to a tempfile. End it with the attribution line and session link the repo's commits use.
Phase 4 — Labels
Only labels that exist and fit; none is the normal case.
Phase 5 — Confirm and wait
Branch: <branch> → main (new PR | updating #N)
Title: <title> Labels: <list|none>
Commits: <n> — one line each
Flow B plan, if any
<rendered body>
Push and open/update the PR?Any redirect → apply and re-present. Never proceed on silence.
Phase 6 — Execute and verify
git push -u origin <branch>; gh pr create --repo mhmzdev/hisab-whatsapp --base main --head <branch> --title … --body-file … (or gh pr edit). Then gh pr view --json number,title,url,baseRefName,body: every required heading present, else fix. gh issue develop <N> to link. Report: URL, title, base, created vs updated, every Deploy prerequisite bullet verbatim, the unchecked Test Plan items.
What NOT to do
- Force push, push to
main,reset --hard, stash without-u, auto-resolve a conflict,git add -Aunasked. Open without confirmation. Duplicate a PR. Fabricate or omitCloses #N. Write the Why in code or as a restatement of the summary. Tick a Test Plan box. Move the board card.
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.

