merge-pr
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
Skill by OPDhaker
Chalk Labs
Need help deploying merge-pr?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/opdhaker-merge-pr-b21616
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.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
merge-pr- Description
- Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
- License
- MIT
- Instructions
- 96 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- openai.yaml · agents/
SKILL.md (first lines)
# Merge PR
## Overview
Merge a prepared PR only after deterministic validation.
## Inputs
- Ask for PR number or URL.
- If missing, use `.local/prep.env` from the PR worktree.
## Safety
- Never use `gh pr merge --auto` in this flow.
- Never run `git push` directly.
- Require `--match-head-commit` during merge.
- Wrapper commands are cwd-agnostic; you can run them from repo root or inside the PR worktree.
## Execution Contract
1. Validate merge readiness:
```sh
scripts/pr-merge verify <PR>
```
Backward-compatible verify form also works:
```sh
scripts/pr-merge <PR>
```
2. Run one-shot deterministic merge:
```sh
scripts/pr-merge run <PR>
```
3. Ensure output reports:
- `merge_sha=<sha>`
- `merge_author_email=<email>`
- `comment_url=<url>`
## Steps
1. Validate artifacts
```sh
require=(.local/review.md .local/review.json .local/prep.md .local/prep.env)
for f in "${require[@]}"; do
[ -s "$f" ] || { echo "Missing artifact: $f"; exit 1; }
done
```
2. Validate checks and branch status
```sh
scripts/pr-merge verify <PR>
source .local/prep.env
```
`scripts/pr-merge` treats “no required checks configured” as acceptable (`[]`), but fails on any required `fail` or `pending`.
3. Merge deterministically (wrapper-managed)
```sh
scripts/pr-merge run <PR>
```
`scripts/pr-merge run` performs:
- deterministic squash merge pinned to `PREP_HEAD_SHA`
- reviewer merge author email selection with fallback candidates
- one retry only when merge fails due to author-email validation
- co-author trailers for PR author and reviewer
- post-merge verification of both co-author trailers on commit message
- PR comment retry (3 attempts), then comment URL extraction
- cleanup after confirmed `MERGED`
4. Manual fallback (only if wrapper is unavailable)
```sh
scripts/pr merge-run <PR>
```
5. Cleanup
Cleanup is handled by `run` after merge success.
## Guardrails
- End in `MERGED`, never `CLOSED`.
- Cleanup only after confirmed merge.From OPDhaker/anima, MIT.
More from OPDhaker/anima
- 0.401score
audit
OPDhaker
Audit a NoxSoft platform for health, errors, and issues
SkillDFreshness: DClaude Code +9 - 0.401score
deploy
OPDhaker
Deploy a NoxSoft platform via GitLab CI/CD
SkillDFreshness: DClaude Code +9 - 0.390score
1password
OPDhaker
Set up and use 1Password CLI (op).
SkillDFreshness: DClaude Code +9 - 0.385score
apple-notes
OPDhaker
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes).
SkillDFreshness: DClaude Code +9 - 0.385score
bluebubbles
OPDhaker
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillDFreshness: DClaude Code +9 - 0.382score
apple-reminders
OPDhaker
Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete).
SkillDFreshness: DClaude Code +9 - 0.381score
noxhub
OPDhaker
Use the NoxHub CLI to search, install, update, and publish agent skills from noxhub.noxsoft.net.
SkillDFreshness: DClaude Code +9 - 0.227score
blogwatcher
OPDhaker
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
SkillDFreshness: DClaude Code +9 - 0.227score
blucli
OPDhaker
BluOS CLI (blu) for discovery, playback, grouping, and volume.
SkillDFreshness: DClaude Code +9 - 0.227score
coding-agent
OPDhaker
Run Codex CLI, Claude Code, OpenCode, or Pi Coding Agent via background process for programmatic control.
SkillDFreshness: DClaude Code +9 - 0.225score
camsnap
OPDhaker
Capture frames or clips from RTSP/ONVIF cameras.
SkillDFreshness: DClaude Code +9 - 0.225score
bear-notes
OPDhaker
Create, search, and manage Bear notes via grizzly CLI.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Feb 14, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/OPDhaker/anima
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.406score
merge-pr
LongIV999
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9 - 0.244score
merge-pr
dvallier-ai
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9 - 0.244score
merge-pr
lalomorales22
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9 - 0.244score
merge-pr
loveoplay2023-hue
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9 - 0.244score
merge-pr
Rachasumanth
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9 - 0.244score
merge-pr
RobbyMo81
Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.
SkillDFreshness: DClaude Code +9
More from OPDhaker
- 0.401score
deploy
OPDhaker
Deploy a NoxSoft platform via GitLab CI/CD
SkillDFreshness: DClaude Code +9 - 0.401score
audit
OPDhaker
Audit a NoxSoft platform for health, errors, and issues
SkillDFreshness: DClaude Code +9 - 0.390score
1password
OPDhaker
Set up and use 1Password CLI (op).
SkillDFreshness: DClaude Code +9 - 0.385score
bluebubbles
OPDhaker
Use when you need to send or manage iMessages via BlueBubbles (recommended iMessage integration).
SkillDFreshness: DClaude Code +9 - 0.385score
apple-notes
OPDhaker
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes).
SkillDFreshness: DClaude Code +9 - 0.382score
apple-reminders
OPDhaker
Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete).
SkillDFreshness: DClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get merge-pr running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
merge-pr skill. Agent Mart. https://agentmart.dev/skills/opdhaker-merge-pr-b21616 (last updated 2026-10-24)