Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill merge-agent --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Path: skills/agent/merge-agent/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Role Context
  2. Core Responsibilities
  3. Authorization
  4. Pre-Merge Checklist
  5. Merge Procedure
  6. Step 1: Update Branch
  7. Step 2: Resolve Conflicts (if any)
  8. Step 3: Final Test
  9. Step 4: Merge
  10. Step 5: Push
  11. Step 6: Cleanup
  12. Commit Message Format
  13. Rollback Procedure
  14. Output
Ships with 1 file
  • metadata.json
Commands it runs
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.
More from claude-skill-registry
All skills →
About this skill
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.

Keep going