Skip to content

feat(pr-open): add a merge danger section to the default template - #35

Merged
mastro993 merged 3 commits into
mainfrom
feat/pr-open-merge-danger
Nov 27, 2026
Merged

mastro993 merged 3 commits into
mainfrom
feat/pr-open-merge-danger

Conversation

@mastro993

Copy link
Copy Markdown
Owner

Why

PR descriptions mixed the "how risky is this" part into the What section, where it got lost. Reviewers asked what "two-way door" meant, so the wording also needed to be plainer.

What

The default template gets its own section between What and How to test:

  ## What
  <diagram or diff>
- **Blast radius: moderate.** … Two-way door: a revert restores the old check.
+ ## Merge danger
+ **Reversible: yes.** A revert restores the old check; nothing is stored or migrated.
+ **Blast radius: moderate.** Checkout and admin-created orders both go through …
  ## How to test

The skill also asks for PR prose in everyday words: the project's own names for its things, and everything else said the way you'd say it to a teammate.

Merge danger

Reversible: yes. This only changes the skill's instructions; a revert brings the old template back.

Blast radius: contained. Only PRs opened through pr-open look different, including the ones pr-ship, implement-issue and create-issues open with it. On repos with their own PR template, the Merge danger section is added after the template's sections. Version goes to 0.16.1 in every manifest and the badge.

How to test

Automated: two eval checks now look for a Merge danger section that says whether a revert undoes the change and keeps the blast radius to one short paragraph (skills/pr-open/evals/*/graders/*merge-danger-section.md).

Manual

  • Ask for a PR on a repo with no template: the body has Why, What, Merge danger, How to test.

Reversible (does a revert undo it) and the blast radius paragraph move out of What into their own section after it. Version 0.16.1.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one stale eval left behind.

Approach: sound. It moves the risk framing into its own template section and replaces the "two-way door" jargon with "Reversible: yes/no", which is the right fix for the reviewer confusion described.

Reviewed changes: the full diff, both commits, plus a grep of the repo for leftover references to the old blast radius wording.

  • Default template: skills/pr-open/SKILL.md gets a ## Merge danger section with Reversible and Blast radius lines, placed between What and How to test. The example is updated to match.
  • Everyday words: the prose guidance now asks for the project's own names plus plain teammate wording.
  • Eval graders: the two *-blast-radius-paragraph.md graders are replaced by *-merge-danger-section.md. The bug-fix grader says "after the template's sections", which matches the existing "own section after the template's" rule.
  • Version bump: 0.16.1 in .claude-plugin/plugin.json, plugin.json, gemini-extension.json and the README badge. All four agree.

ℹ️ Draft-text eval still describes the old default shape

skills/pr-open/evals/draft-text-shows-blast-radius/graders/06-default-sections.md still says the body uses "Why, What, and How to test sections (or equivalents)". skills/pr-open/evals/draft-text-shows-blast-radius/case.yaml (line 6) says the default shape is "Why, What, How to test". Neither was touched, but both now describe a shape the skill no longer produces. The "or equivalents" wording means the grader will probably still pass, but it no longer checks the intended shape. The case.yaml text is the human-readable expectation, so it contradicts the new 08-merge-danger-section.md grader.

Technical details
# Update draft-text eval to the new default shape

## Affected sites
- skills/pr-open/evals/draft-text-shows-blast-radius/graders/06-default-sections.md:7 — lists Why, What, How to test only
- skills/pr-open/evals/draft-text-shows-blast-radius/case.yaml:6 — `expected_outcome` says the default shape is "Why, What, How to test"

## Required outcome
- Both files name Merge danger among the default sections, so they agree with `08-merge-danger-section.md` and the `SKILL.md` template.

Pullfrog  | Fix it ➔ | View workflow run | Using claude-sonnet-5-5 | 𝕏

@mastro993

Copy link
Copy Markdown
Owner Author

Fixed in da14a32: case.yaml and 06-default-sections.md now list Why, What, Merge danger, How to test, matching the template and the 08-merge-danger-section.md grader.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: the one commit added since the prior pullfrog review (da14a32).

  • Draft-text eval aligned: skills/pr-open/evals/draft-text-shows-blast-radius/case.yaml now lists the default shape as Why, What, Merge danger, How to test, and describes the blast radius as Merge danger's. graders/06-default-sections.md requires those four sections in that order. This resolves the earlier stale-eval finding.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@mastro993
mastro993 merged commit d31fc4d into main Nov 27, 2026
2 checks passed
@mastro993
mastro993 deleted the feat/pr-open-merge-danger branch November 27, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant