skills/pr/SKILL.md
Create, update, and review GitHub PRs. Commands: create [-v] [--draft], update [-v], review <number|url>. Generates structured PR bodies with conditional sections (Testing, Deployment, Screenshots). Requires gh CLI.
npx skillsauth add johnie/skills prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
create - Create a new PR with structured templatecreate -v - Show draft PR before creating, ask for confirmationcreate --draft - Create as draft PR (work in progress)update - Update existing PR description after new commitsupdate -v - Show changes before updating, ask for confirmationreview <pr> - Review a PR (number or URL), output analysis to terminalSafety check: Verify current branch is not main/master. Abort if so.
Push branch: If no upstream: git push -u origin HEAD. Otherwise verify up to date.
Gather information:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git log origin/<base>..HEAD --onelinegit diff origin/<base>...HEADGenerate PR content:
references/templates.md
Confirmation (if -v flag):
Execute:
gh pr create --title "Title here" --body "$(cat <<'EOF'
Body here
EOF
)"
Add --draft flag if --draft was specified.
Return: Output the PR URL from gh CLI response.
Get current PR:
gh pr view --json number,title,body,headRefName
Abort if no PR exists for current branch.
Gather information:
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'git log origin/<base>..HEAD --onelinegit diff origin/<base>...HEADParse existing body: Extract each section by header.
Regenerate sections:
Confirmation (if -v flag):
Execute:
gh pr edit <number> --body "$(cat <<'EOF'
Updated body here
EOF
)"
Fetch PR data:
gh pr view <pr> --json title,body,files,commits,additions,deletions
gh pr diff <pr>
Analyze:
Size guidance: <200 lines small, 200-500 medium, 500+ large (suggest splitting)
Output to terminal using the review template from references/templates.md. Categorize each suggestion as: [blocker], [should-fix], or [nit].
Output review to terminal only. Do NOT post as PR comment automatically.
tools
WordPress CLI operations for database management, plugins, themes, users, content, and site configuration. Use for migrations, bulk updates, user audits, content imports, or any wp-cli commands.
tools
Designs complex generic types, refactors `any` to strict alternatives, creates type guards and utility types, resolves TypeScript compiler errors, and explains type-level concepts. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing `any` types, strict typing, type errors, `infer`, `extends`, conditional types, mapped types, template literal types, branded/opaque types, `satisfies`, `unknown`, function overloads, declaration merging, strict mode, or utility types like `Partial`, `Record`, `ReturnType`, `Awaited`, and `NoInfer`.
tools
Build type-safe CLI applications with Stricli. Use when creating TypeScript CLIs with typed flags/positional args, multi-command routing, or automatic help generation. Stricli catches parameter errors at compile time. Use this whenever the user mentions CLI frameworks, command-line tools, argument parsing, or typed commands in TypeScript.
tools
Fetch and analyze GitHub Actions logs via gh CLI. Diagnoses CI failures, detects flaky tests, profiles slow steps, and suggests fixes. Use when CI is broken, builds are failing, or you need to understand workflow run history.