stacked-mr
Autonomous AFK mode: build a stack of owner-scoped PRs/MRs, then batch-review them to the bar. Human merges. Use on /stacked-mr or 'stack PRs'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Autonomous AFK mode: build a stack of owner-scoped PRs/MRs, then batch-review them to the bar. Human merges. Use on /stacked-mr or 'stack PRs'.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Register this session with TerMinal Remote so it can be followed and steered from the phone. Use on /remote-terminal, 'sync this to my phone', 'I'm heading out — keep me posted', or before starting long work you want to supervise while away.
Register this session with TerMinal Remote so it can be followed and steered from the phone. Use on /remote-terminal, 'sync this to my phone', 'I'm heading out — keep me posted', or before starting long work you want to supervise while away.
Compatibility launcher for the code-review agent. Delegates a GitHub/GitLab PR review to Codex: deterministic preflight does recon, then Codex scores six axes into one artifact at .TerMinal/reviews/<pr>/<sha>.md (v2) or .reviews/<pr>/<sha>.md (legacy v1). Use on /code-review or 'review this PR'.
Human-review digest for a PR/MR — chunks the diff into a noise-filtered, risk-ranked, code-first review surface (green/red diffs, 🟢/🟡/🔴, design-decision callouts) WITHOUT abstracting the code away. Deterministic chunker + one bounded codex pass. Sits alongside /code-review (the gate) and /iterate (tests). Use on /digest or 'digest this PR for review'. Renders in TerMinal.
Audit docs/ and ~/.claude/docs/ for rot — broken refs, stale runbooks, ADR contradictions, architecture drift, orphan CLAUDE.md. Reports only; never auto-edits. Use on /document-audit or 'check doc health'.
Sweep recent changes and propose doc updates (ADRs, runbooks, learnings, architecture, per-folder CLAUDE.md), one candidate at a time. Use on /document, 'capture decisions', or natural post-commit/post-PR pauses.
| name | stacked-mr |
| description | Autonomous AFK mode: build a stack of owner-scoped PRs/MRs, then batch-review them to the bar. Human merges. Use on /stacked-mr or 'stack PRs'. |
Builds a stack of PRs/MRs without reviewing each one immediately, then runs a
batch review pass at the end. The canonical owner, knowledge, artifact, and
follow-up contract is
docs/workflow/agent-process.md.
main
-> 0012-first-ticket PR #1 base: main
-> 0013-second-ticket PR #2 base: 0012-first-ticket
-> 0014-third PR #3 base: 0013-second-ticket
Each PR/MR diff is against its parent branch. The human merges bottom-up.
For each runnable ticket:
now / next ticket by priority within the requested scope.in-progress.docs/workflow/agent-process.md.Do not run the code-review agent during this phase except for explicit
trust-critical escape hatches.
code-review agent pass per PR/MR in isolated worktrees.request-changes branches, re-review only affected PRs/MRs, and restack
children with --force-with-lease to feature branches only.The per-MR reviews above are the automated merge gate. They are not a human
read surface — a human would still open N diffs. Produce ONE combined
/digest over the whole stack so the human reviews the
batch once. Because each MR is stacked on the previous, the stack tip already
contains the union of the batch — the joint diff is free.
base=main, source = the stack-tip branch, as a
draft labeled do-not-merge:
# GitLab
glab mr create --target-branch main --source-branch "$STACK_TIP" --draft \
--label do-not-merge \
--title "[BATCH] <scope> — joint review (do not merge)" \
--description "Combined read surface for !#A..!#N. Members merge individually, bottom-up."
# GitHub: gh pr create --base main --head "$STACK_TIP" --draft --title ... --label do-not-merge
Record its number as $JOINT and the member MR numbers.code-review agent once on the joint MR (full main...stack-tip
diff). That same codex session also emits the /digest patch — no extra
model run. Around it run the deterministic digest stages with
--joint "<member-csv>" (see /digest Stages 1 + 3).The joint MR is never merged. Close it when the stack has fully landed (it's a
draft + do-not-merge; a future merge-sync extension can automate this).
stuck
with the artifact path and continue independent work.Stack of N PRs/MRs, merge bottom-up:
#1 0012-first-ticket base: main approve / tests pass
#2 0013-second-ticket base: 0012-first-ticket request-changes
Include PR/MR URLs, ticket ids, owners, bases, verdicts, test status, HITL items, delegated artifact paths, and follow-up tickets.
--force-with-lease.do-not-merge — a read surface only. Never merge it,
never let it gate the member MRs.