Skip to content
Agentmart
Submit a tool

rearrange

Analyze and reorganize current branch commits for easier review.

Skill by EATSTEAK

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/eatsteak-rearrange

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Analyze and reorganize current branch commits for easier review. Use when the user asks to rearrange, reorder, split, squash, or clean up commits, or requests `/rearrange` with an optional base branch.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/rearrange

What's inside

Skill name
rearrange
Description
Analyze and reorganize current branch commits for easier review. Use when the user asks to rearrange, reorder, split, squash, or clean up commits, or requests `/rearrange` with an optional base branch.
License
MIT
Instructions
49 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Commit Rearrangement

Use this workflow when the user wants branch commits reorganized for reviewability.

## Base Branch

- Use the user-provided base branch when present.
- Default to `main` when no base branch is provided.

## Analysis

1. Inspect commits since the base branch:

```bash
git log --oneline <base>..HEAD
git log --oneline --name-status <base>..HEAD
git log -p <base>..HEAD
```

2. Inspect recent project commit style with `git log --oneline -20`.
3. Identify commits that should be reordered, split, squashed, or renamed.
4. Preserve dependency order and keep tests with the implementation they verify.
5. Confirm that the final branch diff should remain behaviorally equivalent unless the user explicitly wants content changes.

## Plan

Before rewriting history, show a plan containing:

- Current commits.
- Proposed operations: `reorder`, `split`, `squash`, or `edit`.
- Expected final commit structure.
- Risks, especially if the branch has already been pushed.

Ask for explicit confirmation before any history rewrite.

## Execution

- Prefer non-interactive commands where possible.
- Avoid interactive git modes unless the environment supports them and the user approved the rewrite.
- Create a backup branch before rewriting when the branch has meaningful local work.
- After rearranging, verify `git log --oneline <base>..HEAD` and compare the final diff against the original intended diff.

## Safety

- Do not force-push unless explicitly requested.
- Do not discard changes.
- If conflicts occur, stop and explain the safest next step.

From EATSTEAK/skills, MIT.

More from EATSTEAK/skills

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Apr 25, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from EATSTEAK

Cite this page

rearrange skill. Agent Mart. https://agentmart.dev/skills/eatsteak-rearrange (last updated 2026-10-24)