create-pr

v2026.09.05

Create a GitHub pull request for the current branch with a conventional-commit title and this repo's PR body template (What changed / Why / User impact / Validation). Use whenever the user asks to open, create, submit, or send a PR, or to "push this up for review" — including right after finishing a feature or fix, even if they don't say "pull request" explicitly.

GitHub
安装命令
npx skhub add anxndsgn/create-pr
Markdown
SKILL.md

Create PR

Open a pull request against main using gh, matching the style of this repo's recent PRs. Look at gh pr list --state merged --limit 5 if you want concrete examples.

Workflow

  1. Get off main if needed. If the work sits on main, create a branch named type/kebab-topic (e.g. feat/email-sign-in) and move the commits there.
  2. Commit the requested work using the conventional-commit skill's rules: type(scope): summary, one commit per logical change. Preserve unrelated local changes, including any already staged, outside these commits.
  3. Review the full branch diff — git log and git diff main...HEAD — so the body describes everything the PR contains, not just the last commit.
  4. Run validation before pushing: the checks this repo declares (CLAUDE.md, package scripts, CI config). If /spec-verify already produced evidence for this work and the evidence still applies to the final changes, cite it instead of re-running the same checks. Diagnose failures, fix those within the authorized scope, and rerun affected checks. Commit any resulting fixes and update the PR description before pushing. If a failure remains because it needs unavailable access, an external change, or work outside that scope, report the blocker and completed validation, and stop before pushing or opening the PR. Report real results in the body.
  5. Push with git push -u origin <branch>.
  6. Create the PR with gh pr create, passing the body via a heredoc or --body-file so markdown survives intact.

Title

Conventional-commit style, matching the branch's main commit: feat(auth): add email sign-in. Omit the scope when the change spans the whole package (feat: implement skill enablement).

Body template

## What changed

- bullet list of the concrete changes, grouped by concern

## Why

One or two short paragraphs: the problem before this change, and how this
change resolves it. If the PR implements a spec, link it here — e.g.
"Implements [`docs/spec/<name>.md`](link)" — and the ADR if one exists.

## User impact

- what users/teams can now do (omit this section for pure refactors)

## Validation

- one bullet per check run, with its real result (e.g. `<test command>` — <N> passed)
- or cite the `/spec-verify` report when one covers this work

Keep the body honest and concrete: bullets describe what actually changed, "Why" explains intent rather than restating the diff, and the Validation numbers come from runs you actually performed. For refactor-only PRs, replace "User impact" with a note that there are no behavior changes. Don't pad — a small PR deserves a short body.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.05

发布时间

Sep 5, 2026

分类

未分类

许可证

Apache-2.0

源路径

create-pr

默认分支

main

最新提交

9fb45e5

Tree SHA

f8ee574