merge-integrator
БесплатноБез исполняемых скриптовНе проверенMerge task branches and resolve conflicts for Ralph parallel execution. Use when merging completed task branches or resolving git conflicts. Triggers on…
от frizynn★ 16 звёзд на GitHubОб этом скилле
Merge Integrator
Merge task branches and resolve conflicts intelligently using task context.
The Job
- Merge branches in dependency order
- Resolve conflicts using mergeNotes
- Preserve functionality from both sides
- Validate merged code compiles
- Provide rollback guidance if needed
Do NOT: schedule tasks, implement features, or review design.
Merge Order
Always merge in topological order (dependencies first):
Merge order for tasks:
1. US-001 (no deps) ✓
2. US-002 (no deps) ✓
3. US-003 (depends on US-001) → merge now
4. US-004 (depends on US-002, US-003) → after US-003
Conflict Resolution
Step 1: Identify Conflicts
git merge branch-name
# If conflict:
git diff --name-only --diff-filter=U
Step 2: Read mergeNotes
Check both tasks' mergeNotes for guidance:
# Task US-003
mergeNotes: "Auth middleware uses new user schema from US-001"
# Task US-007
mergeNotes: "Keep both route handlers, don't overwrite"
Step 3: Resolve Intelligently
For each conflicted file:
- Read the conflict markers
- Understand what each side adds
- Combine both changes, don't just pick one
- Remove all
<<<<<<<,=======,>>>>>>>markers - Verify syntax is valid
Step 4: Complete Merge
git add <resolved-files>
git commit --no-edit
Common Conflict Patterns
Pattern: Both Add to Same Array/Object
// <<<<<<< HEAD
export { userRoutes } from './users';
// =======
export { authRoutes } from './auth';
// >>>>>>> branch
// Resolution: Keep both
export { userRoutes } from './users';
export { authRoutes } from './auth';
Pattern: Both Modify Same Function
// Check if changes are to different parts
// If yes: combine both modifications
// If no: use mergeNotes for priority, or combine logic
Pattern: Import Conflicts
// Usually safe to keep all imports
// Remove duplicates
// Check for naming conflicts
Merge Plan Output
Merge plan for 5 branches:
Phase 1 (independent):
✓ ralph/agent-1-us-001 → main
✓ ralph/agent-2-us-002 → main
Phase 2 (after deps):
→ ralph/agent-3-us-003 → main
Expected conflicts: none (different files)
→ ralph/agent-4-us-004 → main
Potential conflict: src/routes/index.ts
Resolution hint: "Keep all route exports"
Phase 3:
→ ralph/agent-5-us-005 → main
Depends on: US-003, US-004
Rollback Guidance
If merge fails completely:
Merge failed: ralph/agent-3-us-003
Rollback steps:
1. git merge --abort
2. Review conflicts in: src/auth/index.ts
3. Options:
a) Manually resolve and retry
b) Run task again with updated context
c) Create fix task for conflict resolution
Branch preserved: ralph/agent-3-us-003
No changes made to main
Validation After Merge
After each merge:
# Check syntax
npm run typecheck # or equivalent
# Quick test
npm test -- --bail
# If fails, rollback
git reset --hard HEAD~1
Output Format
Successful Merge
✓ Merged ralph/agent-1-us-001
Files: 3 changed
Conflicts: 0
Validation: passed
Conflict Resolved
✓ Merged ralph/agent-3-us-003
Files: 5 changed
Conflicts: 1 (resolved using mergeNotes)
- src/routes/index.ts: combined exports
Validation: passed
Merge Failed
✗ Failed ralph/agent-4-us-004
Conflicts: 2 unresolved
- src/db/schema.ts: incompatible changes
- src/types/user.ts: type mismatch
Action: manual resolution required
Branch preserved for review
Установить merge-integrator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл merge-integrator?
Merge task branches and resolve conflicts for Ralph parallel execution. Use when merging completed task branches or resolving git conflicts. Triggers on: merge branches, resolve conflict, integration merge.
Как установить скилл merge-integrator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл merge-integrator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic