con un clic
create-github-pr
Use whenever asked to create GitHub Pull Request.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Use whenever asked to create GitHub Pull Request.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Use when starting feature work that needs isolation from current workspace, before executing implementation plans, or when reviewing an existing branch (e.g. a PR) without switching away from the current branch. It creates isolated git worktrees under `.worktrees/`.
Use this skill when working on terminal UI rendering, interactive CLI prompts, ANSI color output, terminal screenshots, Bubble Tea/Lip Gloss/Huh/Glamour, curses-style apps, or CLI tests that depend on TTY behavior.
Use this skill when you're working with golang code.
Use when writing, rewriting, or updating a pull request description. Use this skill's explicit PR template unless the user provides a different template for the current task, keep the result concise and human-readable, explain why the change exists, and ask the user for motivation before updating the PR when the user has not explicitly provided it.
Use this skill whenever writing, editing, reviewing, or deciding whether to add code comments, docstrings, inline comments, or internal function documentation in any programming language. Use it even when the task only mentions "comments", "docs in code", "docstrings", "document this function", or "explain this helper".
Use this skill whenever you need to write or rewrite technical documentation: README sections, runbooks, design notes, API docs, onboarding docs, troubleshooting guides, or other prose documentation outside source code. Use it when the documentation must be both technically correct and easy to read, especially if the draft is becoming vague, academic, or hard to scan.
| name | create-github-pr |
| description | Use whenever asked to create GitHub Pull Request. |
| allowed-tools | Bash(*scripts/get-pr-info.sh) Bash(gh pr create*) Bash(git checkout*) Bash(git push*) Bash(git switch*) |
| compatibility | Requires gh CLI and git |
Create GitHub Pull Requests with comprehensive analysis and interactive confirmation.
Analyzes all commits in the branch, generates the PR title,
uses the pr-description skill for the PR body,
and creates the PR using gh CLI.
Gather all PR information using the helper script.
scripts/get-pr-info.sh
Read the JSON output directly from the tool result.
Decision logic:
on_main == true: Analyze changes, recommend branch name, create branch (see below)existing_pr_number != null: PR already exists, show error and exituncommitted == true: Warn user and suggest committing firstupstream_status == "behind": Suggest pulling firsthas_upstream == false: Will need to push with -u flagCreating a new branch from main/master:
short-summary-with-dashes
add-user-authentication, fix-login-bug, update-docker-configAskUserQuestion:
["recommended-name" (Recommended)]git checkout -b "$branch_name"
Understand the FULL scope of changes that will be in the PR. The output from Step 1 already contains commits and stats.
git diff origin/<base_branch>...HEAD
Display to user: current branch, base branch, commit count, list of commits, files changed, and insertions/deletions — all from the Step 1 output.
Critical: Analyze ALL commits in the branch to understand the full context.
The script provides commit hashes and messages - use git show for detailed inspection if needed.
Based on ALL the commits and changes,
generate a concise title here
and use the pr-description skill to draft the body.
Before applying the default title format,
check whether the repository enforces PR title rules.
Look for title validation in project docs and automation,
especially .github/workflows/, .github/actions/, Dangerfile,
commitlint configuration, merge queue/merge rules,
or actions such as semantic-pull-request, validate-pr-title,
and pull-request-title.
If a project-specific PR title policy exists, follow that policy exactly and mention it in the preview. The local policy overrides the default format below. If a title check exists but the expected format is not clear, stop and ask for clarification instead of guessing.
Use this default only when no project-specific PR title policy exists.
Follow this format: <type>: <description>
feat)| Type | Purpose |
|---|---|
feat | New feature |
fix | Bug fix |
docs | Documentation only |
style | Formatting/style (no logic) |
refactor | Code refactor (no feature/fix) |
perf | Performance improvement |
test | Add/update tests |
build | Build system/dependencies |
ci | CI/config changes |
chore | Maintenance/misc |
revert | Revert commit |
Load the pr-description skill for the PR body.
Pass it the complete context from Step 1 and Step 2,
including the branch diff, commits, any linked issue,
and the pr_template value if one exists.
The pr-description skill owns:
Do not bypass that skill by inventing a body here.
If pr-description requires user motivation,
ask the user and stop until they provide it.
Present the generated PR metadata clearly to the user:
Generated PR:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Title: [PR title]
Body:
[Generated by `pr-description`]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Branch: [current-branch] → [base-branch]
Commits: [N commits]
Then ask using AskUserQuestion:
Handle responses:
Push the branch if needed, then create the PR using gh CLI.
Use the upstream info from Step 1.
Push if needed (use has_upstream / upstream_status from Step 1 to decide), then create the PR:
git push -u origin <branch> # new branch
# or
git push # existing upstream
gh pr create --title "<title>" --body "<body>"
Show the PR URL with gh pr view --json url --jq .url.
If changes are work-in-progress, offer to create as draft:
gh pr create --draft --title "..." --body "..."
pr-description instead of hand-rolling PR copy hereThe script already checks for existing PRs.
If existing_pr_number is non-null in the Step 1 output,
inform the user and stop.
If uncommitted == true from Step 1, warn user:
⚠️ Warning: You have uncommitted changes.
It's recommended to commit these before creating a PR.
Would you like to:
1. Commit changes first (recommended)
2. Create PR anyway (changes won't be included)
3. Cancel
If detached HEAD or other issue:
Error: Not on a branch. Create a branch first:
git checkout -b feature/my-feature
User: "create a PR" or "create pull request"
→ Checks branch state
→ Analyzes all commits
→ Generates title/body
→ Shows preview
→ Asks: Confirm/Regenerate/Edit/Cancel
→ Creates PR on confirmation
User: "create PR to develop branch"
→ Uses 'develop' as base instead of main
→ Continues with workflow
User: "create draft PR"
→ Follows normal workflow
→ Creates as draft PR (--draft flag)