majiayu000

Rebase PR — Git skill for Claude Code

Git community

Use when: rebasing a PR branch onto main and the rebase produces conflicts.

How to install Rebase PR

Installs to ~/.claude/skills/majiayu000-harness-rebase-pr/SKILL.md

Terminal
mkdir -p ~/.claude/skills/majiayu000-harness-rebase-pr && curl -fsSL https://raw.githubusercontent.com/majiayu000/harness/HEAD/skills/rebase-pr.md -o ~/.claude/skills/majiayu000-harness-rebase-pr/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Rebase PR does

Use when: rebasing a PR branch onto main and the rebase produces conflicts. Triggers on: rebase origin/main, rebase the PR, rebase --continue, rebase --skip, rebase conflict, conflicting and rebase, manual resolution required, rebase the conflicting

Trigger

Use when a `git rebase` against the base branch

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 ★
  • Triage Open Pull Requests — Review, label, and act on all open PRs for a repository using parallel review agents 10.8k ★

Full documentation available on GitHub

View Source Repository