Merge To Main — Git skill for Claude Code
Merge current branch to main via GitHub PR.
How to install Merge To Main
Installs to ~/.claude/commands/alexanderop-markvim-merge-to-main.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/alexanderop/MarkVim/HEAD/.claude/commands/merge-to-main.md -o ~/.claude/commands/alexanderop-markvim-merge-to-main.md Restart Claude Code, or start a new session, for it to be picked up.
What Merge To Main does
description: Merge current branch to main via GitHub PR allowed-tools: Bash(git status), Bash(git branch), Bash(git log), Bash(git push), Bash(gh pr create), Bash(gh pr merge), Bash(gh pr list), Bash(gh pr view), Bash(git checkout), Bash(git pull) model: haiku
Merge to Main
I have gathered information about your branch. Here are the results:
Alternatives in Git
- Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
- OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★
- PR Summary — Generate a pull request summary for the current branch 5.8k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Ship
Create a pull request from the current working branch to main, ensure the version is bumped, and draft a GitHu
Update Branch
Merge main into the current feature branch
MiniCode Roadmap
MiniCode already has a usable lightweight terminal coding workflow, but there is still a visible gap between t
Rebase On Main
Rebase the current branch on origin/main and resolve any conflicts.
PR Template
Generate a pull request description for the current branch by analyzing all commits and changes since divergin
PR Desc
Reads git diff between the current branch and main (or a specified base branch), analyzes changed files, and g
Related Agents
Compare Branch
Compare current branch vs main/staging — changes, risk assessment, merge readiness.
Gitnexus Branch Hygiene Reviewer
GitNexus branch hygiene and mergeability reviewer. Use to classify merge state, conflicts, stale branches, mer
Merge Cleanup
Commits worktree changes, cherry-picks them to main, removes the worktree, and prunes the branch. Use at the e