integrate-branches - Bulk-integrate branches from the main repository
Scans linked worktrees and local branches, lets the user select entries, then merges, pushes, and cleans up successful worktrees sequentially.
Tags
Updated: 2026-10-03Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Verify repository context
- Detect the main branch
- Scan linked worktrees
- Scan local branches
- Deduplicate branch candidates
- Present selectable branches
- Check worktree cleanliness
- Pull the main branch
- Merge branches sequentially
- Push merged changes
- Remove successful worktrees
- Report operation statuses
Inputs
- Git repository
- Current working directory
- Origin remote
- User branch selection
- User continuation decisions
- User deletion confirmation
Outputs
- Merge commits on the main branch
- Pushed main branch state
- Removed successful worktrees
- Branch deletion status
- Per-branch summary report
Requirements
- Git CLI access
- Repository write permissions
- Remote push permissions
- Interactive user input
