Merge Main — Git skill for Claude Code
Merge the latest origin/$MAIN_BRANCH into the current branch, resolve conflicts preserving both sides' intent, run the quality gates, and push.
How to install Merge Main
Installs to ~/.claude/commands/thomas-sodon-claude-code-pipeline-merge-main.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/thomas-sodon/claude-code-pipeline/HEAD/.claude/commands/merge-main.md -o ~/.claude/commands/thomas-sodon-claude-code-pipeline-merge-main.md Restart Claude Code, or start a new session, for it to be picked up.
What Merge Main does
Merge the latest `origin/$MAIN_BRANCH` into the current branch, resolve conflicts preserving both sides' intent, run the quality gates, and push.
Configuration
Read the `## Pipeline config` section of the project's root `CLAUDE.md`:
MAIN_BRANCH— integration branch (defaultmain).QUALITY_GATES— full gate command, exit 0 when green. If missing, stop witherror=missing_quality_gatesand ask the user to add it.GATE_WRAPPER— optional prefix for every gate run (e.g. `.claude/
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- Push And Release — Git pull, resolve conflicts, push, fix hook errors, then release 1.6k ★
- MiniCode Roadmap — MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t 388 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Rebase On Main
Rebase the current branch on origin/main and resolve any conflicts.
Ship And Babysit
Commit, push to origin, open a PR against bendourthe/Gemma-Code:main, then poll Gemma-Code's own CI every ~270
Quality Gates
Run the project's quality gates — plus any failure class the current PR's live CI is red on — fix failures at
Rebase PR
Use when: rebasing a PR branch onto main and the rebase produces conflicts. Triggers on: rebase origin/main, r
Git Rebase
Rebases onto origin/main (or origin/master) and resolves conflicts
Land Ticket
Publish + close a ticket — open the Linear-linked PR if needed, analyze conflicts by reading code, resolve, mi
Related Agents
PR Updater
Helper for /merge-line. Brings one open PR up to date with the main branch in its own worktree (merges it, res
Merge Integrator
Integration specialist that merges parallel work (branches, worktrees, or multiple agents' changes) into one c
Worker Conflict Resolver
Given a set of PR numbers with mutual merge conflicts (or conflicts against main), produce a unified resolutio