基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/natolambert/rlhf-book --skill pre-submit-pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | pre-submit-pr |
| description | Validate changes before PR submission |
Validate changes before submitting a pull request.
/pre-submit-pr
Lint & format (for changes under code/):
cd "$(git rev-parse --show-toplevel)/code" && uvx ruff@0.14.5 check . && uvx ruff@0.14.5 format --check .
Auto-fix with uvx ruff@0.14.5 check --fix . and uvx ruff@0.14.5 format . if issues are found. The ruff@0.14.5 pin matches .github/workflows/lint.yml; unpinned uvx ruff can diverge from CI.
Changelog (for changes under code/):
CI requires code/CHANGELOG.md to be modified for any PR touching code/ (format is convention, not enforced). Check that an entry exists under ## Unreleased for this PR, format: - YYYY-MM-DD: [PR #N](https://github.com/natolambert/rlhf-book/pull/N) description.
Run code review (for significant changes):
Invoke pr-review-toolkit:review-pr for deeper analysis.
Include findings in the report under a "### Code Review" section.
Summarize PR readiness
## Pre-Submit PR Report
### Automated Checks
| Check | Status | Details |
|-------|--------|---------|
| Ruff lint | PASS/FAIL | [details] |
| Ruff format | PASS/FAIL | [details] |
| Changelog | PASS/MISSING | [details] |
### Code Review
[pr-review-toolkit:review-pr findings, if run]
### Verdict: READY FOR PR / ISSUES TO ADDRESS
### Summary for PR Description
[2-3 sentences summarizing changes]
These block PR submission:
code/CHANGELOG.md (CI-enforced: file must be modified)Note in PR but don't block:
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.