用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill pr-workflow-manager命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pr-workflow-manager |
| description | Best practices and automation helpers for creating and maintaining high-quality pull requests |
| type | usage |
| scope | project |
Provide Claude with best practices for creating and managing pull requests with proper upstream tracking, ensuring consistent PR workflows and preventing common git configuration issues.
| Scenario | Command |
|---|---|
| Create PR with upstream | gh pr create && git branch --set-upstream-to=origin/$(git branch --show-current) |
| Set upstream for existing PR | git branch --set-upstream-to=origin/$(git branch --show-current) |
| Check upstream status | git branch -vv |
| Create PR from issue | gh issue develop <number> --checkout && git push -u origin HEAD |
| View PR status | gh pr view |
| List all PRs | gh pr list |
Use the bundled script for complete PR creation with all best practices:
skills/pr_workflow_manager/scripts/create_pr_with_upstream.sh [--title "PR Title"] [--body "PR Description"]
The script:
-u flag)gh pr creategit push -u origin HEAD && gh pr creategit branch --set-upstream-to=origin/$(git branch --show-current)git push (upstream already set)gh pr view or gh pr checksgh issue develop <number> --checkout && git push -u origin HEAD && gh pr creategit push -u origin HEAD OR manually set with git branch --set-upstream-to=origin/BRANCH_NAME-u on first push: Prevents "no tracking information" errorsgit branch -vv to verify tracking is configuredgit push and git pull work without argumentsgh pr commands work correctlygit push --force-with-lease safetySolution: git branch --set-upstream-to=origin/$(git branch --show-current)
Solution: Run upstream setup command above, then git branch -vv to verify
Solution: gh pr edit --base new-base-branch
Solution: git rebase -i HEAD~N (where N is number of commits), then git push --force-with-lease
Include in every PR description:
This skill integrates with:
/pr command - Complete PR workflow automation/push command - Branch pushing with PR creation/pushl command - Push with automatic labelingCRITICAL: Always verify the correct PR remote branch before working on merge conflicts or PR operations.
gh pr view <number> --json headRefNamegit log --oneline --all --grep="<PR-number>"git fetch origin <actual-branch-name>git reset --hard origin/<actual-branch-name>git log --oneline -5# WRONG - Don't guess
git fetch origin pull/3096/head:pr-3096
# CORRECT - Verify first
gh pr view 3096 --json headRefName # Returns actual branch name
git fetch origin claude/byok-settings-feature-0WgQP
git reset --hard origin/claude/byok-settings-feature-0WgQP
Root Cause Prevention: Multiple branches may exist with similar names. Always verify from PR metadata.
git branch -vv output