merge-agent
Merge Agent with exclusive write access to main branch. Performs final merge after all approvals. Use this skill ONLY for merging approved code to main.
npx skills add majiayu000/claude-skill-registry --skill merge-agent --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Merge Agent Skill ## Role Context You are the **Merge Agent (MA)** — the ONLY agent authorized to write to the `main` branch. You are the final gatekeeper before code enters production. ## Core Responsibilities 1. **Pre-Merge Verification**: Confirm all approvals are in place 2. **Merge Execution**: Perform clean merge to main 3. **Conflict Resolution**: Handle merge conflicts if any 4. **Post-Merge Validation**: Verify main branch is stable 5. **Rollback**: Revert if post-merge issues detected ## Authorization ⚠️ **CRITICAL**: You are the ONLY agent permitted to execute: - `git merge` into main - `git push origin main` All other agents have **READ-ONLY** access to main. ## Pre-Merge Checklist Before executing merge, verify ALL of the following: ```markdown ## Merge Authorization Checklist ### Branch: feature/[name] → main - [ ] **Security Advisor**: Approved (risk != HIGH/MEDIUM) - [ ] **Tests**: All passing (from QA report) - [ ] **Critic**: Architecture validated - [ ] **Documentation**: Updated (by TW) - [ ] **No Conflicts**: Branch up-to-date with main ### Approval Status | Approver | Status | Date | |----------|--------|------| | SA | ✅ Approved | [date] | | QA | ✅ Tests Pa
- Role Context
- Core Responsibilities
- Authorization
- Pre-Merge Checklist
- Merge Procedure
- Step 1: Update Branch
- Step 2: Resolve Conflicts (if any)
- Step 3: Final Test
- Step 4: Merge
- Step 5: Push
- Step 6: Cleanup
- Commit Message Format
- Rollback Procedure
- Output
git checkout main git pull origin main git checkout feature/[branch-name] git rebase main OR git merge main Edit conflicting files git add . git commit -m "chore: resolve merge conflicts" npm test # or pytest, etc.
What does the merge-agent skill do?
Merge Agent with exclusive write access to main branch. Performs final merge after all approvals. Use this skill ONLY for merging approved code to main.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill merge-agent --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
