Prepare pr

From adoresever/AGI_Ananas · View interactive version

Prepare pr is an AI agent skill from the GitHub repository adoresever/AGI_Ananas. Script-first PR preparation with structured findings resolution, deterministic push safety, and explicit gate execution.

How to use this skill

Skill file

Prepare PR

Overview

Prepare the PR head branch for merge after /review-pr.

Inputs

Safety

Execution Contract

  1. Run setup:
scripts/pr-prepare init <PR>
  1. Resolve findings from structured review:
  1. Commit scoped changes with concise subjects (no PR number/thanks; those belong on the final merge/squash commit).
  1. Run gates via wrapper.
  1. Push via wrapper (includes pre-push remote verification, one automatic lease-retry path, and post-push API propagation retry).

Optional one-shot path:

scripts/pr-prepare run <PR>

Steps

  1. Setup and artifacts
scripts/pr-prepare init <PR>

ls -la .local/review.md .local/review.json .local/pr-meta.env .local/prep-context.env
jq . .local/review.json >/dev/null
  1. Resolve required findings

List required items:

jq -r '.findings[] | select(.severity=="BLOCKER" or .severity=="IMPORTANT") | "- [\(.severity)] \(.id): \(.title) => \(.fix)"' .local/review.json

Fix all required findings. Keep scope tight.

  1. Update changelog/docs (changelog is mandatory in this workflow)
jq -r '.changelog' .local/review.json
jq -r '.docs' .local/review.json

Changelog gate requirement:

  1. Commit scoped changes

Use concise, action-oriented subject lines without PR numbers/thanks. The final merge/squash commit is the only place we include PR numbers and contributor thanks.

Use explicit file list:

scripts/committer "fix: <summary>" <file1> <file2> ...
  1. Run gates
scripts/pr-prepare gates <PR>
  1. Push safely to PR head
scripts/pr-prepare push <PR>

This push step includes:

  1. Verify handoff artifacts
ls -la .local/prep.md .local/prep.env
  1. Output

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.