From pr-workflow
Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pr-workflow:prepare-prThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Prepare the PR head branch for merge after `/review-pr`.
Prepare the PR head branch for merge after /review-pr.
.local/pr-meta.env if present in the PR worktree.main.--force-with-lease against known head SHA.git clean -fdx.${CLAUDE_PLUGIN_ROOT}/scripts/pr-prepare init <PR>
.local/review.json is mandatory.BLOCKER and IMPORTANT items.Commit scoped changes with concise subjects (no PR number/thanks; those belong on the final merge/squash commit).
Run gates via wrapper.
Push via wrapper (includes pre-push remote verification, one automatic lease-retry path, and post-push API propagation retry).
Optional one-shot path:
${CLAUDE_PLUGIN_ROOT}/scripts/pr-prepare run <PR>
${CLAUDE_PLUGIN_ROOT}/scripts/pr-prepare init <PR>
ls -la .local/review.md .local/review.json .local/pr-meta.env .local/prep-context.env
jq . .local/review.json >/dev/null
List required items:
jq -r '.findings[] | select(.severity=="BLOCKER" or .severity=="IMPORTANT") | "- [\(.severity)] \(.id): \(.title) => \(.fix)"' .local/review.json
Fix all required findings. Keep scope tight.
jq -r '.changelog' .local/review.json
jq -r '.docs' .local/review.json
Use concise, action-oriented subject lines without PR numbers/thanks. The final merge/squash commit is the only place we include PR numbers and contributor thanks.
Use explicit file list:
${CLAUDE_PLUGIN_ROOT}/scripts/committer "fix: <summary>" <file1> <file2> ...
${CLAUDE_PLUGIN_ROOT}/scripts/pr-prepare gates <PR>
${CLAUDE_PLUGIN_ROOT}/scripts/pr-prepare push <PR>
This push step includes:
.local/prep.env generation.ls -la .local/prep.md .local/prep.env
PR is ready for /merge-pr.gh pr merge in this skill.npx claudepluginhub nikolasp98/minion_plugins --plugin pr-workflowPrepares PRs by validating tests, analyzing git history, and generating structured PR bodies. Useful when contributing to external repositories.
Autonomously resolves PR merge blockers: conflicts, CI failures, review comments; syncs description and requests re-review. For unattended cron execution via loop skill.
Commits changes, pushes to a feature branch, and creates a PR for review. Handles branch detection, rebasing, and conventional commits.