工作台模板

Cursor Skill:把 PR 审查写成 .cursor/skills/pr-review/SKILL.md

要在 Cursor Agent 里复用同一套审查步骤的仓库维护者。路径:.cursor/skills/pr-review/SKILL.md

不是 Roo / Cline 模版。本站不托管安装包。订哪档去 /compare。

全部工作台模板 · 官方安装 · 订哪档

.cursor/skills/pr-review/SKILL.md 放到仓库根.cursor/skills/pr-review/。这是 Cursor Agent Skill 路径,不是 Roo Mode YAML,也不是 VS Code 扩展包。

审查步骤写进仓库之后,再去 /compare 订哪档。本站不托管安装包,也不注册第三方对话插件。

.cursor/skills/pr-review/SKILL.md
.cursor/skills/pr-review/SKILL.md
---
name: pr-review
description: Review a pull request for scope, tests, secrets, and changelog before merge.
---

# PR review

Follow this order. Do not skip secrets or changelog.

这不是 Roo Mode YAML。

## Scope

- Restate what the PR claims to change. Diff should match that claim.
- Reject drive-by refactors, unrelated files, and generated binaries.
- Flag new public routes, env vars, or schema changes that are missing from the description.

## Tests

- New behavior needs a test or an explicit reason the nearest existing test already covers it.
- Run the nearest typecheck / lint / unit test for the touched package.
- Do not add a second test runner.

## Secrets

- Reject committed tokens, cookies, `.env` values, and private keys.
- MCP / Skill files must use environment variable *names* only. Never paste a live credential.

## Changelog

- User-visible behavior needs a changelog / release note pointer, or a note that the change is internal-only.
- Version pins belong in official docs, not as a way to freeze a patched client.

## Output

Write: summary, blocking issues, nits, and a merge recommendation (approve / request changes).