一键导入
create-pr
Create a descriptive GitHub PR with summary and test plan using gh CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a descriptive GitHub PR with summary and test plan using gh CLI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review code changes for best practices, complexity, compatibility, and gaps
Create a conventional commit from staged changes without Co-Authored-By
Review codebase for CLEAN code practices and DRY violations
Implement features following strict coding best practices with docs and tests
Run ruff linting and formatting checks, auto-fix issues
Scan for hardcoded secrets, credentials, tokens, and security vulnerabilities
| name | create-pr |
| description | Create a descriptive GitHub PR with summary and test plan using gh CLI |
| user-invocable | true |
| argument-hint | [base branch, defaults to develop] |
Create a well-structured GitHub Pull Request using the gh CLI.
Determine the base branch:
$ARGUMENTS if provided, otherwise default to develop.Gather context by running:
git log <base>..HEAD --oneline — all commits in this branchgit diff <base>...HEAD --stat — changed files summarygit branch --show-current — current branch namePush the branch if needed: git push -u origin HEAD
Analyze ALL commits (not just the latest) to understand the full scope of changes.
Create the PR using gh pr create:
## Summary
- <1-3 bullet points describing what changed and why>
## Changes
- <key file modifications and their purpose>
## Test plan
- [ ] <specific testing steps relevant to the changes>
Use a HEREDOC to pass the body to ensure correct formatting:
gh pr create --title "..." --body "$(cat <<'EOF'
## Summary
...
EOF
)"
Return the PR URL when done.