From claude-resources
Recreates GitHub pull requests with clean multi-commit history by squashing messy try-and-error commits onto a new versioned branch from the original base. Use for accumulated review feedback or fresh starts.
npx claudepluginhub takazudo/claude-resources[PR_URL]This skill uses the workspace's default tool permissions.
Recreate a PR with a clean history when it has too many try-and-error commits or review comments.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
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>