跳到正文
Skillpedia
通用编程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 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为我的分支打开一个拉取请求,附上清晰的摘要和测试说明。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查分支,运行项目的检查,推送分支,然后创建拉取请求,并完成模板的每个章节。它会说明哪些检查没有运行。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

/pr

Open a pull request on GitHub using the gh CLI and the repo's PR template.

Steps

  1. Confirm the branch and target:
    • Base branch is main.
    • Head branch should be a scoped branch such as feat/*, fix/*, docs/*, ci/*, chore/*, or refactor/*.
  2. Ensure local checks pass first:
    make ci
    
    Do not open a PR with failing lint/tests.
  3. Push the branch:
    git push -u origin HEAD
    
  4. Create the PR, filling the template (.github/PULL_REQUEST_TEMPLATE.md):
    gh pr create --base main --fill-first
    
    Then edit the body to complete each section:
    • 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 ci was not fully run, say so in Verification rather than implying it passed.
  • Never retarget a community PR away from main unless 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能