Review And Ship

作者 cursorccb5507cec15无许可证10K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

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

AI 生成的概览

审查分支中的缺陷、意图契合度与测试覆盖,运行测试,提交聚焦的改动并创建或更新 PR。

功能
该技能引导智能体执行发布前的审查流程:收集差异、提交记录与用户意图等上下文,针对变更行为运行定向测试,并审查正确性、回归、安全性与意图契合度。它会先修复关键问题并重新运行受影响的测试,然后用简洁的提交信息提交选定文件,推送分支并创建或更新拉取请求。产出包括按严重、警告、提示分组的发现摘要、所运行测试及其结果,以及 PR 链接。
适用场景
适用于改动已准备好、需要在发布前进行审查的场景,希望系统性地检查正确性、安全性、回归与测试覆盖。适合以提交和拉取请求收尾的工作流,而非仅在本地审查。
运行要求
需要 Git 与 GitHub CLI(gh),并具备已认证的会话和访问仓库的网络连接;该技能不附带脚本,仅提供说明。

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

bash
git fetch origin maingit diff origin/main...HEADgit statusgh 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

来源与署名

来源:cursor/plugins位于cursor-team-kit/skills/review-and-ship提交ccb5507

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架