From 98d5a3adb1695cdb9fe398a7f0f8780dabfb672d Mon Sep 17 00:00:00 2001 From: Ryan! Mason Date: Mon, 8 Jun 2026 07:52:30 -0600 Subject: [PATCH] Preserve Cursor summary block when improving PR descriptions. Agents using make-pr-easy-to-review should keep the CURSOR_SUMMARY comment block and agent footer intact when editing PR bodies. Co-authored-by: Cursor --- .../skills/make-pr-easy-to-review/SKILL.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cursor-team-kit/skills/make-pr-easy-to-review/SKILL.md b/cursor-team-kit/skills/make-pr-easy-to-review/SKILL.md index f5343c0..7ef2edf 100644 --- a/cursor-team-kit/skills/make-pr-easy-to-review/SKILL.md +++ b/cursor-team-kit/skills/make-pr-easy-to-review/SKILL.md @@ -52,6 +52,20 @@ When code behavior should stay untouched, prefer PR description and review notes - Call out risky behavior changes, migration order, rollout plan, and test coverage. - Link issue trackers, dashboards, or design docs when they explain intent. +### Preserve the Cursor-generated comment block + +When editing a PR description, fetch the existing body first: + +```bash +gh pr view --json body -q .body +``` + +If the body contains a Cursor-generated block delimited by `` and ``, **leave that block intact** — do not remove, rewrite, or relocate it. It may include risk level, change summary, and Bugbot notes that Cursor or Bugbot maintain. + +Also preserve any trailing Cursor agent footer (the `Open in Web` / `Open in Cursor` link div) if present. + +Add reviewer guidance **outside** the Cursor block — typically above it or in clearly separate sections below. When running `gh pr edit`, reconstruct the full body with the preserved block(s) copied verbatim from the original. + ## Guardrails - Never hide meaningful behavior changes inside "cleanup".