squash-commits
Was er macht
Dieser Skill ordnet die Commits deines aktuellen Branches in wenige logische Commits um. Er richtet sich an Entwickler, die vor dem Teilen ihrer Arbeit eine saubere Historie wollen.
Wann du ihn nutzt
- âWenn dein Branch viele kleine oder unordentliche Commits hat und du eine sauberere Historie willst.
- âWenn du zusammenhĂ€ngende Ănderungen vor einem Pull Request in wenige aussagekrĂ€ftige Commits bĂŒndeln willst.
- âWenn du Merge-Commits aus main entfernen musst, die in deinen Branch ĂŒbernommen wurden.
Link zum Skill
https://github.com/pipecat-ai/pipecat/blob/main/.claude/skills/squash-commits/SKILL.mdKopiere ihn und fĂŒge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und fĂŒge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum EinfĂŒgen
FĂŒr Claude Code, Codex oder Cursor: FĂŒhre den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
âKannst du die Commits meines Branches in wenige klare Commits ordnen, ohne Code zu Ă€ndern?â
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent prĂŒft, dass deine Arbeit gesichert ist, legt eine Sicherungskopie des Branches an und setzt die Commits zurĂŒck, wĂ€hrend er jede Ănderung behĂ€lt. Danach schlĂ€gt er Gruppen vor und bittet dich um BestĂ€tigung, bevor er committet.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Reorganize the commits on the current branch into a small number of logical commits. Do NOT change any file content â only the commit structure changes.
Instructions
1. Safety check
git status --short
If there are uncommitted changes, stop and tell the user to commit or stash them first.
2. Inspect the branch
git log main..HEAD --oneline
git diff main..HEAD --name-only
List every file changed vs main and every commit on the branch (excluding merge commits from main).
3. Create a backup branch
git branch backup/<current-branch-name>
Tell the user the backup exists so they can recover if needed.
4. Soft-reset to main and unstage everything
git reset --soft main
git restore --staged .
All branch changes are now in the working tree, unstaged. No content has changed.
5. Plan the logical groups
Read the changed files and the original commit messages to understand what the work covers. Group related files into logical commits. Typical groups:
- Core feature or fix (new source files + modified core files)
- Secondary features or fixes (each as its own commit if distinct)
- Refactoring or renames
- Tests
- Changelogs / docs
Use the changelog files (if any) as a strong hint â each changelog entry often maps to one commit.
Present the proposed grouping to the user and ask for confirmation before committing.
6. Commit in logical groups
For each group, stage only the relevant files and commit with a clear message following the project's conventions:
git add <file1> <file2> ...
git commit -m "..."
Use conventional commit prefixes if the project uses them (feat:, fix:, refactor:, test:, chore:).
7. Verify
git log main..HEAD --oneline
git diff main..HEAD --name-only
git status --short
Confirm:
- Commit count is small and each message is meaningful
- The set of changed files vs
mainis identical to before - Working tree is clean
8. Remind about force-push
The branch history has been rewritten. Tell the user they will need to git push --force-with-lease when they are ready to update the remote. Do NOT push automatically.
Rules
- Never change file contents. If you find yourself editing a file, stop.
- Never skip the backup branch step.
- Never force-push without explicit user instruction.
- If any step fails or the result looks wrong, tell the user and suggest restoring from the backup:
git reset --hard backup/<branch-name>.
HĂ€ufige Fragen
Ăndert das meinen Code?
Nein. Der Skill soll nur die Anordnung der Commits verÀndern, nicht den Inhalt einer Datei.
Gibt es eine Möglichkeit, es rĂŒckgĂ€ngig zu machen?
Ja. Der Skill legt zuerst einen Sicherungs-Branch an, sodass du bei Bedarf zu den ursprĂŒnglichen Commits zurĂŒckkehren kannst.
Muss ich die Gruppierung bestÀtigen?
Ja. Der Agent zeigt die vorgeschlagenen Commit-Gruppen und bittet um deine Freigabe, bevor er Commits erstellt.
Details
Originalbeschreibung des Autors
Reorganize messy branch commits into a small set of logical, meaningful commits without changing any content. Drops merge-from-main commits. Safe: creates a backup branch first.
repo: pipecat-ai/pipecat
Beliebtheit
- GitHub-Sterne
- 17k
- Platz im Ranking
- #10793
- Lizenz
- BSD-2-Clause
- Aktualisiert
- 2.11.2026
Kommentare
- âŠ
Weitere Skills aus diesem Repository
Ăhnliche Skills
diffs
394kLĂ€sst deinen Agenten einen echten, teilbaren Diff seiner Ănderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine gröĂere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu ĂŒbergeben und danach den Fortschritt zu prĂŒfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwĂ€hlen und Pull Requests mit Korrekturen zu öffnen, einschlieĂlich der Nacharbeit an Review-Kommentaren.