pr

📁 luisurrutia/skills 📅 Feb 9, 2026
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

  1. 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)
  2. Analyze – Review all commits and changes
  3. Generate – PR title and description
    • Follow .github/PULL_REQUEST_TEMPLATE.md if exists
  4. 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
  5. Execute – Push if needed, then gh pr create (add --draft if requested)
  6. Handle failures – If push/PR creation fails:
    • gh not authenticated? → Run gh 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