create-pr
创建高质量的拉取请求:分支、集中的更改、代码检查/构建、约定式提交,以及包含验证步骤的清晰PR描述。
📖 中文导读:创建高质量的拉取请求:分支、集中的更改、代码检查/构建、约定式提交,以及包含验证步骤的清晰PR描述。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: create-pr description: "Create a high-quality pull request: branch, focused changes, lint/build, conventional commit, and a clear PR description with validation steps."
Create a PR
Goal
Produce a PR that’s easy to review and safe to merge:
- small, scoped changes
- green checks (lint/tests/build as appropriate)
- clear description + validation steps
Workflow (checklist)
- Confirm scope
- Restate the goal and acceptance criteria.
- Identify files likely to change; avoid unrelated cleanup.
- Create a branch
- Use a descriptive name:
fix/<topic>,feat/<topic>,chore/<topic>.
- Use a descriptive name:
- Implement changes
- Keep diffs focused; prefer small commits.
- Run quality gates
- Run the repo’s standard commands (lint/tests/build).
- If
bun.lockexists, preferbun lint/bun build.
- Commit
- Prefer Conventional Commits:
fix: ...,feat: ...,chore: ....
- Prefer Conventional Commits:
- Push + open PR
- Always use GitHub CLI (
gh) for PR workflows (e.g.gh pr create --fill). - If
ghis not authenticated, rungh auth login(orgh auth statusto check).
- Always use GitHub CLI (
- Fill in PR body
- Use
references/pr-description-template.md.
- Use
Notes
- Don't force-push unless you're sure it's safe for collaborators.
- If the PR changes UX, include screenshots or a short GIF.
- Prefer
ghfor create/view/checks (e.g.gh pr view,gh pr checks).