Agent skill

Restructure PR Commits

by Fallout-build in Fallout-build/Fallout

Restructure the commits on an existing PR into focused, reviewable commits

Custom licenceAuto-check passedDevelopment

Install Restructure PR Commits

skills CLI
$ npx skills add Fallout-build/Fallout --skill restructure-pr-commits -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Fallout-build/Fallout restructure-pr-commits --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Fallout-build/Fallout.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/restructure-pr-commits .claude/skills/restructure-pr-commits && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
restructure-pr-commits
GitHub stars
167
Token cost
~641 tokens
SKILL.md length
297 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
Custom licence

At a glance

Restructure the commits on an existing PR into focused, reviewable commits

  • Works in 8 steps: Find what the PR actually changes → Find the branch's own commits → Create a backup branch → …
  • Development work in your project
  • SKILL.md covers 1 — Find what the PR actually…, 2 — Find the branch's own…, 3 — Create a backup branch and 4 — Build the restructured…, plus 4 more sections
  • Calls git

What it does

Restructure PR Commits is an agent skill from Fallout-build/Fallout. Restructure the commits on an existing PR into focused, reviewable commits

Its SKILL.md is about 640 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development. It works with Git. The repository describes itself as: ☢️ Fallout — The C/.NET Build System.

When your agent uses it

  • Development work in your project

Example prompts

  • “/restructure-pr-commits”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Find what the PR actually changes
  2. Find the branch's own commits
  3. Create a backup branch
  4. Build the restructured history
  5. Verify file content is unchanged
  6. Stop and wait for explicit confirmation
  7. Push with --force-with-lease only after confirmation
  8. Update the PR title and description after confirmation

What it can do on your machine

Read from SKILL.md and the folder at commit 8333cc8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Restructure PR Commits loads about 641 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 297 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~641

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 297 words (~641 tokens).

“Restructure the commits on PR into focused, reviewable commits. Follow these steps in order exactly.”

— opening of SKILL.md by Fallout-build, Custom licence
name
restructure-pr-commits

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/restructure-pr-commits of Fallout-build/Fallout.

Open the folder on GitHubat commit 8333cc8

Compare with similar skills

Restructure PR Commits next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Restructure PR Commits compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Restructure PR Commits this skillFallout-build/Fallout167—~641Automated safety check: PassCustom licence
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins10k9 repos~2.6kAutomated safety check: PassNone
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Finishing A Development Branchfarm-fe/farm5.6k34 repos~1.8kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.

    10k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 34 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed

More from Fallout-build/Fallout

All 8 skills in this repo
  • Creating A PR

    Fallout-build/Fallout

    Steps for opening a pull request in the Fallout repo — picking the right base branch, creating it as a draft, applying the target/vCurrent-or-vNext and changelog-category labels, and handling…

    167 GitHub stars~823 tokensUpdated 6 days ago
    Auto-check passed
  • Plain English

    Fallout-build/Fallout

    Write clear, plain English for developer-facing prose aimed at an international audience.

    167 GitHub stars~2k tokensUpdated 6 days ago
    Auto-check passed
  • Marking Experimental APIs

    Fallout-build/Fallout

    How to mark a public API as not-yet-stable with [Experimental("FALLOUT0xx")], or deprecate one with [Obsolete(..., DiagnosticId = "FALLOUTOBS0xx")], including diagnostic-ID allocation.

    167 GitHub stars~917 tokensUpdated 6 days ago
    Auto-check passed
  • Editing CI Workflows

    Fallout-build/Fallout

    Invariants to preserve when touching .github/workflows/, build/Build.CI.GitHubActions.cs, or anything about which branches/tags trigger CI or publish packages.

    167 GitHub stars~468 tokensUpdated 6 days ago
    Auto-check passed
  • Adding A Migration Step

    Fallout-build/Fallout

    How to make fallout-migrate handle a new rename, removal, or rewrite by extending an existing IMigrationStep, and when a genuinely new step is warranted.

    167 GitHub stars~529 tokensUpdated 6 days ago
    Auto-check passed
  • Cutting A Release

    Fallout-build/Fallout

    Procedure for tagging, publishing, promoting, or cutting a new release/vX.Y branch, hotfixing a production line, or cutting the eventual v11 major.

    167 GitHub stars~559 tokensUpdated 6 days ago
    Auto-check passed

Works with

Categories

Questions about Restructure PR Commits

What does Restructure PR Commits do?

Restructure the commits on an existing PR into focused, reviewable commits. Restructure PR Commits is an agent skill from Fallout-build/Fallout.

When should I use Restructure PR Commits?

Restructure PR Commits fits situations like: development work in your project.

How do I install Restructure PR Commits in Claude Code?

Run `npx skills add Fallout-build/Fallout --skill restructure-pr-commits -a claude-code`. Or copy the skill folder (.claude/skills/restructure-pr-commits in Fallout-build/Fallout) into .claude/skills/restructure-pr-commits in your project. Claude Code loads it when a task matches its description.

How do I install Restructure PR Commits in Codex?

Run `npx skills add Fallout-build/Fallout --skill restructure-pr-commits -a codex`. Or copy the skill folder (.claude/skills/restructure-pr-commits in Fallout-build/Fallout) into .agents/skills/restructure-pr-commits in your project. Codex loads it when a task matches its description.

Can I use Restructure PR Commits in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Fallout-build/Fallout --skill restructure-pr-commits -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/restructure-pr-commits, .gemini/skills/restructure-pr-commits, .github/skills/restructure-pr-commits and .opencode/skills/restructure-pr-commits in your project.

What does Restructure PR Commits need to run?

Going by SKILL.md and its folder, Restructure PR Commits needs the command-line tools its instructions call (git).

Does Restructure PR Commits access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Restructure PR Commits safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Restructure PR Commits use?

Restructure PR Commits has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Restructure PR Commits use?

About 641 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Restructure PR Commits?

Skills that share tags, products or a category with Restructure PR Commits: Finishing a Development Branch (obra/superpowers, 297k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Code Design Rationale Investigator (cursor/plugins, 10k stars) and Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Restructure PR Commits?

Fallout-build (a GitHub organization) maintains it in Fallout-build/Fallout, which has 167 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 3, 2026.

Source: Fallout-build/Fallout on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.