backporting
Skill881 starsChanged 6 days agoApache-2.0View on GitHub
Backport merged PRs from main to a release/N.x LTS branch. Covers labels, easy-to-review cherry-pick and fixup commit structure, and the Backport checks workflow.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- portabletext/editortheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- portabletext/editor★ 290same 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 repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- formatting-and-lintingSkill
- testingSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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 9
Use this skill to prepare or update a PR that targets a release/N.x branch.
- Distinctive: line 17
Keep the PR easy to review by separating unchanged cherry-picks from release-specific changes:
- Very specific: line 18
Put git cherry-pick -x <commit on main> commits first, unchanged and in main merge order, one per backported PR.
- Very specific: line 19
Put anything needed to adapt, build, or test the change on release/N.x in small, separate fixup commits without a (cherry picked from …
- Distinctive: line 20
Place a fixup before or between cherry-picks only when needed (for example, a prep fixup or manual conflict port so a later commit …
- Distinctive: line 21
Never edit a cherry-pick commit.
- Very specific: line 23
Prefer rebasing onto release/N.x when updating the branch locally so the commit list stays easy to review.
- Very specific: line 26
Verify locally with scripts/backport.py --base origin/release/N.x before pushing.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Backporting
Use this skill to prepare or update a PR that targets a release/N.x branch.
The release process defines the policy.
The "Backport checks" workflow (.github/workflows/backport-checks.yml) runs scripts/backport.py on every PR into release/**.
It verifies that every commit with a (cherry picked from commit ...) line is an exact, unchanged git cherry-pick of a commit merged to main since the release branched, so reviewers do not need to re-review the cherry-picks and only need to review any fixup commits.
Structure for reviewability
- Backport only PRs that have merged to
main. Cherry-pick the commit that the PR's squash merge created onmain, never the PR's own head commits. - Keep the PR easy to review by separating unchanged cherry-picks from release-specific changes:
- Put
git cherry-pick -x <commit on main>commits first, unchanged and inmainmerge order, one per backported PR. - Put anything needed to adapt, build, or test the change on
release/N.xin small, separate fixup commits without a(cherry picked from commit ...)line. Place a fixup before or between cherry-picks only when needed (for example, a prep fixup or manual conflict port so a later commit cherry-picks cleanly).
- Put
- Never edit a cherry-pick commit. CI replays each cherry-pick onto its parent commit and fails if the result differs in any way.
- If a commit does not cherry-pick cleanly, run
git cherry-pick --abortand port it as a fixup commit instead (later commits that apply cleanly on top can still be cherry-picked with-x). Name the original commit and PR in each message, and say in the PR description that these ports need a full review. - Prefer rebasing onto
release/N.xwhen updating the branch locally so the commit list stays easy to review. - Label the original PR
N.x-todoand the backport PRN.x-backport. CI does not check labels; the releaser scans forN.x-todo. - Title the PR as the release process describes, and link each original PR in the description.
- Verify locally with
scripts/backport.py --base origin/release/N.xbefore pushing.
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.

