From ship
Analyzes branch changes, generates a PR title and body, refines the body via prose review, and creates the pull request. Supports an optional issue reference as context.
How this command is triggered — by the user, by Claude, or both
Slash command
/ship:SKILL [issue reference or context]opuspr/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /pr - Pull Request Creator
Analyze branch changes, generate the title and body, refine the body via prose review, and create the PR.
## Input
`$ARGUMENTS` is an Issue reference or context (optional, e.g. `#456`). If empty, generate from the current branch only.
## Language
Read `language` from `${CLAUDE_SKILL_DIR}/../../settings.json` and translate the PR body into that language. If unset, default to English. Keep technical terms, code, and identifiers untranslated.
## Execution
If there are no commits, the directory is not a git repository, or gh auth fails, report the error and a...Analyze branch changes, generate the title and body, refine the body via prose review, and create the PR.
$ARGUMENTS is an Issue reference or context (optional, e.g. #456). If empty, generate from the current branch only.
Read language from ${CLAUDE_SKILL_DIR}/../../settings.json and translate the PR body into that language. If unset, default to English. Keep technical terms, code, and identifiers untranslated.
If there are no commits, the directory is not a git repository, or gh auth fails, report the error and abort.
${CLAUDE_SKILL_DIR}/references/prose-review.md plus the empty-phrase file matching the body language (${CLAUDE_SKILL_DIR}/references/phrases.ja.md for Japanese, ${CLAUDE_SKILL_DIR}/references/phrases.en.md for English)use-workflow-pageshot via Skill with the PR body (§ Pageshot Integration)gh pr create --title "..." --body "...". Pass the body as a direct string and avoid heredoc (<<EOF) due to the sandbox restriction| Category | Source |
|---|---|
| Changes | git diff <base>...HEAD |
| Commits | git log <base>..HEAD |
| Files | git diff --name-status <base>...HEAD |
BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@')
BASE=${BASE:-main}
Read the diff from § Analysis Sources to judge visual impact. Logic / type / test / docs-only changes are not UI changes, so skip Pageshot Integration. Pageshot's rendering is the final judge, so when frontend signals are present and the impact is ambiguous, lean toward a UI change. A change affecting visual output through any of the following counts as a UI change.
tailwind.configfeat:, fix:, etc.); strip it from the Issue title if present${CLAUDE_SKILL_DIR}/templates/pr.md.github/pull_request_template.md > pull_request_template.md > docs/pull_request_template.md > a PULL_REQUEST_TEMPLATE/ directorygh pr create --body does not auto-apply the template, so read the skeleton and fold it into the bodyPreview URL: line and a ## How to Test section (§ Pageshot Integration)Aggregate Design Decisions across the whole PR, not per-commit, detecting from the diff and log in § Analysis Sources. Record a decision when any signal below is present; omit the section when the work is routine implementation with no explicit tradeoff.
Call Skill("use-workflow-pageshot") with the current PR body string as input. The body must contain a Preview URL: <URL> line near the top and a ## How to Test section as a numbered list. The skill returns a single mode line on stdout.
mode=screenshot artifact=<path> / mode=video artifact=<path> display the path and advise dragging it into the PR description or first comment on GitHubmode=failed report missing items, skip pageshot, and continue PR creationAfter approval (§ Execution step 8), push the current branch with git push -u origin HEAD.
Preview shows title, base branch, current branch, summary bullets, and changes table. On success, display Created PR: #<number> <title> <PR URL>.
npx claudepluginhub thkt/dotclaude --plugin ship/prp-prCreates GitHub PR from current branch with unpushed commits. Discovers templates, analyzes changes/files, pushes branch, fills body. Optional base-branch (default: main).
/create-prCreates a GitHub pull request for the current feature branch. Analyzes commits to generate structured title and description, pushes branch if needed, supports title override and issue linking via arguments.
/prp-prCreates a GitHub pull request from current branch's unpushed commits to specified or auto-detected base branch, validating prerequisites and using repo PR templates.
/prp-prCreates a GitHub PR from the current branch by discovering templates, analyzing commits and file changes, pushing the branch, and creating the PR with optional draft flag.
/create-prCreates a GitHub pull request from the current branch using the repo's PR template or default format, generates conventional commit title from changes, fills body from commits and diff, links issues, pushes branch if needed.
/SKILLCreates a conventional git commit using git-agent with intent from conversation, optionally co-authored by Claude model from argument.