From claude-resources
Recreates a GitHub PR with clean commit history when messy try-and-error commits have accumulated, using squash merge and creating multiple meaningful commits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-resources:pr-recreate [PR_URL][PR_URL]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Recreate a PR with a clean history when it has too many try-and-error commits or review comments.
Recreate a PR with a clean history when it has too many try-and-error commits or review comments.
IMPORTANT: This command ALWAYS uses squash merge to discard try-and-error history and create clean, meaningful commits. Never use cherry-pick.
/pr-recreate - Recreate PR for current branch/pr-recreate <PR_URL> - Recreate PR from specified URLgh pr view <URL>gh pr list --head <current-branch>Extract:
gh pr view --json baseRefName)CRITICAL: ALWAYS use the exact base branch from the original PR - NEVER default to main or develop
Check for existing versioned branches and generate next available version:
implement-foo-bar -> implement-foo-bar-v2 (or -v3 if -v2 exists)git fetch origin
git checkout -b <new-branch> origin/<base-branch>
git merge --squash origin/<old-branch>
CRITICAL: ALWAYS create MULTIPLE meaningful commits - NEVER just one commit
git diff --cachedCRITICAL - NO COMMIT ALTERATION:
git commit --amendgit rebasegit push -u origin <new-branch>
Use the EXACT base branch from step 2. Include:
[outdated] prefix to title<old-branch> -> <new-branch>npx claudepluginhub takazudo/claude-resources --plugin claude-resourcesSplits a multi-feature pull request into smaller focused PRs using squash merges. Useful when a PR contains multiple independent features.
Creates GitHub Pull Requests using GitHub CLI: detects existing PRs for branches, pushes changes, generates titles/bodies from commits. Handles monorepos/submodules. Use for /create-pr or PR/review requests.
Creates or updates a GitHub PR or GitLab MR using Conventional PR format with intent, summary, changes, rationale, and test plan. Detects workspace, branch, and default branch automatically.