Agent skill
ralph-integrate
Integrate completed agent work by rebasing all feature branches on main. Prepares for pre-PR review phase.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/ralph-integrate
SKILL.md
/ralph.integrate [epic]
Rebase all completed feature branches on main and prepare for pre-PR review.
Prerequisites
- Pre-flight check: Run
/ralph.preflightto verify Linear MCP is authenticated - All agents for the epic should be COMPLETE
- Run
/ralph.statusto verify completion
Process
-
Verify all agents complete
bashcat .ralph/manifest.json | jq '.active_agents[] | select(.epic == "EP001")' -
Fetch latest main
bashgit fetch origin main -
Rebase each feature branch
bashfor worktree in ../floe-agent-{epic}-*; do cd "$worktree" git rebase origin/main done -
Detect and report conflicts
- If rebase fails, report conflicting files
- Signal for human intervention
-
Run full test suite on rebased code
bashuv run pytest tests/ -v -
Update manifest with integration status
Output
Success
INTEGRATION STATUS - EP001
Worktrees to integrate: 5
Rebased successfully: 5
Conflicts detected: 0
All tests pass: YES (47/47)
Ready for pre-PR review:
/speckit.test-review
/security-review
/arch-review
Conflict Detected
INTEGRATION STATUS - EP001
Worktrees to integrate: 5
Rebased successfully: 4
Conflicts detected: 1 (T003)
Conflict in T003:
- packages/floe-core/schemas.py
- Cause: CompiledArtifacts schema changed on main
Action required: Resolve T003 conflict before proceeding
To resolve:
cd ../floe-agent-ep001-t003
git status # See conflicting files
# Edit files to resolve conflicts
git add -A
git rebase --continue
Conflict Resolution
Manual Resolution
# 1. Enter conflicting worktree
cd ../floe-agent-ep001-t003
# 2. See conflicting files
git status
# 3. Edit and resolve conflicts
# ... make changes ...
# 4. Mark resolved
git add -A
# 5. Continue rebase
git rebase --continue
# 6. Re-run integration
/ralph.integrate EP001
Abort and Reschedule
# If conflict is complex
cd ../floe-agent-ep001-t003
git rebase --abort
# Option: Merge instead of rebase
git merge origin/main
# Resolve conflicts
git commit
Pre-PR Review Checklist
After successful integration:
-
Test Quality
/speckit.test-review -
Security Review
/security-review -
Architecture Review
/arch-review -
PR Creation (after reviews pass)
bashgh pr create --base main --title "EP001: Feature implementation"
Configuration
From .ralph/config.yaml:
rebase_strategy: "rebase" (default) or "merge"run_tests_after_rebase: true
Related Commands
/ralph.spawn- Start agents/ralph.status- Check progress/ralph.cleanup- Clean up after merge/speckit.test-review- Test quality review/security-review- Security scan/arch-review- Architecture alignment
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?