一键导入
github-pr
Review, create, and manage GitHub PRs using the gh CLI. View diffs, checks, comments, and create PRs with proper formatting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Review, create, and manage GitHub PRs using the gh CLI. View diffs, checks, comments, and create PRs with proper formatting.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold new Next.js API endpoints with authentication, rate limiting, and tests. Use when creating new API routes, adding endpoints, or building API features.
Investigate, fix, and verify multiple bugs or issues across web and mobile.
Interactive setup wizard for customizing this template into your own project. Renames packages, configures mobile bundle IDs, sets up branding, checks ports, and generates environment secrets.
Implement a plan with phased execution, parallel agents, and verification.
Validate recent UI changes across web and mobile. Test affected features for correct behavior.
Conduct a comprehensive UI/UX audit of the entire app. Navigate all pages, identify visual issues and inconsistencies.
| name | github-pr |
| description | Review, create, and manage GitHub PRs using the gh CLI. View diffs, checks, comments, and create PRs with proper formatting. |
| triggers | ["/github-pr","When reviewing pull requests","When creating pull requests","When checking PR status or CI checks"] |
| allowed-tools | ["Bash","Read","Grep","Glob","Edit","Write"] |
Use the gh CLI for all GitHub PR operations. This avoids MCP overhead while providing full PR workflow support.
# View PR details
gh pr view <number>
# View PR diff
gh pr diff <number>
# View PR checks/CI status
gh pr checks <number>
# View PR review comments
gh pr view <number> --comments
# Checkout PR locally for testing
gh pr checkout <number>
# Create with title and body
gh pr create --title "Title" --body "$(cat <<'EOF'
## Summary
- Change description
## Test plan
- [ ] Test steps
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
# Create as draft
gh pr create --draft --title "WIP: Title" --body "Description"
# List open PRs
gh pr list
# Merge a PR
gh pr merge <number> --squash
# Close a PR
gh pr close <number>
# Add reviewers
gh pr edit <number> --add-reviewer username
# View PR as JSON for programmatic access
gh pr view <number> --json title,body,state,reviews,checks
# View all checks for current branch
gh pr checks
# View specific run details
gh run view <run-id>
# View run logs
gh run view <run-id> --log-failed
--json flag when you need structured data for analysisgh pr diff to review changes before approvinggh pr checks before merging to ensure CI passes