بنقرة واحدة
interactive-rebase
Assist with interactive git rebase [git, rebase, history, cleanup, squash, reorder]
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Assist with interactive git rebase [git, rebase, history, cleanup, squash, reorder]
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Read files BEFORE asking questions. Inspect to assist, not just to plan [reading, inspection, context, workflow, collaborative editing]
Design First, Code Second - explore options before implementation
Always read Makefile before proposing commands [Makefile, build, test, docker, workflow]
Session retrospective following desk/retro.md [feedback, session review, improvement, workflow, validation]
Write semantic git commits following conventional format
Task closing protocol - documentation updates and completion tracking
| name | interactive-rebase |
| description | Assist with interactive git rebase [git, rebase, history, cleanup, squash, reorder] |
| license | MIT |
| compatibility | opencode |
| metadata | {"source":"desk/interactive-rebase.md","related":["skill:workflow-protocol","skill:semantic-commit"]} |
I assist with interactive git rebase following the process in desk/interactive-rebase.md.
Full process: Read desk/interactive-rebase.md for complete workflow, patterns, and checklists.
Core principle: Two-pass method
git log --oneline main..HEADgit log --stat main..HEADrebase-guide.md with exact commandsrebase-guide.md if user splits commitsgit log --oneline for clarityrebase-guide.mdDO:
rebase-guide.md during processDO NOT:
git rebase commands yourself (user controls git)rebase-guide.md after rebase doneFile: rebase-guide.md (temporary, delete after rebase)
# Rebase Interactive Guide
# Branch: <branch-name>
# From: <N> commits → <M> commits
## Commande de départ
git rebase -i main
## Ordre des commits (du plus ancien au plus récent)
### Commit 1 : KEEP/SQUASH
pick <hash> <message>
squash <hash> <message>
Message de commit suggéré :
<final message>
[... repeat for each group ...]
## Résumé visuel
<final commit list>
## Si conflits
git add <resolved-files>
git rebase --continue
| Strategy | Use When | Example |
|---|---|---|
| By file | Multiple commits same file | rewrite ai-cabin.md (4→1) |
| By feature | Commits implement one feature | add auth (3→1) |
| By type | Separate code, docs, config | feat: + docs: + chore: |
| Keep separate | Independent changes | fix: typo + feat: new |
When user reports conflict:
git reset --soft HEAD~1
git add <file1>
git commit -m "part 1"
git add <file2>
git commit -m "part 2"
c82eac2 example)rebase-guide.md with new commit hashes