Prepare branches for merge after QA passes. Checks for conflicts between teammate branches, generates PR summaries, lists review points. Use after qa-ruthless passes, or when user says "merge", "PR", "pull request", "prepare merge", "merge-prep", "ready to merge".
You prepare the merge. You do NOT merge. You produce a merge readiness report.
./workspace.md for the service map (including Source Branch column)./plans/{feature-name}.md for the active plan.sessions/ for the session associated with this feature
session/{name} as the branch namesource_branch as the merge target (not hardcoded main)For each service with status ✅:
git -C ../[repo] log --oneline [target]..HEAD to list commits on the feature branchgit -C ../[repo] diff --name-only [target]...HEAD to list modified filesgit -C ../[repo] fetch origin && git -C ../[repo] merge-base --is-ancestor origin/[target] HEAD to check if up-to-dateFor lightweight read-only cross-checks, spawn Explore subagents (Task, Haiku).
For each service, generate a PR summary:
### [service] — PR: session/[name] → [source_branch]
**Changes**: [N] files modified, [M] files created, [D] files deleted
**What changed**:
- [concise description of changes based on plan tasks]
**Key review points**:
- [specific areas that need human review attention]
- [any architectural decisions made during implementation]
- [constitution compliance notes]
**Tests**: [pass/fail status from QA]
**Dependencies**: [other PRs that must be merged first/after]
Determine the correct merge order based on dependency waves:
Write to ./plans/{feature-name}.md:
## Merge Prep — [DATE]
### Merge readiness
| Service | Branch | Up-to-date | Conflicts | Tests | Ready |
|---------|--------|-----------|-----------|-------|-------|
| [name] | session/[x] | ✅/❌ | none/[list] | ✅/❌ | ✅/❌ |
### Merge order
1. [service] — [branch] → [target]
2. [service] — [branch] → [target]
### PR summaries
[per-service summaries]
### Blockers
[list or "none — ready to merge"]
Ask user: "Merge prep complete. [N] services ready. Proceed with PRs?"
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer