Merge pr

From adoresever/AGI_Ananas · View interactive version

Merge pr is an AI agent skill from the GitHub repository adoresever/AGI_Ananas. Script-first deterministic squash merge with strict required-check gating, head-SHA pinning, and reliable attribution/commenting.

How to use this skill

Skill file

Merge PR

Overview

Merge a prepared PR only after deterministic validation.

Inputs

Safety

Execution Contract

  1. Validate merge readiness:
scripts/pr-merge verify <PR>

Backward-compatible verify form also works:

scripts/pr-merge <PR>
  1. Run one-shot deterministic merge:
scripts/pr-merge run <PR>
  1. Capture and report these values in a human-readable summary (not raw key=value lines):

Steps

  1. Validate artifacts
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
  1. Validate checks and branch status
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.

  1. Merge deterministically (wrapper-managed)
scripts/pr-merge run <PR>

scripts/pr-merge run performs:

  1. Manual fallback (only if wrapper is unavailable)
scripts/pr merge-run <PR>
  1. Cleanup

Cleanup is handled by run after merge success.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.