简介
Pull Request
原始描述
Create high-quality pull requests with pre-submission validation, maintainer-friendly formatting, and automated quality checks.
通过你的 Agent 添加
安装目录:pull-request/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: pull-request description: Read before committing, opening a PR, or checking on an open one — commit and title format, the checks of every push, self-review, opening, waiting for and reading CI (tools/github), handling review threads, merging.
PR Pipeline
Branch (CLAUDE.md) → code → commit → self-review and fixes → checks, with the push and opening beside the build and tests → watch CI and threads until settled → report ready → merge once the maintainer authorizes this PR.
Each stage has its file beside this one, read when the stage starts:
opening.md— before opening: the self-review, the title and the body.watching.md— each round on an open PR: waiting for CI and reading it, CI failures, the review threads.merging.md— once the maintainer authorized this PR's merge.
Commits and titles
- Conventional commits, checked by CI:
<type>(<scope>): <short description>, the scope optional, under 70 characters. Types:feat,fix,refactor,chore,build,ci,docs,test,perf,style,revert. Scopes:src/subdirectories or feature names, e.g.completion,server,index,tests,document links. - A title names one thing: no
;or,. A PR whose changes seem to need a list is titled by what they share, and the parts go in the body. - CI checks the head commit message on pushes and the PR title on pull requests. A PR lands in
mainas one squash commit: the title is its subject, and its message is the PR body unless the merge writes its own (merging.md). - An unpublished branch stacked on a predecessor that has since been squash-merged is rebased first, after
git fetch origin, withgit rebase --onto origin/main <predecessor-tip>— a plaingit rebase origin/mainreplays the predecessor's commits one at a time and stops wherever their intermediate states differ from the squashed result. Never start a build or a suite on a tree with unresolved conflicts.
Checks (every push, not just the first)
- Docs sync — once, at the end, delegated. If the branch touched documented cases (a
README.mdor the output of a case that has one), config annotations, or anything underdocs/, hand the sync to an Opus subagent following the write-docs skill'ssync.md. Repeat on later pushes only when those inputs changed again. pixi run format.npm run checkat the repo root when TypeScript changed;pixi run check-layerswhen C++ imports or includes changed;pixi run check-timerswhen C++ waits on the clock;pixi run check-offsetswhen C++ reads clang's offsets.- What the change runs (the build-and-test skill, "What a change runs") passes, beside CI: push without waiting for it.
Pushing
git status -sb immediately before every push, then push with no arguments (upstream) or the branch name you just read. Never take the branch name from the session's start-of-conversation snapshot — it is stale after compaction, and a stale explicit name once resurrected a merged PR's deleted head branch (git push origin :<branch> undoes that).
Done
- CI finished and passed (
ci.ts status), zero unresolved threads, and every finding in review bodies handled → report to the maintainer that the PR is ready to merge: a one-paragraph summary of what review found and how it was addressed, plus every design decision taken while resolving threads (chosen vs. alternative), so the maintainer can accept or overturn them in one pass. Then stop. - The default bar stays high: elegant code, edge cases considered. "Merge now, clean up in a dedicated refactor PR later" is a real move in this project, but that trade-off is the maintainer's call, made case by case — never the agent's default.