跳到正文
Skillpedia
测试15k · #10941

review-and-ship

它能做什么

让智能体在改动发布前进行检查,然后处理提交和拉取请求。适合希望在合并前做细致审阅的开发者。

适用场景

  • ✓当你完成改动,希望在发布前进行审阅的时候。
  • ✓当你希望为改动的行为运行或编写测试的时候。
  • ✓当审阅之后需要创建或更新拉取请求的时候。

技能链接

https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/review-and-ship/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/review-and-ship/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我审阅我的分支,检查错误和缺少的测试,修复关键问题,然后创建拉取请求。”

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

工作原理

智能体会获取相对于基础分支的差异,运行有针对性的测试,检查正确性和安全性,修复关键问题,提交相关文件,推送代码,并创建或更新拉取请求。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Review and ship

Trigger

Reviewing changes before shipping. Close key issues, verify behavior, and open or update a PR.

Workflow

  1. Gather context: diff against base branch, uncommitted changes, recent commits, changed files, and user intent from recent relevant chats if useful.
  2. Run targeted tests for changed behavior. If no focused tests exist, decide whether to add them or document the gap.
  3. Review for correctness, regressions, security, and intent fit. Use parallel subagents for larger diffs.
  4. Fix critical issues before finalizing and re-run affected tests.
  5. Commit selective files with a concise message.
  6. Push branch and open or update a PR.

Suggested Checks

git fetch origin main
git diff origin/main...HEAD
git status
gh pr checks --json name,bucket,state,workflow,link

Guardrails

  • Prioritize correctness, security, and regressions over style-only comments.
  • Keep commits focused and avoid unrelated file changes.
  • If pre-commit checks fail, fix the issues rather than bypassing hooks.
  • Use gh pr checks instead of GitHub Actions-only commands when judging PR readiness.

Output

  • Findings summary (critical, warning, note)
  • Tests run and outcomes
  • PR URL
常见问题

提交失败时它会跳过钩子吗?

不会。如果提交前检查失败,它会修复问题,而不是绕过检查。

最后会报告什么?

会按严重、警告和提示分类列出发现的问题,以及运行过的测试和拉取请求链接。

它会关注代码风格吗?

不会。它优先关注正确性、安全性和回归问题,而不是只涉及风格的意见。

详情

作者的原始描述

Review the current branch for bugs, intent fit, and test coverage; run or write tests; commit focused work; open or update a PR.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#10941
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能