merge-pr
Integrate an exact reviewed PR under repository policy, choose truthful history semantics, and verify cleanup
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Integrate an exact reviewed PR under repository policy, choose truthful history semantics, and verify cleanup
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Clade goal-driven autonomous improvement loop (Blueprint architecture — deterministic pre/post phases + LLM supervisor/worker nodes, converges when goal met or max-iter hit). NOT the Claude Code built-in /loop (which polls a prompt on an interval like `/loop 5m /foo`) — if the user wants interval polling, route to the built-in.
Adaptive, resumable Git delivery across repositories and agent runtimes — probe policy, checkpoint coherent work, publish, review, integrate, and verify cleanup
Adaptive, resumable Git delivery across repositories and agent runtimes — probe policy, checkpoint coherent work, publish, review, integrate, and verify cleanup
Inspect or select a Clade execution connection while keeping agent runtime, inference provider, wire protocol, and model distinct. Use for Claude/Codex runtime selection, Anthropic/OpenAI/MiniMax/Kimi/custom gateways, model routing, or connection troubleshooting.
Inspect or select a Clade execution connection while keeping agent runtime, inference provider, wire protocol, and model distinct. Use for Claude/Codex runtime selection, Anthropic/OpenAI/MiniMax/Kimi/custom gateways, model routing, or connection troubleshooting.
Equipment manager for Claude Code projects — inventory local skills/agents/scripts, audit external upstream repos (red-flag + prompt-injection screening), and sync selectively after user approval. Absorbs container-layout skill repos AND single-skill-at-root repos (e.g. a company design-system repo). Project-agnostic.
| name | merge-pr |
| description | Integrate an exact reviewed PR under repository policy, choose truthful history semantics, and verify cleanup |
This package composes the provider-neutral Clade core contract with the native Codex surface adapter. Run the workflow directly in Codex; do not launch another agent CLI or route it through Clade MCP.
Package provenance:
clade.delivery/v1codex/v1$clade:merge-prconfigs/skills/<name>You are the Merge PR integrator. Use the shared delivery controller and the
target forge's live policy. Do not hard-code squash, GitHub, main/master, or
remote branch deletion.
--strategy auto|squash|rebase|merge (default auto)Locate/read the sibling delivery skill and relevant surface overlay. Run its
context and state commands. Re-query the live PR and repository immediately
before integration.
Require explicit merge authority in the active delivery or repository automation policy. An authoring agent cannot count its own review as independent approval and cannot infer integration authority from “ship”, “commit”, or “open a PR”.
If no matching delivery exists, construct a read-only context and require the same exact-SHA/candidate evidence before creating a state record. Never weaken the gates just because the PR predates Clade state.
Inspect the PR diff, commits, base/head, reviews, conversations, rulesets, required checks, merge queue/auto-merge policy, and live child PRs.
Never merge a multi-feature PR; split it with $clade:create-pr first. Supporting
tests/migrations/generated files/docs remain with their behavior.
Block—not warn—when:
There is no conversational override for a red/pending protected gate. Do not
use admin bypasses, --no-verify, or unsupported confirmation flags.
Run:
python3 "$DELIVERY_PY" ready \
--id "<id>" --pr "<number-or-url>" \
--strategy auto|squash|rebase|merge
The controller verifies the recorded candidate SHA equals the current PR head, requires completed successful checks, discovers enabled methods and child PRs, and emits one exact command containing:
--match-head-commit <reviewed-head-sha>
auto chooses only when the history semantics are unambiguous:
Merge queues and auto-merge are repository integrations, not bypasses. Use the native queue when required; otherwise execute exactly the emitted strategy and head lock.
After forge confirmation, retrieve the actual landed commit and record:
python3 "$DELIVERY_PY" merged \
--id "<id>" --head-sha "<locked-head>" \
--merge-sha "<landed-sha>" --strategy "<actual-strategy>"
For stacks, merge bottom-up. If a parent was squash/rebase merged, every child must be retargeted/restacked onto current base, pushed only with an explicit force-with-lease matching freshly fetched remote SHA on its owned branch, and fully retested. Never claim the stack healthy based on pre-parent evidence.
Resolve the real default branch and remote; do not assume names.
--ff-only.python3 "$DELIVERY_PY" verify-clean --id "<id>"
If squash/rebase makes the source branch not an ancestor of default, an exact
force-delete is allowed only after the forge reports merged, the landed diff is
verified, and the branch lease belongs to this delivery. Report that it was
deleted after squash rather than pretending safe -d ancestry applies.
Completion requires clean tree, default branch checked out, local/remote
default exactly aligned, no local/remote topic branch, descendants repaired,
and the delivery state CLEAN.
$clade:delivery, and use $clade:<skill-name> for companion workflows.AGENTS.md; read legacy CLAUDE.md only when it
is trusted repository guidance.git worktree list --porcelain before checkout, rewrite, or cleanup:
one branch cannot be checked out by multiple worktrees.Integrator workflow for an already reviewed Clade delivery. It never treats authorship as merge authority, never bypasses pending/red gates, locks the reviewed head SHA, respects repository merge policy and live child ancestry, and does not finish until mainline/branch cleanup is verified.
If this workflow changes files or external state:
git status for a
repository task.DONE while task-owned changes are uncommitted. Use or continue
$clade:delivery and create a repository-compliant checkpoint or preserve
the work when committing is unavailable.BLOCKED or NEEDS_CONTEXT rather than
appending a "not committed/pushed/deployed" caveat after DONE.