review-and-ship
它能做什么
让智能体在改动发布前进行检查,然后处理提交和拉取请求。适合希望在合并前做细致审阅的开发者。
适用场景
- ✓当你完成改动,希望在发布前进行审阅的时候。
- ✓当你希望为改动的行为运行或编写测试的时候。
- ✓当审阅之后需要创建或更新拉取请求的时候。
技能链接
https://github.com/cursor/plugins/blob/main/cursor-team-kit/skills/review-and-ship/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Gather context: diff against base branch, uncommitted changes, recent commits, changed files, and user intent from recent relevant chats if useful.
- Run targeted tests for changed behavior. If no focused tests exist, decide whether to add them or document the gap.
- Review for correctness, regressions, security, and intent fit. Use parallel subagents for larger diffs.
- Fix critical issues before finalizing and re-run affected tests.
- Commit selective files with a concise message.
- 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 checksinstead 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
评论
- …
同一仓库的更多技能
advisor
15k如果你开启该功能,让你的智能体在关键节点咨询一个更强的第二模型,例如在重大决定之前,或在错误上卡住时。
check-agent-compatibility
15k全面检查 AI 编程智能体能否启动、验证和记录某个代码仓库,并返回一个兼容性评分以及主要问题。
cli-for-agents
15k教你的智能体设计或审查命令行工具,使 AI 智能体无需提示即可运行,并提供清晰的帮助文字和示例。
continual-learning
15k通过把回顾过往对话的工作交给专门的记忆更新程序,使你的 AGENTS.md 笔记保持最新。