一键导入
create-pr
Create a GitHub pull request with structured body, visual preview from screenshots, and test instructions derived from project context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a GitHub pull request with structured body, visual preview from screenshots, and test instructions derived from project context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | create-pr |
| description | Create a GitHub pull request with structured body, visual preview from screenshots, and test instructions derived from project context |
| author | chalk |
| version | 1.0.0 |
| metadata-version | 3 |
| allowed-tools | Bash, Read, Glob, Grep |
| argument-hint | [optional: PR description or target branch] |
| read-only | false |
| destructive | false |
| idempotent | false |
| open-world | true |
| user-invocable | true |
| tags | git, pr, automation |
Create a GitHub pull request from the current branch using gh CLI. Reads chalk.json for project context to generate better test instructions and embeds visual artifacts if available.
Check prerequisites — Run git status to verify:
main/master (if so, warn and suggest creating a branch)/commit first)Analyze changes — Run git log main..HEAD --oneline and git diff main...HEAD --stat to understand all changes.
Read project context — Read .chalk/chalk.json if it exists:
test.command — for test plan instructionsdev.command — for setup instructionsroutes — to identify affected pagesproject.framework — for framework-specific review notesDetermine base branch — Default to main. If the user specifies a different target, use that.
Push the branch — Run git push -u origin <branch> if not already pushed.
Create the PR — Use gh pr create with:
Report — Show the user the PR URL.
## Summary
<1-3 bullet points describing what changed and why>
## Changes
<Bulleted list of specific changes, grouped by area>
## Test plan
<How to verify — include actual commands from chalk.json if available>
<e.g., "1. Run `npm run dev` 2. Navigate to /dashboard 3. Verify...">
🤖 Generated with [Claude Code](https://claude.com/claude-code)
After generating the body, check if .github/pr-screenshots/ exists and contains .png or .gif files. If it does, append a ## Visual Preview section before the footer:
## Visual Preview
### <Page Name>


If no screenshots exist and the branch has UI changes (changes to components, pages, styles, templates), suggest running /capture-pr-visuals first.
Match the conventional commit style of the primary change:
feat(scope): description for feature branchesfix(scope): description for bug fix branchesmain without user confirmation if there are destructive changesgh pr create (not the GitHub web UI)gh is not authenticated, tell the user to run gh auth loginchalk.json when available (e.g., real test.command, real dev.command)Pins and manages per-project Flutter SDK versions with FVM (Flutter Version Management). Use when the project has or needs a .fvmrc or .fvm/ directory, when contributors need a reproducible Flutter SDK, when installing FVM, pinning or switching the Flutter version, wiring FVM into VS Code or Android Studio, configuring CI to honor .fvmrc, or troubleshooting "wrong Flutter version" symptoms.
End-to-end review pipeline — creates a handoff, generates a review (self-review or paste-ready for another provider), then offers to fix findings. Use when you want to review your changes before pushing.
Build a competitive positioning matrix and strategy canvas when the user asks to analyze competitors, compare products, or assess competitive landscape
Audit project dependencies for risk when the user asks to check dependencies, audit packages, review dependency health, check for vulnerabilities, or assess supply chain risk
Analyze product metrics and identify trends when the user asks to review metrics, analyze KPIs, or assess product health
Audit a feature for WCAG 2.1 AA compliance using POUR principles when the user asks to check accessibility, audit a11y, or verify WCAG compliance