Finishing a Development Branch
obra/superpowers
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.
Reorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them.
$ npx skills add mozilla-firefox/firefox --skill stack-reorganize -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mozilla-firefox/firefox stack-reorganize --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mozilla-firefox/firefox.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/stack-reorganize .claude/skills/stack-reorganize && rm -rf skills-srcUse ~/.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/
Install the "stack-reorganize" agent skill from https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganize into .claude/skills/stack-reorganize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stack-reorganize", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganizeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mozilla-firefox/firefox --skill stack-reorganize -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mozilla-firefox/firefox stack-reorganize --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mozilla-firefox/firefox.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/stack-reorganize .agents/skills/stack-reorganize && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "stack-reorganize" agent skill from https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganize into .agents/skills/stack-reorganize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stack-reorganize", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mozilla-firefox/firefox --skill stack-reorganize -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mozilla-firefox/firefox stack-reorganize --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mozilla-firefox/firefox.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/stack-reorganize .cursor/skills/stack-reorganize && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "stack-reorganize" agent skill from https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganize into .cursor/skills/stack-reorganize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stack-reorganize", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mozilla-firefox/firefox.git --path .agents/skills/stack-reorganize--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mozilla-firefox/firefox --skill stack-reorganize -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mozilla-firefox/firefox stack-reorganize --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mozilla-firefox/firefox.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/stack-reorganize .gemini/skills/stack-reorganize && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "stack-reorganize" agent skill from https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganize into .gemini/skills/stack-reorganize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stack-reorganize", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mozilla-firefox/firefox stack-reorganizeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mozilla-firefox/firefox --skill stack-reorganize -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mozilla-firefox/firefox.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/stack-reorganize .github/skills/stack-reorganize && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "stack-reorganize" agent skill from https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganize into .github/skills/stack-reorganize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stack-reorganize", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mozilla-firefox/firefox --skill stack-reorganize -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mozilla-firefox/firefox stack-reorganize --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mozilla-firefox/firefox.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/stack-reorganize .opencode/skills/stack-reorganize && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "stack-reorganize" agent skill from https://github.com/mozilla-firefox/firefox/tree/main/.agents/skills/stack-reorganize into .opencode/skills/stack-reorganize/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stack-reorganize", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
stack-reorganizeReorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them.
Stack Reorganize is an agent skill from mozilla-firefox/firefox. Reorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them. Use when a stack or its commits are hard to review, carry churn, or have an awkward shape - "my stack is hard to review", "clean up these commits", "organize my patches for review". Works in a git or a Jujutsu (jj) checkout.
Its SKILL.md is about 5.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/drop-superseded.md`, `references/fold-resplit.md` and `references/git.md`).
It sits in Development, covering Git workflow. It works with Git. The repository describes itself as: The official repository of Mozilla's Firefox web browser.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 59c8a94. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(git log:*)Bash(git show:*)Bash(git blame:*)Bash(git add:*)Bash(git diff:*)Bash(git status:*)Bash(git branch:*)Bash(git checkout:*)Bash(git restore:*)Bash(git commit:*)…and 36 more on the same allowed-tools line.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Stack Reorganize loads about 5.4k tokens when it runs, and up to ~17k if it reads all its reference files. Until then it costs about 93 tokens; SKILL.md has 3,304 words of instructions outside code blocks.
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.
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); the scripts in this folder are not scanned.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 3,304 words (~5,433 tokens).
“The mechanics depend on this checkout's version control system. Use jj where the checkout has a .jj directory at its root: it rebases descendants for you and records conflicts instead of halting. Do not fall back to git commands there…”
SKILL.md and 5 other files (scripts, references) in .agents/skills/stack-reorganize of mozilla-firefox/firefox.
Open the folder on GitHubat commit 59c8a94
Stack Reorganize 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Stack Reorganize this skillmozilla-firefox/firefox | 13k | — | ~5.4k | Automated safety check: Pass | Custom licence | |
| Finishing a Development Branchobra/superpowers | 296k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 10k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Migrate Internal Package into GhostTryGhost/Ghost | 55k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
obra/superpowers
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.
cursor/plugins
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.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
TryGhost/Ghost
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.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
tailcallhq/forgecode
Resolves Git merge conflicts with a plan-first workflow that keeps both sides' intent, regenerates lock files and backs up deleted-but-modified files.
mozilla-firefox/firefox
Handle a Perfherder performance regression bug end to end: read the alert bug, confirm whether the regression is real, find the cause, and iterate to a fix.
mozilla-firefox/firefox
Record a Firefox performance profile with the firefox-devtools MCP.
mozilla-firefox/firefox
Split one large or hard-to-review commit into several commits that each stand on their own for review, in a git or a Jujutsu (jj) checkout.
mozilla-firefox/firefox
A skill your agent uses when a Firefox preference has to be remotely controllable: putting a new feature behind a pref so it can be experimented on, rolled out gradually, or disabled remotely via…
mozilla-firefox/firefox
Guidelines to follow when committing, or amending commits. An agent skill from mozilla-firefox/firefox.
mozilla-firefox/firefox
A skill your agent uses when reviewing code the JS engine (SpiderMonkey, js/src/) or self-reviewing code while producing it.
Works with
Categories
Reorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them. Stack Reorganize is an agent skill from mozilla-firefox/firefox. Reorganize a range of local commits so each one stands on its own for review, by splitting, reordering, squashing or dropping them.
Stack Reorganize fits situations like: its commits are hard to review; have an awkward shape - my stack is hard to review; clean up these commits; organize my patches for review.
Run `npx skills add mozilla-firefox/firefox --skill stack-reorganize -a claude-code`. Or copy the skill folder (.agents/skills/stack-reorganize in mozilla-firefox/firefox) into .claude/skills/stack-reorganize in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mozilla-firefox/firefox --skill stack-reorganize -a codex`. Or copy the skill folder (.agents/skills/stack-reorganize in mozilla-firefox/firefox) into .agents/skills/stack-reorganize in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mozilla-firefox/firefox --skill stack-reorganize -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stack-reorganize, .gemini/skills/stack-reorganize, .github/skills/stack-reorganize and .opencode/skills/stack-reorganize in your project.
Going by SKILL.md and its folder, Stack Reorganize needs a shell for the scripts in its folder and the command-line tools its instructions call (git). Our summary lists: A Bash shell. Its frontmatter pre-approves these tools: Bash(git log:*), Bash(git show:*), Bash(git blame:*), Bash(git add:*), Bash(git diff:*), Bash(git status:*), Bash(git branch:*), Bash(git checkout:*), Bash(git restore:*), Bash(git commit:*), Bash(git cherry-pick:*), Bash(git rebase:*), Bash(git reset:*), Bash(git rev-list:*), Bash(git ls-tree:*), Bash(git apply:*), Bash(git range-diff:*), Bash(git patch-id:*), Bash(git grep:*), Bash(git cat-file:*), Bash(git rev-parse:*), Bash(grep:*), Bash(awk:*), Bash(sort:*), Bash(tr:*), Bash(bash .claude/skills/stack-reorganize/scripts/git-churn.sh:*), Bash(bash .agents/skills/stack-reorganize/scripts/git-churn.sh:*), Bash(jj log:*), Bash(jj show:*), Bash(jj diff:*), Bash(jj st:*), Bash(jj op:*), Bash(jj squash:*), Bash(jj commit:*), Bash(jj new:*), Bash(jj describe:*), Bash(jj rebase:*), Bash(jj edit:*), Bash(jj abandon:*), Bash(jj absorb:*), Bash(jj fix:*), Bash(jj restore:*), Bash(jj file show:*), Read, Grep, Glob.
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.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Stack Reorganize has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 5.4k tokens (SKILL.md is roughly 22k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 12k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Stack Reorganize: Finishing a Development Branch (obra/superpowers, 296k stars), Code Design Rationale Investigator (cursor/plugins, 10k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Migrate Internal Package into Ghost (TryGhost/Ghost, 55k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mozilla-firefox (a GitHub organization) maintains it in mozilla-firefox/firefox, which has 13,384 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: mozilla-firefox/firefox on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.