agentleFS
MicrosoftKnown publishermicrosoft/CCF/.github/skills/backporting/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Very specific:

    Use this skill to prepare or update a PR that targets a release/N.x branch.

    line 9
  2. Distinctive:

    Keep the PR easy to review by separating unchanged cherry-picks from release-specific changes:

    line 17
  3. Very specific:

    Put git cherry-pick -x <commit on main> commits first, unchanged and in main merge order, one per backported PR.

    line 18
  4. Very specific:

    Put anything needed to adapt, build, or test the change on release/N.x in small, separate fixup commits without a (cherry picked from …

    line 19
  5. Distinctive:

    Place a fixup before or between cherry-picks only when needed (for example, a prep fixup or manual conflict port so a later commit …

    line 20
  6. Distinctive:

    Never edit a cherry-pick commit.

    line 21
  7. Very specific:

    Prefer rebasing onto release/N.x when updating the branch locally so the commit list stays easy to review.

    line 23
  8. Very specific:

    Verify locally with scripts/backport.py --base origin/release/N.x before pushing.

    line 26

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 on main, never the PR's own head commits.
  • Keep the PR easy to review by separating unchanged cherry-picks from release-specific changes:
    1. Put git cherry-pick -x <commit on main> commits first, unchanged and in main merge order, one per backported PR.
    2. Put anything needed to adapt, build, or test the change on release/N.x in 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).
  • 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 --abort and 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.x when updating the branch locally so the commit list stays easy to review.
  • Label the original PR N.x-todo and the backport PR N.x-backport. CI does not check labels; the releaser scans for N.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.x before pushing.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.