pr
它能做什么
这个技能会在 GitHub 上打开一个草稿拉取请求,附上清晰的标题和更改说明,并跟进审阅轮次直到准备就绪。适合为审阅而分享代码的开发者。
适用场景
- ✓当你想在 GitHub 上为你的分支打开拉取请求时。
- ✓当你想要一个列出更改内容的拉取请求标题和描述时。
- ✓当你的拉取请求在准备合并之前需要经过审阅轮次时。
技能链接
https://github.com/windmill-labs/windmill/blob/main/.agents/skills/pr/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我的分支打开一个草稿拉取请求,附上更改摘要和测试计划。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能会检查 main 之后的提交,推送分支,打开草稿,然后运行审阅轮次,直到每项结论都是通过为止。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Pull Request Skill
Create a draft pull request with a clear title and explicit description of changes, then drive it through CI review rounds to ready.
Instructions
- Analyze branch changes: Understand all commits since diverging from main
- Push to remote: Ensure all commits are pushed
- Create draft PR: Always open as draft for review before merging
- Drive review rounds: trigger CI reviews on the draft and only flip to ready once every verdict is a go (see "Review rounds" below)
PR Title Format
Follow conventional commit format for the PR title:
<type>: <description>
Types
feat: New feature or capabilityfix: Bug fixrefactor: Code restructuringdocs: Documentation changeschore: Maintenance tasksperf: Performance improvements
Title Rules
- Keep under 70 characters
- Use lowercase, imperative mood
- No period at the end
- If
*_ee.rsfiles were modified, prefix with[ee]:[ee] <type>: <description>
PR Body Format
The body MUST be explicit about what changed. Structure:
## Summary
<Clear description of what this PR does and why>
## Changes
- <Specific change 1>
- <Specific change 2>
- <Specific change 3>
## Test plan
- [ ] <How to verify change 1>
- [ ] <How to verify change 2>
The harness/tooling that invoked the skill may add its own attribution trailer; the skill itself does not prescribe one.
Screenshots (required for frontend changes)
If git diff main...HEAD --name-only matches ^frontend/, the PR body must include
screenshots of the affected UI. Skip only when there is no visible UI effect (types,
tests, build config) — and say so in the body.
Verify the change in the browser (frontend/AGENTS.md → "Verifying Frontend Changes").
Screenshot each affected page with
mcp__playwright__browser_take_screenshot(save to a file).Host each image and get its Markdown embed by pushing to the public
windmill-labs/agent-screenshots-internalrepo. Pipe base64 through stdin — passing it as-f content=…fails withargument list too longon real images:REPO=windmill-labs/agent-screenshots-internal IMG=screenshot.png # repeat per page DEST="shots/$(git branch --show-current)/$(date +%s)-$(basename "$IMG")" base64 -w0 "$IMG" | jq -Rs --arg m "add $DEST" '{message:$m, content:.}' \ | gh api -X PUT "repos/$REPO/contents/$DEST" --input - >/dev/null echo ""Derive
$DESTfrom the file name (as above) so distinct pages never collide — a fixed name would make same-second uploads reuse one path, and the secondPUTthen 422s (the Contents API needs the existing file'sshato overwrite).Put the printed
lines under a## Screenshotsheading in the PR body.
Requires gh (repo scope), jq, base64 — all in the devShell. The host repo is
public (so the raw URLs render for reviewers without a token) and its history is
permanent — never screenshot pages that show secrets or sensitive values (workspace
variables, resource values, instance settings, OAuth/SMTP config); deleting the file
can't undo an accidental capture. (GitHub's drag-and-drop uploader needs a browser
session and can't be driven from a token.)
If gh can't push to the host repo (e.g. a CI token scoped only to windmill), do
not fail the PR or skip silently — hand the upload to the user, who has push access,
and continue once they confirm it's done.
Execution Steps
Run
git statusto check for uncommitted changesRun
git log main..HEAD --onelineto see all commits in this branchRun
git diff main...HEADto see the full diff against mainReview the diff before creating the PR — run both reviews, do not skip:
local-review— Claude-native branch-diff-reviewer (/local-reviewin Claude Code,$local-reviewin Codex,pi --skill local-review//skill:local-reviewin Pi).local-review-codex— cold Codex pass, the same review CI runs, for an independent perspective the Claude pass misses (/local-review-codexin Claude Code, orbash .agents/skills/local-review-codex/run.sh). If thecodexCLI is missing or older than the version pinned in that skill, note it in your summary and continue — never block the PR on codex being unavailable.
Run both — they catch different things. If eithe
常见问题
为什么先打开草稿?
草稿让审阅者可以在拉取请求被标记为可以合并之前查看工作内容。
描述中包括什么?
摘要、更改清单,以及带复选框的测试计划。
拉取请求何时准备就绪?
只有在每项审阅结论都为通过之后。
详情
作者的原始描述
Open a draft pull request on GitHub and drive CI review rounds until it is ready. MUST use when you want to create/open a PR.
repo: windmill-labs/windmill
热度
- GitHub 星标
- 18k
- 排名
- #10626
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …