通用编程14k · #11281
pr
它能做什么
这项技能使用 GitHub 命令行工具,指导智能体打开 GitHub 拉取请求。适合希望自己的改动得到评审并合并的开发者。
适用场景
- ✓当你的改动已经准备好,需要队友评审的时候。
- ✓当你希望拉取请求填满模板的所有章节的时候。
- ✓当你需要在打开拉取请求之前确认测试通过的时候。
技能链接
https://github.com/EverMind-AI/EverOS/blob/main/.claude/skills/pr/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/EverMind-AI/EverOS/blob/main/.claude/skills/pr/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add EverMind-AI/EverOS --skill pr
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/EverMind-AI/EverOS/main/.claude/skills/pr/SKILL.md -o SKILL.md
可以这样问 AI
“请为我的分支打开一个拉取请求,附上清晰的摘要和测试说明。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查分支,运行项目的检查,推送分支,然后创建拉取请求,并完成模板的每个章节。它会说明哪些检查没有运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/pr
Open a pull request on GitHub using the gh CLI and the repo's PR template.
Steps
- Confirm the branch and target:
- Base branch is
main. - Head branch should be a scoped branch such as
feat/*,fix/*,docs/*,ci/*,chore/*, orrefactor/*.
- Base branch is
- Ensure local checks pass first:
Do not open a PR with failing lint/tests.make ci - Push the branch:
git push -u origin HEAD - Create the PR, filling the template
(.github/PULL_REQUEST_TEMPLATE.md):
Then edit the body to complete each section:gh pr create --base main --fill-first- Summary — what changed and why.
- Area — tick the relevant box (architecture / benchmark / use case / docs / DX / CI-build-release).
- Verification — paste the commands you ran (
make ci, manual checks). - Checklist — tick honestly; don't tick boxes you didn't satisfy.
- Notes for Reviewers — anything subtle.
Notes
- Keep the PR scoped to one area. Split unrelated changes.
- If
make ciwas not fully run, say so in Verification rather than implying it passed. - Never retarget a community PR away from
mainunless a maintainer explicitly asks for it.
常见问题
打开拉取请求之前检查必须通过吗?
这项技能要求检查失败时不要打开拉取请求。
如果我没有运行所有检查怎么办?
这项技能要求在验证部分如实说明,而不是暗示已经通过。
拉取请求应该指向哪个分支?
这项技能指向 main,并让每个拉取请求只涉及一个领域。
详情
作者的原始描述
Open a GitHub PR targeting the correct branch with the project template
repo: EverMind-AI/EverOS
热度
- GitHub 星标
- 14k
- 排名
- #11281
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …