- Always rebase the feature branch onto main to pick up new work.
- Never create merge commits when syncing with main.
- Force-push the rebased branch with --force-with-lease.
Rebase policy is an AI agent skill from the GitHub repository Goldziher/ai-rulez. Keep a feature branch current with main. Use when asked how to update or sync a branch; not for merging it into main.
.claude/skills/rebase-policy/SKILL.md.cursor/rules/rebase-policy.md.agents/skills/rebase-policy/SKILL.md