Skip to main content

pr-cleanup-replay

Recipe for cleaning up an already-polluted PR — one whose branch was created from the wrong base (or merged another PR's full history) and now carries unrelated commits. Produces a fresh branch from origin/main, cherry-picks only the load-bearing diff, and force-pushes the clean replay in place (same PR number) OR opens a new PR when in-place is unsafe. v1.7.0 — Phase -0.5 writable-remote base selection: branching from origin/main (read-only upstream) and pushing to fork (writable, 6000+ commits ahead) creates a 600k-line polluted PR. Recipe: verify `gh api .../permissions.push` per remote, base on the writable remote's main, port upstream patches to the fork's refactored code. Verified jleechanorg/hermes-agent PR #3 polluted → PR #4 clean. Triggered by SOUL.md `## COMMIT: pr-clean-branch-from-main-no-history-bloat`.

Zur Installation springen

Quellinformationen

Repository
jleechanorg/claude-commands
Letzte Quellaktivität
2. August 2026 um 01:06
Erkannte Sprache von SKILL.md
Englisch
Sterne
3
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.