/eng:reorganize-branch-commitsfrom eng
Reorganize the commits on a non-default git branch into a clean, logical history by rewriting the branch — `git reset` + re-commit by default, `git rebase -i` when commit boundaries already align. Propose groupings based on the actual work done (features, refactors, tests, fixes, docs), get explicit user approval, back the branch up, then rewrite history. Use this skill whenever the user wants to tidy up, clean up, reorganize, restructure, squash, or curate commits on a feature branch — even if they phrase it as "my branch is a mess", "squash this down", "combine these commits", "fix up the commit log before I open a PR", or "make the commits presentable for review". Trigger proactively when the user is about to open or push a PR and the branch has scrappy/WIP/"fix" commits to collapse. Refuses to operate on default or release-shaped branches (main, master, develop, trunk, production, release, or the repo default) — a feature-branch-only tool.
Ships in eng. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Rewrite the commits on a feature branch into a clean, logical history. Every commit from the base forward gets a new hash.
The repo default is git symbolic-ref refs/remotes/origin/HEAD --short | sed 's@^origin/@@'. The base is git merge-base HEAD origin/<default>, unless the user names another (a branch stacked on another feature branch).
Stop and tell the user if any of these hold:
main, master, trunk, develop, production, release, or the repo default.git status shows uncommitted changes or an in-progress rebase, merge, or cherry-pick. A reset would fold uncommitted edits into the new commits.Read git log --name-status <base>..HEAD and the diffs behind it. Group by what the diffs actually do, not by the existing messages: one logical change per commit, refactors before the feature that needs them, and "wip" / "fix typo" / "address review" commits folded into the change they serve. Match the subject style of recent commits on the default branch.
Present a numbered list of new commits, each with its subject, the source commits folded into it, and the files it touches. Every existing commit must be accounted for. Flag merge commits (they'll be flattened) and commits by other authors (a reset re-attributes them to the current user).
If the branch has an upstream, say that finishing will need a force push. Don't rewrite anything until the user approves the proposal.
git branch "backup/<branch>/$(date -u +%Y%m%dT%H%M%SZ)"
Tell the user the backup's name; git reset --hard <backup> restores the original branch.
git reset <base>, then stage and commit each group in order. Use git add -p when one file's hunks belong to different groups. Let hooks run; never pass --no-verify.
Use git rebase -i <base> instead when the existing commit boundaries already match the groups, or when other authors' commits must keep their authorship. If it stops on a conflict, report the paths and let the user decide whether to resolve or abort.
git diff <backup> HEAD must be empty. If it isn't, show the user the difference: a missed hunk goes into a commit, while hook output (formatters, codegen) needs the user's OK. Then show git log --oneline <base>..HEAD.
Once the diff is empty or the user has accepted what's left, ask whether to push, and push only on a yes: git push --force-with-lease if the branch has an upstream, otherwise git push -u origin <branch>. Never use plain --force.
After the push succeeds, offer to delete the backup with git branch -D <backup>, and keep it if the user declines.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub esond/skills --plugin eng7 skills in this plugin
/clean-unused-cpm-packagesRemove unused PackageVersion entries from `Directory.Packages.props` files in a .NET repo using Central Package Management (CPM). Scans every `.csproj`, `.props`, and `.targets` file for PackageReference includes, computes which PackageVersion IDs aren't referenced anywhere, removes the unused entries with line-targeted edits that preserve formatting and comments, then verifies with `dotnet restore`. Use this skill whenever the user wants to clean up, prune, or remove unused entries from `Directory.Packages.props`, or says things like "clean up CPM", "remove unused packages from central package management", "the props file has stale entries", "prune Directory.Packages.props", or "dead packages in the central versions file" — even if they don't literally say "CPM". Trigger proactively when the user mentions `Directory.Packages.props` alongside cleanup, removal, dead, stale, or unused. Refuses to run on repos without a `Directory.Packages.props` (CPM not in use)./inline-reviewFind and address inline code-review comments left in the code, marked with the `rev:` prefix (e.g. `// rev:`, `# rev:`, `-- rev:`). These are a manual code review done inline instead of on GitHub — each comment is a question, suggestion, concern, or change request about the nearby code. Use this skill whenever the user asks you to address, handle, resolve, go through, or respond to their inline review comments, rev comments, or `rev:` comments — even when phrased tersely, like "address my rev comments", "handle the reviews", "go through the rev: notes", "I left some inline comments", "respond to my review", or just "address these" right after leaving such comments. Trigger whenever the request references `rev:` comments in the code./pr-review-resolverAddress outstanding review feedback on a GitHub pull request: unresolved review threads, submitted review bodies, and general PR comments. Triages each critically, fixes what it agrees with, and pushes back on the rest. Use whenever the user wants to address, fix, resolve, or work through PR review comments or feedback, even if they just say "handle the PR comments", "fix what the reviewers said", or "go through the PR", or pastes a PR URL and asks you to act on the feedback there./righting-software-system-designOpt-in, collaborative system-design workflow based on Juval Löwy's iDesign methodology in *Righting Software*. Conducts a multi-phase interview (framing → use cases → volatility analysis → components → call-chain validation → report) that surfaces unknown-unknowns and produces a written recommendation at `decompositions/{system-name}/report.md`. **Run only when the user explicitly invites this workflow** — not for general architecture questions, lightweight design conversations, or quick "where should X live?" questions. Valid triggers: the user names the skill directly, references *Righting Software* / Juval Löwy / iDesign / "The Method" / volatility-based decomposition and asks to run a full session, asks for a "deep" or "structured" or "Löwy-style" system design session, or accepts a prior suggestion to run it. Wait for an explicit yes before entering Phase 0. The skill is interrogative — a back-and-forth interview that challenges each volatility candidate and proposes ones the user hasn't considered./sync-core-docsCreate or audit a repo's README.md, AGENTS.md/CLAUDE.md, and REVIEW.md docs./sync-core-repo-docsCreate or audit a repo's three core doc files — README.md, the agent instructions file (AGENTS.md or CLAUDE.md), and REVIEW.md — in that dependency order. If a file is missing, generate it from the codebase; if it exists, audit it against the current code and apply targeted fixes after confirmation. README.md gets a developer from clone to running the project; AGENTS.md captures coding guidance for the agent (delegating to /init or claude-md-improver); REVIEW.md holds guidance for code reviewers, human or automated, without duplicating AGENTS.md. Target files with --readme, --claude, and --review, or run all three. Use whenever the user wants to set up, bootstrap, scaffold, refresh, audit, update, or sync a repo's docs, or says things like "create a README", "is my README still accurate", "write a CLAUDE.md", "write an AGENTS.md", "audit our docs", or "get this repo ready for contributors" — even when only one file is named. Prefer it over claude-md-improver when README or REVIEW are also in scope.