用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/taracodlabs/aiden --skill github-pr-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | github-pr-workflow |
| description | Full pull request lifecycle — create, review, merge, and manage PRs using the gh CLI |
| category | developer |
| version | 1.0.0 |
| origin | aiden |
| license | Apache-2.0 |
| tags | github, pull-request, pr, review, merge, gh-cli, code-review, workflow, branch, diff |
Manage the full lifecycle of GitHub pull requests — create, review, approve, request changes, merge, and clean up — using the gh CLI.
# Interactive (opens editor for body)
gh pr create
# Non-interactive with all fields
gh pr create --title "feat: add user authentication" --body "## Summary
- Add JWT-based auth
- Add login/logout endpoints
- Add middleware for protected routes
## Test plan
- [ ] Login with valid credentials
- [ ] Reject invalid credentials
- [ ] Access protected route with token" --base main --draft
gh pr list
gh pr list --state all --limit 20
gh pr list --author "@me"
gh pr list --label "ready for review"
# View PR summary
gh pr view 15
# View with comments
gh pr view 15 --comments
# Show diff
gh pr diff 15
gh pr checks 15
gh pr status # shows PRs relevant to you (authored, assigned, review requested)
# Approve
gh pr review 15 --approve --body "LGTM! Clean implementation."
# Request changes
gh pr review 15 --request-changes --body "Please add unit tests for the auth middleware."
# Leave a general comment
gh pr review 15 --comment --body "Looks mostly good — just one question inline."
# Squash merge (recommended for feature branches)
gh pr merge 15 --squash --delete-branch
# Merge commit (preserves all commits)
gh pr merge 15 --merge
# Rebase merge
gh pr merge 15 --rebase --delete-branch
# Checkout a PR branch for local testing
gh pr checkout 15
# Return to main when done
git checkout main
# Mark draft as ready for review
gh pr ready 15
# Add reviewer
gh pr edit 15 --add-reviewer alice,bob
# Add label
gh pr edit 15 --add-label "ready for review"
gh pr close 15 --comment "Closing in favour of PR #16 which takes a different approach."
"Create a PR from my current branch to main" → Use step 1 — fill in title and body describing the changes and test plan.
"Show me what CI checks are failing on PR 15"
→ Use step 4: gh pr checks 15 to see check names, status, and links to logs.
"Approve PR 22 and merge it with squash"
→ Use step 5 to approve, then step 6 with --squash --delete-branch.
gh pr checks) before merging — do not merge PRs with failing required checks--delete-branch removes the remote branch after merge — confirm this is desiredgh pr merge requires merge permissions — the user needs write access to the repo