Command Palette

Search for a command to run...

Назад к скиллам
скилл № 38165

autopilot-pr-merge-worker

Drive ONE already selected open pull request in microsoft/apm to mergeable. Classifies copilot-pull-request-reviewer[bot] inline review, runs…

БесплатноЗапускает вложенные скрипты
microsoftот microsoft★ 4 492 звезды на GitHub

Установить autopilot-pr-merge-worker в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

autopilot-pr-merge-worker - per-PR drive-to-merge convergence loop

Writes are optional via the activation card (write: on default). autopilot-pr-review-scheduler never spawns this skill. The PR review scheduler never comments, labels, assigns, or requests reviewers.

panel-review requests a review. status/accepted is the human action flag. No accepted, no review. If status/accepted is missing on this PR and every linked issue: remove panel-review if present, do not comment, stop. Never assign. The scheduler and panel stop the same way and leave no comment.

Activation card

activation_card: on. Before any PR read or GitHub write, emit this Enter card with every field filled. Missing field -> stop.

skill: autopilot-pr-merge-worker
skill_path: <resolved directory of this SKILL.md>
mode: run
subject: microsoft/apm#<pr-number>
path: merge
intent: drive one already-selected PR
origin: unattended | actor-session
write: on | off
repo: microsoft/apm
pr: <positive integer>
invocation: agentic-workflow | actor-session
invocation_mode: composed-implementation-review

Rules:

  • write defaults to on when the caller omitted it.
  • write: off returns the filled template only. Do not comment, add labels, remove labels, push, or request reviewers.
  • If write: on, post the one advisory comment via autopilot-comment (source_skill: autopilot-pr-merge-worker) and fold/push inside the PR's stated scope. Never assign. Never request the implementer as a reviewer. Do not call gh pr comment yourself.
  • origin fail-closed unknown -> unattended.
  • Unattended never assigns and never requests reviewers.
  • One PR. Do not nest a scheduler path.
  • plan_first defaults to yes. Do not fold, push, or request reviewers until Step 0.P exists. Copilot App spawn uses kickoff_mode: plan. If the session started interactive, still write that plan in-session and do not skip it. Wait for operator approval when a plan-mode gate is present.

After the loop, emit this Exit receipt:

skill: autopilot-pr-merge-worker
subject: microsoft/apm#<pr-number>
path: merge
write: on | off
posted: yes | no
pushed: yes | no
reviewer_requested: no
approved: n/a

This SKILL.md is the natural-language module derived from a genesis design packet; refactors re-run the genesis skill from that packet.

This skill is a BUILDING BLOCK, not the PR-review queue. autopilot-pr-review-scheduler never composes it. Invoke it by name when the caller asked to drive a PR to merge. It COMPOSES the autopilot-pr-review-worker skill for the advisory pass -- it does NOT re-implement panel review.

Boundary (what this skill does and does NOT do)

DOES: take ONE PR that already exists and drive it to a terminal landing-ready state; resolve cross-PR merge conflicts; emit the PR-facing advisory and supersede comments; return a schema-valid completion_return.

Does NOT: triage issues, decide which issues are worth fixing, open the first PR for an issue, choose the batch, or maintain the orchestrator's ground-truth table. Those are the parent orchestrator's responsibility. If you find yourself triaging or opening greenfield PRs, you are in the wrong skill.

How an orchestrator composes this skill

The parent scheduler, for each PR in its batch, spawns ONE autopilot-pr-merge-worker subagent with the spawn body in assets/worker-prompt.md. The orchestrator passes the inputs that prompt declares (PR_NUMBER, ISSUE_NUMBER, AUTHOR, HEAD_REPO, HEAD_BRANCH, MAINTAINER_CAN_MODIFY, REPO_ROOT, ORIGIN, optional PANEL_PRIOR). The subagent owns the whole convergence loop end-to-end and returns a completion_return.

After every driven PR returns ready-to-merge, the orchestrator runs the conflict-resolution phase: probe mergeability and, on DIRTY / BEHIND / CONFLICTING, spawn one conflict-resolution subagent per assets/conflict-resolution-prompt.md. The step-by-step gate procedure is in references/mergeability-gate.md (load it when entering that phase).

Dependency declaration (read before composing)

This skill is a same-repo LOCAL SIBLING. A consuming orchestrator MUST declare the dependency at its own distribution surface and PROBE for this skill before spawning. The probe is a tool call, not an assertion from recall (A9 SUPERVISED EXECUTION; truth #2 CONTEXT EXPLICIT):

test -f ../autopilot-pr-merge-worker/assets/worker-prompt.md \
  && test -f ../autopilot-pr-merge-worker/assets/completion-schema.json \
  && test -f ../autopilot-pr-merge-worker/scripts/owner_touch_gate.py \
  && echo "autopilot-pr-merge-worker present" \
  || echo "MISSING autopilot-pr-merge-worker - stop and ask the operator"

On a probe MISS the orchestrator stops and asks the operator rather than re-implementing the loop inline (avoids HAND-ROLLED HALLUCINATION and PHANTOM DEPENDENCY).

Thi

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • apm.yml
  • assets/ci-recovery-checklist.md
  • assets/completion-schema.json
  • assets/conflict-resolution-prompt.md
  • assets/copilot-classification-prompt.md
  • assets/fold-vs-defer-rubric.md
  • assets/pr-comment-templates.md
  • assets/worker-prompt.md
  • references/mergeability-gate.md
  • scripts/owner_touch_gate.py

FAQ

Что делает скилл autopilot-pr-merge-worker?

Drive ONE already selected open pull request in microsoft/apm to mergeable. Classifies copilot-pull-request-reviewer[bot] inline review, runs autopilot-pr-review-worker, folds (by default) every recommendation inside the PR's stated scope, pushes to the head branch or a superseding PR that preserves authorship via commit trailers, watches CI to green (`agent-merge` when that skill or `<agent_merge_state>` is present; otherwise `gh pr checks --watch`), and iterates under fixed caps until ready-to-merge, advisory-with-deferred, superseded, or blocked. Plan before any fold, push, or reviewer request. Never spawned by autopilot-pr-review-scheduler. That scheduler is advisory only. Invoke this skill by name when the caller asked to drive a PR to merge.

Как установить скилл autopilot-pr-merge-worker?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл autopilot-pr-merge-worker запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить autopilot-pr-merge-worker с