What problem does it solve?
When a PR is kicked from the Trunk merge queue, developers waste time guessing whether the failure was real, a flake, a conflict, or a repo-wide issue, and often spam-retry the queue. This Skill provides a deterministic decision chart that classifies each kick and prescribes exactly one action: wait, hold and fix, requeue once, or escalate.
Core Features & Use Cases
- Queue state classification: Reads Trunk's sticky bot comments and shadow PRs via helper scripts to determine states like superseded, conflict, kicked_failed, or blocked, since Trunk publishes no check runs in this repository.
- Six-verdict decision chart: Walks an ordered chart covering superseded commits, non-mergeable PRs, real failures, one-off flakes, repo-wide flaky/infra issues, and unknown cases, each with a defined next step.
- Unattended scheduled sweeps: Supports a cron-driven triage routine with marker-based deduplication, a 10-verdict cap, and a gated requeue switch (MQ_TRIAGE_ALLOW_REQUEUE) so kicks get verdicts without anyone asking.
- Use Case: A developer asks why their PR was removed from the merge queue; the Skill reads the queue state, identifies a known flaky test as the cause, and requeues once instead of letting them retry blindly.
Quick Start
Ask the agent to triage why PR 12345 was kicked from the merge queue and follow the decision chart to report the verdict and next step.