Skip to content
Agentmart
Submit a tool

merging-when-approved

Use when asked to review a pull request and merge it only if approved, or before merging a pull request you wrote or changed

Skill by basnijholt

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/basnijholt-merging-when-approved

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when asked to review a pull request and merge it only if approved, or before merging a pull request you wrote or changed

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/merging-when-approved

What's inside

Skill name
merging-when-approved
Description
Use when asked to review a pull request and merge it only if approved, or before merging a pull request you wrote or changed
License
MIT
Instructions
24 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Merging When Approved

An approval belongs to one head SHA and one reviewer who did not write the code.
If you wrote or changed any commit in the PR, your own read is not a review, and neither is CI.

1. Pin the head: `HEAD_SHA=$(gh pr view <N> --json headRefOid -q .headRefOid)`.
2. In parallel, dispatch a fresh-context subagent (baspowers:requesting-code-review) and the opposite model family via baspowers:consulting-cross-model in review mode.
   Tell both: review the full diff at HEAD_SHA, report only real defects with file:line and a failing scenario, report over-engineering and scope creep, edit nothing, end with `VERDICT: APPROVE` or `VERDICT: CHANGES REQUIRED`.
3. Validate findings (baspowers:receiving-code-review), fix valid ones minimally, decline scope creep with a reason on the PR.
4. Any push is a new head: go back to step 1.
5. Merge only when every reviewer approved the current head: `gh pr merge <N> --squash --match-head-commit "$HEAD_SHA"`, never `--admin`.
6. Report each verdict with its SHA, and the findings fixed and declined.

After three rounds with new defects, use baspowers:stopping-runaway-prs.

## Red Flags

| Thought | Reality |
|---|---|
| "One reviewer only, both won't fit in the time" | Both run in parallel; if they are not done in time, the PR waits. |
| "If you'd rather I merge on the old approval, say so" | Keep the gate and report its status instead of offering to lower it. |
| "Review just the delta since the last approval" | Review the full diff at the current head. |

From basnijholt/baspowers, MIT.

More from basnijholt/baspowers

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Oct 8, 2026 (20 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from basnijholt

Cite this page

merging-when-approved skill. Agent Mart. https://agentmart.dev/skills/basnijholt-merging-when-approved (last updated 2026-10-24)