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`.

跳到安装

来源信息

仓库
jleechanorg/claude-commands
最近来源活动
2026年8月2日 01:06
检测到的 SKILL.md 语言
英语
星标
3
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。