en un clic
pre-submit-pr
Validate changes before PR submission
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Validate changes before PR submission
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
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.
Get feedback from Gemini API on a diagram image for textbook quality review.
Create a new PR or push commits to an existing PR for the current branch.
Update the body of a GitHub pull request. Use when the user asks to update, edit, or modify a PR description/body.
Basé sur la classification professionnelle SOC
| 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: