基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/natolambert/rlhf-book --skill push-to-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| 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:
Plan, run, and report a small RLHF Book code experiment.
Turn the first page of a paper (arXiv or any PDF) into a slide-ready PNG for a colloquium deck's 30-40% right column. Use when a slide cites a landmark paper and a screenshot of the paper itself is the best visual.
Extract per-question (MM:SS) timestamps from a recorded course video by OCR-ing the slide counter, then add YouTube deep links to the course page's Q&A question lists. Use after a Q&A or lecture recording is published, or when adding/refreshing "Show questions" timestamp links in book/templates/course.html.