pr-workflow
Skill5 starsChanged 54 days agoMITView on GitHub
Use when preparing, creating, updating, or reviewing pull requests — enforcing pre-PR checks, atomic commits, dependency release links, and issue linkage (GitHub primary, non-GitHub referenced).
- Commits and pushes
22 other projects use a version of this.
Adopted by
Most recently taken up by
- sbluemin/fleet-harnesstheir own version, first seen Nov 8, 2026
- notque/vexjoy-agenttheir own version, first seen Nov 7, 2026
- yktsnet/dotfiles-publictheir own version, first seen Nov 5, 2026
- OneByJorah/VirtOfficetheir own version, first seen Nov 1, 2026
- ryanschue/automated-product-engineertheir own version, first seen Nov 1, 2026
- OneByJorah/offivotheir own version, first seen Oct 20, 2026
Used with
Projects with it also use workflow and code-review.
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.
VercelSkillworkflow
Creates durable, resumable workflows using Vercel's Workflow SDK. Use when building workflows that need to survive restarts, pause for external events, retry on failure, or coordinate multi-step operations over time. Triggers on mentions of "workflow", "durable functions", "resumable", "workflow sdk", "queue", "event", "push", "subscribe", or step-based orchestration.
Also in 4 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 projects that use this
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- tursodatabase/turso★ 25ksame name
- esphome/esphome★ 12ksame name
- open-edge-platform/anomalib★ 6.4ksame name
- Chorus-AIDLC/Chorus★ 1.2ksame name
- glommer/pgmicro★ 1.2ksame name
- Tencent-Hunyuan/UniRL★ 1ksame name
- esphome/esphome-docs★ 466same name
- notque/claude-code-toolkit★ 448same name
- notque/vexjoy-agent★ 448same name
- mezotv/notra★ 256same name
12 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- agents-memorySkill
- agentsview-extractSkill
- agentsview-resumeSkill
- backfill-unit-testsSkill
- dotnet-upgradeSkill
- github-epicSkill
- gitlab-epicSkill
- miseSkill
- record-walkthroughSkill
- setup-agent-ready-repoSkill
- tech-leadSkill
- tidy-commitsSkill
- write-e2e-testsSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Base Sync: Before creating a feature branch or starting a new task, fetch and sync the default base branch (git fetch origin && git …
- Distinctive: line 16
Clean Working Tree: Verify git status is clean before editing or opening PRs.
- Distinctive: line 17
Verification: Run local tests and linters in the primary session rather than a subagent before opening or updating PRs.
- Distinctive: line 25
If a named role is unavailable/unsupported or returns an explicit pre-execution dispatch/runtime error (for example capacity, rate limit, …
- Distinctive: line 38
If a dispatch error does not reveal whether execution began, stop that dispatch and report the ambiguity.
- Very specific: line 46
Stacked PRs: Prefer native stacks over hand-set feature-branch bases — GitHub gh stack (public preview.
- Distinctive: line 55
Atomic Commits: Keep commits single-concern.
- Very specific: line 61
Part-of: Use Part of #N or See #N for epic tracking and multi-PR tasks.
- Very specific: line 63
No Tracked Issue: When a PR has no tracked issue, drop the Related Issue section entirely — never leave an unlinked Closes # or empty issue …
- Distinctive: line 75
Use the worker-routing fallback above when the named summarizer is unavailable or unsupported.
- Very specific: line 78
Before writing the request body, read the repo's docs/agents/pull-request.md (or equivalent: docs/agents/merge-request.md, native .github / …
“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
PR Workflow
Standard operating procedure for preparing, opening, and managing Pull Requests (PR) and Merge Requests (MR). Default to GitHub (gh CLI); for other platforms, see platform-tools.md.
Preflight
- Base Sync: Before creating a feature branch or starting a new task, fetch and sync the default base branch (
git fetch origin && git checkout main && git pull --ff-onlyor branch directly offorigin/main). - Clean Working Tree: Verify
git statusis clean before editing or opening PRs. - Verification: Run local tests and linters in the primary session rather than a subagent before opening or updating PRs; a failure needs their full output.
Worker routing
Request the cheapest capable model and lowest sufficient effort (low for
routine); unsupported overrides inherit parent/configured defaults. Report
requested/actual only from runtime metadata, else inherited/unknown.
If a named role is unavailable/unsupported or returns an explicit pre-execution dispatch/runtime error (for example capacity, rate limit, rejected model, or launch error), try one generic fallback that preserves the named worker's tools and permissions:
- Log: exact approved local artifact only; reject unsafe input; report causes and events without fetching runs.
- Evidence: caller's scenario only; stop what it started; no Git mutation or upload; report per-step expected, observed, verdict, and paths.
Otherwise use primary; a generic pre-execution failure also falls back to primary. Once a worker begins its assigned workload, its rejection or failure is final: no other worker, primary rerun, stronger model, or higher effort. If a dispatch error does not reveal whether execution began, stop that dispatch and report the ambiguity; do not retry or duplicate that workload.
Branching & Guardrails
- Branch Guard: Stay on feature branches; never push or merge directly into the default base branch without explicit approval.
- Base Discovery: Detect the base branch dynamically from repo evidence (
origin/HEAD, PR target). - Fork Safety: Confirm with user before opening PRs on upstream or third-party forks.
- Stacked PRs: Prefer native stacks over hand-set feature-branch bases —
GitHub
gh stack(public preview; officialgithub/gh-stackskill), GitLabglab stack(experimental; bundledglab-stackskill). Hand-stacked: merge bottom-up, retargeting each PR onto the default branch first — closing keywords only fire there.
Commit Hygiene
- Atomic Commits: Keep commits single-concern. Include release/changelog URLs on single dependency bumps.
- Non-interactive: Pass
GIT_EDITOR=trueor--no-editon git rebase/commit/merge to bypass GUI editor prompts.
Issue Linking
- Auto-close: Reserve
Closes #N,Fixes #N, orResolves #Nsolely for PRs that auto-close the issue on merge. - Part-of: Use
Part of #NorSee #Nfor epic tracking and multi-PR tasks. GitHub matches those tokens even inside negation — never writeCloses #N(or Fix/Resolve) next to an issue you must not close. - Commit messages: A closing keyword before
#Nin a commit message closes the issue once the commit reaches the default branch. GitHub and GitLab both accept a colon after the keyword, so a Conventionalfix: #N ...subject closes#N. In commits for a multi-PR issue, keep the keyword off the number:fix(scope): describe change (#N). - No Tracked Issue: When a PR has no tracked issue, drop the Related Issue section entirely — never leave an unlinked
Closes #or empty issue marker in the PR body.
PR Lifecycle (GitHub Primary)
For GitLab, Gitea, Azure DevOps, or Bitbucket, see platform-tools.md.
For a caller-selected remote failure log, classify and scope the source before
delegation. The primary downloads only that log to a local artifact; the worker
never fetches remote logs or discovers unrelated runs. Low-risk build, lint,
and test artifacts may go to a named log-summarizer after caller review.
Potentially sensitive logs require a sanitized artifact and residual-secret
gate first; otherwise keep them in primary.
Use the worker-routing fallback above when the named summarizer is unavailable
or unsupported.
Before writing the request body, read the repo's docs/agents/pull-request.md
(or equivalent: docs/agents/merge-request.md, native .github / GitLab
templates) and follow its description shape and visual table, keying the
visual to the user-visible change — a CLI or UI output change wins over an
internal flowchart even when one exists. Where the table asks for a
before/after pair, show both states, not just the after. Keep a multi-line
text capture in a fenced block of its own under its Before or After label.
For a running-app capture of more than a step or two, hand a named
evidence-collector the scenario (entrypoint, fixtures, steps, expected
observations); on Cursor CLI keep it in primary. Judge the captures, mask
flagged regions, then --attach.
Create PR
gh pr create --title "<type>(<scope>): <summary>" --body "<description>"Update PR (Amend / Force-push)
gh pr edit <pr_number> --title "<updated_title>" --body "<updated_body>"Guard body rewrites: fetch, edit, and write back a PR/MR/issue body in one set -euo pipefail block; never write an empty or shrunken body (test -s) — see body-rewrite.md.
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.

