Pr review canvas
Skill SID-SURANGE/cursor-team-ops/skills/core/pr-review-canvas
Enforcement & release-hygiene layer for Cursor agents — blocking git/DB/license guardrails, commit hygiene, and docs-ops.
npx -y skills add SID-SURANGE/cursor-team-ops --skill pr-review-canvasAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Group PR changes by purpose, flag risky sections, and produce a reviewer map so the reader doesn't parse raw diff. Triggered by "review canvas", "map this PR", "help me review this PR", "understand this PR", "what does this PR change", "walk me through this PR", "review this diff", "what should I focus on in this PR", "pr-review-canvas".
SKILL.md
2.7 KB, 611 tokens by cl100k_base, as published. Nobody here has run it
🗺️ Skill: pr-review-canvas
Purpose
Turn an unstructured diff into a structured review map: what changed, why it matters, where to look first, and what to be careful about. Helps reviewers focus attention rather than read everything.
Trigger phrases
- "review canvas"
- "map this PR"
- "pr-review-canvas"
- "give me a PR overview"
- "structure this PR for review"
Steps
1. Fetch the diff
# If PR number is known:
gh pr diff <number>
# If on the branch:
git diff main...HEAD --stat
git diff main...HEAD
Also fetch the PR description:
gh pr view <number>
2. Categorize every changed file
Assign each file to one category:
| Category | What it means |
|---|---|
| Feature | New user-visible behaviour |
| Fix | Bug correction |
| Refactor | Structure change, no behaviour change |
| Config | Environment, build, or tooling config |
| Test | Test-only changes |
| Infra | CI, Docker, deployment |
| Docs | Documentation or comments only |
3. Build the reviewer map
## PR Canvas: <PR title>
### Summary
<2-3 sentences: what this PR does and why>
### Change map
| File / Area | Category | Lines ± | Risk | Reviewer note |
|-------------|----------|----------|------|---------------|
| src/foo.ts | Feature | +120/-30 | Med | Core logic change — review carefully |
| tests/foo.test.ts | Test | +80 | Low | Covers happy path + 2 edge cases |
| config/env.example | Config | +3 | Low | New env var — check deployment runbook |
### Risk sections (read these first)
1. <file>:<line-range> — <reason it's risky>
2. ...
### What's NOT in this PR (but might be expected)
- <missing tests for X>
- <no migration for schema change>
- ...
### Suggested review order
1. <file or area to read first>
2. ...
4. Flag concerns
Automatically flag:
- Files changed without accompanying tests (for non-trivial logic).
- Config changes with no documentation update.
- Large single files (>300 lines changed) — suggest splitting if not already merged.
- Direct changes to
main/masterbranch protection files. - Secrets-adjacent files (
.env, credential configs).
5. Output
Print the reviewer map to chat. If the user asks, also write it as PR_CANVAS.md in the repo root (gitignored by default).
Output
Structured reviewer map with change categorization, risk flags, and suggested review order.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.