/agent-traffic-control:handoff-prompt-stale-user-hint-newer-statefrom agent-traffic-control
Gate execution of a structured runbook/handoff/plan prompt behind an AskUserQuestion when the user explicitly hints that newer state (issues filed, PRs merged, probes shipped) has landed since the prompt was authored. Use when: (1) the user invokes "execute docs/handoffs/session_NNN_*.md" or "run this plan" or "implement this ADR" AND adds an inline aside like "but please be aware of #A, #B, #C" / "watch out for PR #N" / "FYI #issue landed since this was written"; (2) before executing, a scan reveals issues/PRs in the user's hint list were filed/merged AFTER the prompt's authoring timestamp; (3) the newer artifacts could materially change what the prompt should do (e.g., a P1 issue surfacing that the prompt's design decision needs revisiting, a probe correction flipping a verdict, a sibling PR's merge claiming an ID the prompt reserved). Default behavior to avoid: execute the prompt verbatim and paper over the divergence in a post-merge comment. Correct behavior: pause, fetch current state of each hinted artifact, then AskUserQuestion with concrete options for how scope should shift. Generalises the probe-block case captured by `feedback_brief_says_probe_dont_close_on_permission_block` (project-feedback) — same root principle (don't barrel forward when brief's premise has changed) but the trigger is "user hint about newer issues" rather than "sandbox blocks probe".
Trending skills
7-day visitors to each skill page
Ships in agent-traffic-control. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You're asked to execute a structured prompt (handoff, runbook, plan, ADR, implementation
spec) that was authored at time T0. The user's invocation includes a casual aside —
"but please be aware of #X, #Y, #Z" / "watch out for PR #N" / "FYI X landed". Between
T0 and execution, those artifacts were filed or merged and they materially change
what the prompt should do.
The default behavior is to execute the prompt verbatim and surface any divergence in a post-execution comment. That's wrong: the user is telling you the premise has changed and is asking you to re-evaluate scope before executing.
Failure mode: you ship the prompt's original plan, the newer state's implications get documented retroactively, and the user has to file a follow-up PR (or worse — a fix-up PR after auto-deploy) to reconcile.
Activate this skill when all of these hold:
The user's instruction has two parts: (a) "execute / run / implement [structured prompt file or runbook]" AND (b) an aside flagging GitHub issues, PRs, commits, or state-of-the-world that should be "aware of" / "factor in" / "watch out for" / "FYI." Phrasings include:
Before any code changes, a quick check (gh issue view, gh pr view, git log)
shows at least one hinted artifact was filed/merged AFTER the prompt's authoring
timestamp (Date: line, frontmatter, git mtime, or first commit on the prompt's
feature branch).
The artifact's content is non-trivial — a P1+ issue, a merged PR, a probe verdict, a panel review request_changes. (If the hint is just "remember the deploy schedule is Friday" — that's calendar context, not a scope change. Don't fire this skill.)
Step 1: Pause before the first scope-affecting action.
Don't run git checkout to the prompt's working branch; don't start the rebase; don't
spawn implementation subagents. The cost of pausing for 1 AskUserQuestion turn is far
lower than the cost of a partial-execution rollback.
Step 2: Fetch the current state of each hinted artifact.
For each #N the user named:
# For each #N — issue or PR doesn't matter; gh detects the type:
gh issue view N --repo <org>/<repo> --json number,title,state,labels,body
gh pr view N --repo <org>/<repo> --json number,title,state,mergeable,merged
Pull the body. Look for:
p0, p1, bug, ml-correctness, security)Step 3: Map each artifact to its implication for the prompt.
For each artifact, write down in ≤1 sentence:
Step 4: Issue a single AskUserQuestion gating execution scope.
Present the user with concrete options. Bias toward giving them a default that respects the artifact's implications:
question: "The planned PR uses inputs that a newer issue flags as invalid.
How should I proceed with the merge?"
options:
- "Merge as-is + caveat" (execute verbatim, surface divergence post-merge)
- "Edit basis before merge" (re-scope per the newer issue; merge after)
- "Hold PR, design pivot" (don't merge today; resolve newer issue first)
- "Narrative-only edit + merge" (smallest delta to address the newer state)
Each option's description field should explicitly cite what changes and what stays
the same.
Step 5: Execute the user's choice.
If "execute verbatim": run the original prompt; flag the divergence in PR description and follow-up comments.
If "edit / pivot / hold": adjust scope. Update your task list with the new plan before touching code. The prompt becomes a partial input, not a script.
Step 6: Record the gate in the post-merge artifacts.
PR description: include a "Updated after #X amendment" subsection. Commit message: "...post-#N narrowing." Memory file: capture the user-hint-triggered-rescope as a session-level annotation so future similar prompts get the gate routine in advance.
You did this right if:
git checkout to the impl branch or
any code-modifying tool call.A handoff asks the next session to merge a dashboard update. The user adds that an input-quality issue and a correction PR have appeared since the handoff.
The current issue identifies invalid inputs in the original metric definition. The correction establishes a replacement input set: it includes a valid input from the old set plus a newly admitted input. It is a replacement basis, not merely a subset of the old one. The dashboard's calculation and explanation must agree about that distinction.
The agent reads the current issue and correction, then presents the concrete scope choices: retain the old definition with an explicit limitation, adopt the replacement definition, or hold the change pending a product decision. The user chooses the replacement. The agent updates both calculation and explanation, validates their agreement, and records which newer evidence changed the plan.
This example uses no real project, issue identifiers, measurements, or deployment history. Its lesson is the scope decision triggered by newer evidence.
feedback_brief_says_probe_dont_close_on_permission_block (project-feedback): the
same don't-barrel-forward principle, but the trigger here is a user's verbal hint
about newer state, not a sandbox block on a required probe.subagent-pre-existing-misattribution (global):
catches when a subagent claims a task is its own work when it was actually done in
a prior session. That skill protects against attribution drift; this skill protects
against scope drift.procedure-doc-reads-pending-but-already-shipped
(global): the NO-HINT variant — same "a procedure doc's tense lies about its execution
state" family, but there the user gives no #N hint and you must self-discover during a
"confirm/verify/execute" request that a parallel session already ran the doc. This skill
fires on an explicit user hint + gates on AskUserQuestion; that one fires on a live-state
probe you initiate yourself.auto-mode-handoff-deploy-permission-still-denied
(global): also about handoff execution, but the failure mode is "Bash permission
classifier denies despite AskUserQuestion answer" rather than "prompt's premise has
changed."feedback_brief_says_probe_dont_close_on_permission_block — related principle
for a required probe blocked by the execution environment.What SKILL.md sets; muted values are Claude Code's defaults
118 skills in this plugin
/agent-refusal-with-evidence-beats-literal-complianceA dispatched agent that does exactly what you asked can ship a defect you would
have stopped yourself, because it can see something at the worksite that you
could not see when you wrote the brief. Use when: (1) you are writing a brief
that prescribes a specific fix, threshold, wording or value rather than the
outcome you want; (2) an agent reports that it did not do what you asked and
you are deciding whether that is insubordination or judgement; (3) an agent
asserts "this is fine" or "not needed" with no measurement behind it; (4) you
are reviewing overnight output and want to know which decisions were checked
and which were assumed. Two halves, and both are needed: give the agent
explicit permission to satisfy the INTENT of an instruction while refusing its
letter, and REQUIRE the evidence with the refusal — what it built or measured,
what that showed, what it did instead. Evidence is the whole difference between
a refusal you can bank and one you have to re-litigate. Four agents correctly
declined an instruction in a single run; one built the suggested fix, measured
that it turned a silent safe refusal into a permanently red pipeline, and
reverted it unpushed.
/auto-merge-rearms-while-agent-live-kill-then-disarm-verifyDisarming auto-merge on a PR whose agent is still running does not hold it —
the agent re-arms within minutes and the PR merges, because arming is a step in
the agent's brief and disarming is not an instruction to the agent at all. Use
when: (1) you want to STOP a pull request from merging that an agent opened and
armed, for review, for a rethink, or because it is landing into a queue you are
trying to drain; (2) a PR you disarmed merged anyway; (3) you are telling agents
which PRs are on hold and want the hold to be enforced rather than announced;
(4) you are about to run `gh pr merge --disable-auto` and have not decided what
to do about the agent. The order is KILL THE AGENT FIRST, THEN DISARM, THEN
VERIFY the disarm by reading `autoMergeRequest` back — a disarm you did not read
back is not a hold. The stronger form needs no ordering at all: convert the PR
to a draft with `gh pr ready --undo`. A draft cannot merge whatever any agent
does to it, so the hold survives an agent you missed, an agent that restarts,
and an agent you did not know about.
/batch-member-cites-a-path-only-a-non-member-addsYou wrote something correct that the default reader cannot reach: a batch member citing a
path only a NON-member adds, or a rule, ruling or ledger sitting on an unlanded branch.
/batch-merge-subject-is-not-evidence-a-member-landedYou are about to close, delete the branch of, or mark as landed a pull
request because a batch, roll-up or merge-train commit on the target branch
names it in the subject line, and because the member's own commits all
predate that merge by wall clock. Neither of those is evidence. A batch
branch is assembled at some moment BEFORE it merges, so anything the member
pushed after assembly is outside it, and the subject records INTENT at
assembly time rather than CONTENT at merge time. Use before closing a
member, when an ancestry check against a squashed batch says no, or when a
member's branch still shows commits ahead of the target. Compare file
content against the target branch instead, expecting exactly one legitimate
difference: the shared aggregate file every member appends to.
/check-a-stale-branch-is-not-undoing-newer-main-workA branch built on an out-of-date main is about to merge, or has merged, and may undo work
that landed since. Use when a green, conflict-free PR deletes files you never touched,
newer values or a whole redesign vanish after a sibling PR merged, rows of a shared ledger
(tracker, registry, CHANGELOG) disappear or revert, or when `git diff main...HEAD` or a
reviewer says your small PR touches dozens of files you did not change.
/ci-leg-skipping-moves-minutes-it-does-not-remove-themYou are about to propose, price or approve a CI cost saving that works by
making a job or matrix leg SKIP on pull requests — a path filter, a safe
list, a changed-files gate, an exemption list. Check first whether the
pipeline runs a complement or backstop on merge, on push, or nightly:
many do, and then the legs a pull request skipped are exactly the legs some
later run executes, so a branch that goes green once and merges bills the
same total either way and the wall clock does not move at all. Use when
pricing a filter change, when a percentage saving is quoted with no basis,
or when choosing between filtering legs and batching pull requests. The
question that separates money from bookkeeping is whether the change
removes RUNS or merely moves LEGS.
npx claudepluginhub wan-huiyan/agent-traffic-control --plugin agent-traffic-control