一键导入
push-to-pr
Create a new PR or push commits to an existing PR for the current branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a new PR or push commits to an existing PR for the current branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Start or verify live preview for RLHF Book course lecture slides without breaking relative image assets. Use when serving, opening, checking, or debugging `teach/course/lec*.md` slides.
Plan, run, and report a small RLHF Book code experiment.
Validate changes before PR submission
Get feedback from Gemini API on a diagram image for textbook quality review.
Update the body of a GitHub pull request. Use when the user asks to update, edit, or modify a PR description/body.
基于 SOC 职业分类
| name | push-to-pr |
| description | Create a new PR or push commits to an existing PR for the current branch. |
| allowed-tools | Bash(git:*), Bash(gh:*) |
Create a new PR or push commits to an existing PR for the current branch.
/push-to-pr [commit message]
When this command is invoked:
# Get current branch
git branch --show-current
# Check if there are uncommitted changes
git status --porcelain
# Check if branch has a remote tracking branch
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null
# Check if there's an existing PR for this branch
gh pr list --head $(git branch --show-current) --json number,url,title
git add -Agit commit -m "$(cat <<'EOF'
<commit message>
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
git push -u origin $(git branch --show-current)gh pr create --title "<title based on branch/changes>" --body "$(cat <<'EOF'
## Summary
<brief summary of changes>
## Changes
<bullet points of what changed>
🤖 Generated with [Claude Code](https://claude.ai/code)
EOF
)"
git push/push-to-pr "Add tool use diagram to chapter 14.5"
This will either: