pr
3
总安装量
3
周安装量
#59366
全站排名
安装命令
npx skills add https://github.com/luisurrutia/skills --skill pr
Agent 安装分布
amp
3
claude-code
3
github-copilot
3
codex
3
kimi-cli
3
gemini-cli
3
Skill 文档
Context
- Branch: !
git branch --show-current - Remote status: !
git status -sb - Commits: !
git log origin/HEAD..HEAD --oneline 2>/dev/null - Diff: !
git diff origin/HEAD...HEAD -- . ':!*.svg' ':!*lock.json' ':!*lock.yaml' ':!*.lockb' ':!*.lock' ':!.opencode' ':!.claude' ':!.cursor' ':!*.png' ':!*.jpg' ':!*.jpeg' ':!*.gif' ':!*.ico' ':!*.webp' ':!*.avif' ':!*.bmp' ':!*.tiff' ':!*.psd' ':!*.ai' ':!*.eps' ':!*.raw' ':!*.woff' ':!*.woff2' ':!*.ttf' ':!*.eot' ':!*.otf' ':!*.mp3' ':!*.mp4' ':!*.wav' ':!*.ogg' ':!*.webm' ':!*.mov' ':!*.pdf' ':!*.doc' ':!*.docx' ':!*.xls' ':!*.xlsx' ':!*.ppt' ':!*.pptx' ':!*.zip' ':!*.tar.gz' ':!*.gz' ':!*.rar' ':!*.7z' ':!*.bin' ':!*.exe' ':!*.dll' ':!*.so' ':!*.dylib' ':!*.db' ':!*.sqlite' ':!*.sqlite3' ':!*.map' ':!*.js.map' ':!*.css.map' ':!*.min.js' ':!*.min.css' ':!*.bundle.js' ':!*.class' ':!*.jar' ':!*.war' ':!*.pyc' ':!*.pyo' ':!*.whl' ':!*.pem' ':!*.key' ':!*.crt' ':!*.p12' ':!*.parquet' ':!*.pickle' ':!*.npy' ':!*.sketch' ':!*.fig' ':!*.xd' 2>/dev/null
Steps
- Check state:
- PR already exists? â Show URL and ask: update existing or create new?
- On default branch (main/master)? â Warn and stop (PRs should be from feature branches)
- Not pushed? â Will need to push first
- Behind remote? â Will need to rebase first (warn: requires force-push after rebase)
- Analyze – Review all commits and changes
- Generate – PR title and description
- Follow
.github/PULL_REQUEST_TEMPLATE.mdif exists
- Follow
- Single confirmation – Ask ALL relevant questions at once:
- Need to push? â “Push branch to origin?”
- Need to rebase? â “Rebase on [default branch] first?” (note: will require force-push)
- Show PR title/description â “Approve?” / “Edit?”
- “Create as draft?” â Yes/No
- “Add reviewers/labels?” â Optional, list if requested
- “Different base branch?” â Default is detected default branch
- Execute – Push if needed, then
gh pr create(add--draftif requested) - Handle failures – If push/PR creation fails:
ghnot authenticated? â Rungh auth login- Push rejected? â Check permissions, branch protection rules
- PR creation failed? â Report error, check for required fields
Notes
- Follow PR template strictly if exists
- Complete all required sections
- Return the PR URL when done