Agent skill

GitHub PR Rebase Merge

by Szotasz in Szotasz/marveen

Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts.

MITAuto-check passed

Install GitHub PR Rebase Merge

skills CLI
$ npx skills add Szotasz/marveen --skill github-pr-rebase-merge -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Szotasz/marveen github-pr-rebase-merge --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Szotasz/marveen.git skills-src && mkdir -p .claude/skills && cp -r skills-src/seed-skills/github-pr-rebase-merge .claude/skills/github-pr-rebase-merge && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
github-pr-rebase-merge
GitHub stars
117
Token cost
~1.8k tokens
SKILL.md length
768 words
Files
1
Skills in repo
18
Repo updated
First seen
Licence
MIT

At a glance

Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts.

  • Works in 3 steps: Ellenőrzés és tiszta mergek (no conflict) → Konfliktus út (rebase + manual merge) → Ha nincs push access (fork scenario)
  • User says merge the PRs sorban
  • SKILL.md covers Mikor használd, Az alap probléma, Eljárás and Buktatók, plus 2 more sections
  • Calls git, gh and npm

What it does

GitHub PR Rebase Merge is an agent skill from Szotasz/marveen. Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts. Triggers when user says "merge the PRs sorban" or similar, and the PRs come from external forks (cannot push back to PR branch).

Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with GitHub. The repository describes itself as: AI csapatod, ami fut amíg te alszol. The licence is MIT.

When your agent uses it

  • User says merge the PRs sorban
  • The PRs come from external forks (cannot push back to PR branch)

Example prompts

  • “merge the PRs sorban”
  • “/github-pr-rebase-merge”

Requirements

  • Node.js

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Ellenőrzés és tiszta mergek (no conflict)
  2. Konfliktus út (rebase + manual merge)
  3. Ha nincs push access (fork scenario)

What it can do on your machine

Read from SKILL.md and the folder at commit 6f2d261. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • gh
    • npm
    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, gh, npm and npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GitHub PR Rebase Merge loads about 1.8k tokens when it runs. Until then it costs about 63 tokens; SKILL.md has 768 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Szotasz/marveen at commit 6f2d261, republished under its MIT licence (© Szotasz). 768 words, ~1,816 tokens.

Download SKILL.mdSave it as .claude/skills/github-pr-rebase-merge/SKILL.md (or your agent's skills folder).
name
github-pr-rebase-merge
description
Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts. Triggers when user says "merge the PRs sorban" or similar, and the PRs come from external forks (cannot push back to PR branch).

GitHub PR rebase + merge for conflicting fork PRs

Mikor használd

  • 2+ nyitott PR ugyanazon a repo-n, ami átfed fájlokon (pl. src/web.ts)
  • A PR-ok EXTERNAL forkból jönnek (head ref: someuser:branch), nem a saját repóból
  • User azt kéri, hogy sorban mergeld mindet
  • Nem tudsz pusholni a PR branch-ére (nincs write access a forkhoz)

Az alap probléma

Ha két PR (A, B) ugyanazt a fájlt módosítja, az egyik merge után a másik CONFLICTING lesz a GitHub UI-ban, és gh pr merge B elbukik. Külső forkhoz nem tudsz force-pusholni egy rebaselt változatot, szóval két opció marad:

  1. A szerző rebaselje manuálisan és pusholja (lassú, emberfüggő)
  2. Lokálisan rebaseled, majd squash-mergeled main-be, és a PR-t manuálisan close-olod -- ez a skill

Eljárás

1. Ellenőrzés és tiszta mergek (no conflict)
bash
gh pr view <N> --json mergeable,mergeStateStatus
# MERGEABLE + CLEAN -> gh pr merge N --squash --delete-branch
# UNKNOWN -> várj 5-10 mp-et és újra kérdezd le (GitHub lazy-resolve)
# DIRTY + CONFLICTING -> menj a konfliktus-útra

Mindegyik merge után:

bash
git pull --ff-only origin main
sleep 8  # GitHub időt igényel a mergeable status újraszámolására
2. Konfliktus út (rebase + manual merge)
bash
# 1. Húzd le a PR-t lokális tracking branch-re
gh pr checkout <N>

# 2. Rebaseld main-re
git rebase main
# Konfliktus lesz. Rendezd a markereket (<<<<<<< / ======= / >>>>>>>)
# Tipikus eset: két branch új importot adott ugyanahhoz az import blokkhoz -- mindkettőt tartsd meg
# Tipikus eset: komment blokkok -- kombináld őket egy új kommentbe
# Tipikus eset: ugyanazt a függvényt módosítják más célból -- olvasd mindkettőt és integráld

git add <rendezett fájlok>
git rebase --continue

# 3. Lokálisan teszteld
npm run typecheck
npx vitest run

# 4. Próbáld pusholni a PR branch-re
git push --force-with-lease
# Ha "rejected (stale info)" vagy "remote rejected" -> nincs write access, menj a 5. pontra
3. Ha nincs push access (fork scenario)
bash
# Checkoutold main-re, squash-mergeld a rebaselt branchet
git checkout main
git merge --squash <rebaselt-branch-név>

# Commitold co-author-ral
git commit -m "$(cat <<'EOF'
<eredeti PR title> (#N)

Rebased and merged manually due to conflict with <prior PR or series>.

Co-authored-by: <szerző> <szerző-email>
EOF
)"

git push origin main

# Zárd a PR-t manuálisan
gh pr close N --comment "Merged manually via rebase due to conflict with <prior PR>. See <commit-sha> on main." --delete-branch

Buktatók

  • gh pr merge nem elég, ha CONFLICTING. Ne próbálkozz vele, mert --merge vagy --rebase flag se oldja meg, ha a patch egyszerűen nem applikál. Menj egyenesen a lokális rebaselésre.

  • gh pr checkout N után a branch név a PR head ref-je, pl. v3-07-mcp-state-detection. Ne tévesszen meg, hogy lokális branchként jelenik meg. Push-kor az origin a FORK URL-je (<owner>/<repo>.git), nem a saját origin.

  • "Skipped deleting the remote branch of a fork" üzenet normális gh pr close --delete-branch-nál. Csak a lokális branchet törli.

  • GitHub mergeStateStatus: UNKNOWN átmeneti állapot, ~5-15 másodperc alatt konszolidálódik. Ne legyél türelmetlen, várj.

  • Ha több sorszám-szám-csúsztatás konfliktus van egy fájlban (pl. 3-4 marker blokk), szemantikusan oldd meg, nem csak mechanikusan. Olvasd fel a környező kódot és gondold át, mit próbál mindkét verzió csinálni.

  • A co-authored-by fontosság: GitHub így még mindig hozzárendeli a szerzőnek a commitot, és a PR-ra "closed" státuszt rak, nem "merged"-et, de a kód bent van.

  • Miután pusholtál main-re, a TÖBBI nyitott PR state UNKNOWN -> CLEAN vagy DIRTY lesz. Mindegyiknél újra kell nézni a státuszt merge előtt, mert lehet hogy a frissen mergelt commit új konfliktust generált.

  • --delete-branch flag a stacked PR-eket ZÁRJA, NEM CLOSE-olja. Ha a PR base branch-e egy MÁSIK feat-branch (pl. a PR base = feat/slack-channel-request-workflow), és a parent PR-t gh pr merge ... --delete-branch-csel mergeled, a base törlődik és a child PR state=CLOSED lesz automatikusan -- ÉS gh pr reopen "Cannot open the pull request" hibát ad ÉS gh pr edit --base main "Cannot change the base branch of a closed pull request"-ot. Megoldás: új PR-t nyitni ugyanabból a head branchből (gh pr create --base main --head <branch>). A korábbi review-history a régi PR-on marad — link-eld be hivatkozással ("Re-opened after the prior PR closed when its base branch was deleted").

  • Az orchestrator-install branch-stuck: az orchestrator agent lokál git checkout-ja a rebase-conflict resolution közben véletlenül a feat-branchen ragad (pl. tmp-pr-rebase-ből git push origin tmp:feat/X --force után a checkout helyben marad). Az update.sh Guard 1: refuse non-main branch ezt megfogja, és az update.sh exit-el — de a dashboard UI pending commits-ot listáz, és a "Frissítés most" gomb úgy tűnik mintha "legfrissebb verzión" lennél. Diagnózis: git -C <project-root> branch --show-current. Megoldás: git stash push -u, git checkout main, git pull --ff-only, git stash pop. Build+restart aztán.

  • A npm run build && stop && start && stash pop chain SIGKILL/exit-137 OOM. A merge utáni manuális update-flow-t NE chain-eld egy shell-hívásba (a tsc build memóriafogyasztó, és a chain alatt a memória gyűlik → exit 137, build befejezetlen, services down). Helyes: minden lépés KÜLÖN hívásban (1: build, 2: stop, 3: start, 4: stash pop). A canonical út amúgy az update.sh, ami helyesen sorban csinálja.

  • A stop.sh UNLOAD-olja a launchd jobot → a KeepAlive NEM hozza vissza automatikusan. A com.<slug>.dashboard.plist-ben KeepAlive=true, DE a stop.sh launchctl unload-dal áll le. Az unload SZÁNDÉKOS leállítás, a KeepAlive csak CRASH-re indít újra, unload-ra NEM. Ezért stop.sh után a fő-agent lent marad, amíg launchctl load (start.sh) vissza nem tölti. TANULSÁG: ha manuálisan stop.sh-zol update közben, MINDIG futtass utána start.sh-t magadtól, ne várj az operátorra. FONTOS: a stop.sh SZÁNDÉKOSAN NEM állítja le a sub-agenteket (csak a ${SLUG}-channels fő-session-t — explicit komment a scriptben). Ha update után a sub-agentek mégis lent vannak, az NEM a stop.sh miatt van, vizsgáld külön; helyreállítás egyenként: POST /api/agents/<name>/start (Bearer token) + tmux has-session -t agent-<name> ellenőrzés.

Show full SKILL.md (94 more words)Show less

Ellenőrzés

  • Minden PR után: gh pr view <N> --json state,mergedAt -> MERGED vagy CLOSED
  • Végén: gh pr list --limit 10 -> a listán ne legyen a mergelendő PR-ok egyike
  • Végén: npm run typecheck && npx vitest run a friss main-en -> minden zöld
  • Végén: git log --oneline -10 -> minden PR commitja ott van a main-en

Példa

Ha a user azt írja: "8 PR van, menj sorban, review és merge", és 3 egymás után konfliktál (mert mindegyik src/web.ts-t szerkeszti), az idő-becslés ~3-5 perc PR-onként konfliktussal, ~30 mp PR-onként clean merge-nél. Küldj progress update-et 50%-nál, hogy a user tudja haladsz.

© Szotasz, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in seed-skills/github-pr-rebase-merge of Szotasz/marveen.

Open the folder on GitHubat commit 6f2d261

Compare with similar skills

GitHub PR Rebase Merge next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GitHub PR Rebase Merge compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitHub PR Rebase Merge this skillSzotasz/marveen117—~1.8kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Release Bumpjamiepine/voicebox57k—~1.1kAutomated safety check: PassMIT
Creating Description For Gh PRredis/jedis12k—~838Automated safety check: PassMIT
Create Pull Request with Work Item IDmakeplane/plane61k—~824Automated safety check: PassAGPL-3.0

Similar skills

  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Release Bump

    jamiepine/voicebox

    Ends a release cycle by moving the Unreleased changelog notes under a dated version heading, bumping version files with bumpversion and tagging the commit.

    57k GitHub stars~1.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Official

    Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.

    12k GitHub stars~838 tokensUpdated today
    DevelopmentAuto-check passed
  • Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.

    61k GitHub stars~824 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed

More from Szotasz/marveen

All 18 skills in this repo
  • Fleet Helper

    Szotasz/marveen

    Shared, dependency-free Python helpers for the agent fleet - dashboard API (memory, messages, kanban), Telegram MarkdownV2 escaping, and rule-based Mail.app triage.

    117 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Handoff

    Szotasz/marveen

    Generate a HANDOFF.md context transfer document for session continuity.

    117 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check: notes
  • Retrospective

    Szotasz/marveen

    Analyze the current session for improvement opportunities in skills, memory, and workflow.

    117 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • A Marveen Bridge és a "Szolgáltatás-lapok" ajánlása és elmagyarázása a gazdának.

    117 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check: warnings
  • Skill Factory

    Szotasz/marveen

    Turn any workflow, conversation, or demonstrated process into a reusable SKILL.md.

    117 GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Skill Management

    Szotasz/marveen

    List, inspect, patch, or delete skills from ~/.claude/skills/.

    117 GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed

Works with

Questions about GitHub PR Rebase Merge

What does GitHub PR Rebase Merge do?

Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts. GitHub PR Rebase Merge is an agent skill from Szotasz/marveen. Merge a stack of GitHub PRs sequentially when they share files and will cause cascading conflicts.

When should I use GitHub PR Rebase Merge?

GitHub PR Rebase Merge fits situations like: user says merge the PRs sorban; the PRs come from external forks (cannot push back to PR branch).

How do I install GitHub PR Rebase Merge in Claude Code?

Run `npx skills add Szotasz/marveen --skill github-pr-rebase-merge -a claude-code`. Or copy the skill folder (seed-skills/github-pr-rebase-merge in Szotasz/marveen) into .claude/skills/github-pr-rebase-merge in your project. Claude Code loads it when a task matches its description.

How do I install GitHub PR Rebase Merge in Codex?

Run `npx skills add Szotasz/marveen --skill github-pr-rebase-merge -a codex`. Or copy the skill folder (seed-skills/github-pr-rebase-merge in Szotasz/marveen) into .agents/skills/github-pr-rebase-merge in your project. Codex loads it when a task matches its description.

Can I use GitHub PR Rebase Merge in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Szotasz/marveen --skill github-pr-rebase-merge -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/github-pr-rebase-merge, .gemini/skills/github-pr-rebase-merge, .github/skills/github-pr-rebase-merge and .opencode/skills/github-pr-rebase-merge in your project.

What does GitHub PR Rebase Merge need to run?

Going by SKILL.md and its folder, GitHub PR Rebase Merge needs the command-line tools its instructions call (git, gh, npm and npx). Our summary lists: Node.js.

Does GitHub PR Rebase Merge access the network?

SKILL.md contains no URLs. Its commands use git, gh, npm and npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is GitHub PR Rebase Merge safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GitHub PR Rebase Merge use?

GitHub PR Rebase Merge is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GitHub PR Rebase Merge use?

About 1.8k tokens (SKILL.md is roughly 7.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GitHub PR Rebase Merge?

Skills that share tags, products or a category with GitHub PR Rebase Merge: Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars), Release Bump (jamiepine/voicebox, 57k stars) and Creating Description For Gh PR (redis/jedis, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitHub PR Rebase Merge?

Szotasz (a GitHub user) maintains it in Szotasz/marveen, which has 117 GitHub stars. The repository holds 18 skills in this directory. The repository was last updated on October 8, 2026.

Source: Szotasz/marveen on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.