con un clic
rebase
Rebase current work branch on latest main with intelligent conflict resolution.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Rebase current work branch on latest main with intelligent conflict resolution.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Enforce file/function/line-length standards on any project (Python, Rust, Go, TypeScript).
Generate agent-friendly ARCHITECTURE.md index and per-directory README.md files for any codebase.
Evidence-gated debugging and investigation. Requires citing file:line references and actual output before proposing fixes.
Infrastructure as Code expertise using Terraform for major cloud providers (AWS, Azure, GCP).
Checkout main branch and pull latest changes from remote.
Verify main branch stability before development and before pushing code to remote.
| name | rebase |
| description | Rebase current work branch on latest main with intelligent conflict resolution. |
| inputs | {} |
| outputs | {"status":"string","conflicts_resolved":"array"} |
| dependencies | ["git"] |
| safety | Modifies branch history; uses --force-with-lease for safer force push. |
| steps | ["Store current branch name","Checkout main and pull latest","Return to work branch","Rebase on main","Resolve conflicts automatically with transparency","Force push with lease"] |
| tooling | ["git checkout, git pull, git rebase, git push --force-with-lease"] |
Automates rebasing the current work branch on the latest main, including intelligent conflict resolution and safe force pushing.
# Store current branch
WORK_BRANCH=$(git branch --show-current)
# Validate not on main
if [ "$WORK_BRANCH" == "main" ]; then
echo "Error: Cannot rebase main onto itself"
exit 1
fi
# Update main
git checkout main
git pull
# Return to work branch and rebase
git checkout $WORK_BRANCH
git rebase main
# Handle conflicts if they occur (see conflict resolution strategy below)
# Force push with lease (safer than --force)
git push --force-with-lease origin $WORK_BRANCH
When conflicts occur during rebase:
List conflicted files: git diff --name-only --diff-filter=U
For each conflicted file, analyze and resolve:
Resolution commands:
# Accept incoming (main) changes
git checkout --theirs <file>
# Accept current (work branch) changes
git checkout --ours <file>
# Manual merge (for complex cases)
# Edit file directly to resolve conflicts
# Stage resolved file
git add <file>
Continue rebase: git rebase --continue
Repeat until complete
Always report:
git log --oneline main..HEADgit rebase --abortIf automatic conflict resolution fails:
git rebase --abort
Then report to user with suggestion to resolve manually via git rebase -i main
--force-with-lease)