跳到正文
cccskills
免费在 GitHub 公开中文介绍

open-pr

检查代码变更的测试情况及对现有功能的影响,按仓库模板创建PR,并继续处理评审请求、反馈意见和CI检查。

原文查看原文说明

Open a pull request with proper PR template, test coverage, and review workflow. Guides agents through creating a PR that follows repo conventions, ensures existing behaviors aren't broken, covers new behaviors with tests, and handles review via bot when local testing isn't possible. TRIGGER when user asks to "open a PR", "create a PR", "make a PR", "submit a PR", "open pull request", "push and create PR", or any variation of opening/submitting a pull request.

集成工具GitHub

实测评分 未实测

查看安装方法

适用场景

  • 按指定模板创建PR
  • 检查现有功能与新功能的测试
  • 本地验证受限时请求机器人评审
  • 跟进评审意见和CI结果

中文介绍

功能

open-pr从事前检查到评审反馈处理,推进代码变更的PR提交。它会确认更改已提交并推送到远程仓库,检查整个仓库的格式、变更涉及部分的现有测试,以及新行为的测试。随后保留.github/PULL_REQUEST_TEMPLATE.md的结构,填写说明,并按规定的标题格式创建PR。

适用场景

适合需要遵循项目提交规则,或希望同时整理变更内容与测试情况的时候。运行环境充分时,会继续进行功能测试和自我评审。本地无法充分验证时,会注明未能执行的测试,并跟进评审机器人的回复。

使用示例

  • “测试这些更改,并按仓库模板创建PR。”
  • “向指定分支提交PR,并请求评审。”

注意事项

使用Git及GitHub CLI工具gh,默认目标分支为dev。评审流程使用相关技能/pr-test、/pr-review和/pr-address。等待机器人评审的时间最长为60分钟,未收到回复时会向用户报告。合并需要人工批准。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
A良好明确说明git push、提交PR和发送评论,并要求合并前获得人工批准。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足使用Git、gh及相关评审技能,但未提供这些工具的安装或身份验证步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月23日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md5.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Open a Pull Request

Step 1: Pre-flight checks

Before opening the PR:

  1. Ensure all changes are committed
  2. Ensure the branch is pushed to the remote (git push -u origin <branch>)
  3. Run linters/formatters across the whole repo (not just changed files) and commit any fixes

Step 2: Test coverage

This is critical. Before opening the PR, verify:

Existing behavior is not broken

  • Identify which modules/components your changes touch
  • Run the existing test suites for those areas
  • If tests fail, fix them before opening the PR — do not open a PR with known regressions

New behavior has test coverage

  • Every new feature, endpoint, or behavior change needs tests
  • If you added a new block, add tests for that block
  • If you changed API behavior, add or update API tests
  • If you changed frontend behavior, verify it doesn't break existing flows

If you cannot run the full test suite locally, note which tests you ran and which you couldn't in the test plan.

Step 3: Create the PR using the repo template

Read the canonical PR template at .github/PULL_REQUEST_TEMPLATE.md and use it verbatim as your PR body:

  1. Read the template: cat .github/PULL_REQUEST_TEMPLATE.md
  2. Preserve the exact section titles and formatting, including:
    • ### Why / What / How
    • ### Changes 🏗️
    • ### Checklist 📋
  3. Replace HTML comment prompts (<!-- ... -->) with actual content; do not leave them in
  4. Do not pre-check boxes — leave all checkboxes as - [ ] until each step is actually completed
  5. Do not alter the template structure, rename sections, or remove any checklist items

PR title must use conventional commit format (e.g., feat(backend): add new block, fix(frontend): resolve routing bug, dx(skills): update PR workflow). See CLAUDE.md for the full list of scopes.

Use gh pr create with the base branch (defaults to dev if no [base-branch] was provided). Use --body-file to avoid shell interpretation of backticks and special characters:

BASE_BRANCH="${BASE_BRANCH:-dev}"
PR_BODY=$(mktemp)
cat > "$PR_BODY" << 'PREOF'
<filled-in template from .github/PULL_REQUEST_TEMPLATE.md>
PREOF
gh pr create --base "$BASE_BRANCH" --title "<type>(scope): short description" --body-file "$PR_BODY"
rm "$PR_BODY"

Step 4: Review workflow

If you have a workspace that allows testing (docker, running backend, etc.)

  • Run /pr-test to do E2E manual testing of the PR using docker compose, agent-browser, and API calls. This is the most thorough way to validate your changes before review.
  • After testing, run /pr-review to self-review the PR for correctness, security, code quality, and testing gaps before requesting human review.

If you do NOT have a workspace that allows testing

This is common for agents running in worktrees without a full stack. In this case:

  1. Run /pr-review locally to catch obvious issues before pushing
  2. Comment /review on the PR after creating it to trigger the review bot
  3. Poll for the review rather than blindly waiting — check for new review comments every 30 seconds using gh api repos/Significant-Gravitas/AutoGPT/pulls/{N}/reviews --paginate and the GraphQL inline threads query. The bot typically responds within 30 minutes, but polling lets the agent react as soon as it arrives.
  4. Do NOT proceed or merge until the bot review comes back — but bound the wait at 60 minutes from the /review comment, the same budget /pr-address and /pr-polish use. If nothing has arrived by then, stop waiting and tell the user the requested review never came. Never block indefinitely on a bot.
  5. Address any issues the bot raises — use /pr-address which has a full polling loop with CI + comment tracking
# After creating the PR:
PR_NUMBER=$(gh pr view --json number -q .number)
gh pr comment "$PR_NUMBER" --body "/review"
# Then use /pr-address to poll for and address the review when it arrives

Step 5: Address review feedback

Once the review bot or human reviewers leave comments:

  • Run /pr-address to address review comments. It will loop until CI is green and all comments are resolved.
  • Do not merge without human approval.

Related skills

SkillWhen to use
/pr-testE2E testing with docker compose, agent-browser, API calls — use when you have a running workspace
/pr-reviewReview for correctness, security, code quality — use before requesting human review
/pr-addressAddress reviewer comments and loop until CI green — use after reviews come in; it can also post the /review trigger itself if the PR has no review yet

Step 6: Post-creation

After the PR is created and review is triggered:

  • Share the PR URL with the user
  • If waiting on the review bot, let the user know the expected wait time (~30 min)
  • Do not merge without human approval

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

orchestrate

免费有简介

在独立工作目录中运行多个Claude Code,统一分配开发任务、监控进度、协助恢复停止的会话,并检查PR测试及评审反馈的处理情况。

  • 向多个代理分配开发任务
  • 查看进度及空闲worktree
  • 恢复停止工作的代理
Significant-Gravitas/AutoGPT18.8万2026年10月23日 更新

perf-compare

免费有简介

利用Sentry测量数据比较变更前后或不同环境的速度与失败率,考虑统计波动,判定加速、减速、未检测到变化或数据不足,并输出比较结果。

  • 比较发布前后的性能
  • 验证预览环境与对照环境
  • 检查其他操作是否变慢
Significant-Gravitas/AutoGPT18.8万2026年10月23日 更新

pr-address

免费有简介

收集PR审查意见,推进代码修改、提交、回复及讨论串解决,同时持续检查CI失败、合并冲突和新增评论,跟进直至审查事项处理完成。

  • 修改PR审查指出的问题
  • 回复人工和机器人审查
  • 调查并修复推送后的CI失败
Significant-Gravitas/AutoGPT18.8万2026年10月23日 更新

pr-polish

免费有简介

反复审查和修复PR,检查未解决的讨论、评论回复、自动检查及合并冲突,并等待延迟到达的评论,将PR整理到可以合并的状态。

  • 将PR整理到可合并状态
  • 反复修复直到没有新问题
  • 处理延迟到达的机器人审查
Significant-Gravitas/AutoGPT18.8万2026年10月23日 更新

pr-review

免费有简介

审查拉取请求的目的和代码差异,检查正确性、安全性、设计及测试,避免重复已有评论,并将标注严重程度的问题发布到对应代码行。

  • 合并前审查拉取请求
  • 检查代码变更的安全性
  • 查找边界情况的测试缺口
Significant-Gravitas/AutoGPT18.8万2026年10月23日 更新

pr-test

免费有简介

在运行中的系统上通过浏览器和API验证PR或分支变更,对照界面、接口及存储数据的变化,并附上操作前后截图报告结果。

  • 通过浏览器和API完整测试PR
  • 对照界面、API及存储数据的变化
  • 验证无效输入等异常情况
Significant-Gravitas/AutoGPT18.8万2026年10月23日 更新

查看 Significant-Gravitas 的全部技能

报告此技能的问题