/agent-traffic-control:task-framing-claims-need-subagent-grep-verifyfrom agent-traffic-control
When dispatching a sub-agent (Agent / Task) to WRITE content that cross-references existing code paths, explicitly grant + expect grep-driven correction of the dispatcher's task-framing claims. Use when: (1) your prompt to a sub-agent asserts facts about what an existing codebase contains ("X is NOT in v6.1", "Y is already implemented at module Z", "feature F handles case G"); (2) the sub-agent will produce a document, analysis, or design that consumers will treat as authoritative; (3) the sub-agent has Read/Grep/Glob access to the code being claimed about. Without an explicit "verify these claims + tag corrections" instruction, a sub-agent will either (a) faithfully reproduce the dispatcher's wrong claim, or (b) silently substitute its own view without flagging the contradiction — both leave the dispatcher with a doc that LOOKS right but is stale. Companion to `factcheck-subagent-needs-complete-sources` (which covers feeding fact-check agents complete sources) — this skill covers the INVERSION: telling write-content agents they can correct YOU.
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 dispatch a sub-agent to write content (analysis doc, design doc, implementation plan, code review summary) that needs to cross-reference existing code paths. To give the sub-agent a head start, you assert facts in the prompt about what's currently in the codebase:
If any of those framing claims are wrong, the sub-agent has two failure modes — both bad:
Faithful reproduction. The sub-agent treats your prompt as ground truth, doesn't grep to verify, and produces a doc with the wrong premise baked in. Downstream readers can't tell the doc was based on a faulty premise.
Silent substitution. The sub-agent greps, finds you wrong, and quietly substitutes its own (correct) view — but doesn't flag the contradiction. You think your prompt was correct because the doc reads sensibly; the discrepancy with your mental model never surfaces.
The fix is ~3 lines of prompt: explicitly grant the sub-agent permission to verify and correct your task-framing claims, and tell it to TAG any corrections so the contradiction is visible.
This skill applies when you're about to launch an Agent / Task subagent to produce written content AND any of these are true:
If none of these are true (sub-agent is doing pure exploration, or it has no code access, or output is throwaway scratch work), this skill doesn't apply.
Add an explicit verify-and-tag block to the sub-agent prompt. Three mandatory elements:
State that the sub-agent is expected to find errors in your framing:
"The task-framing claims below describe what I believe v6.1 currently contains. I haven't grep-confirmed every one. Verify each against the source before relying on it; if you find a contradiction, proceed with the corrected version."
Without the explicit grant, even capable sub-agents default to deference.
Don't make the sub-agent hunt for which file to verify against. Name the canonical source(s):
"Verify against:
<analytics_pkg>/dataform/v10_feature_matrix_<analytics_pkg>.sqlx
<feature_pkg>/pipeline_stage.py+cr_scoring_serve_v6/. Use grep / Read; do not rely on documentation alone."
Tagging is what surfaces the contradiction back to you:
"For each finding, tag it
[VERIFIED](matches my framing) or[Contradicts task framing](you found my claim wrong — proceed with your corrected version and explain the discrepancy in 1-2 sentences) or[NEEDS-VERIFICATION](you couldn't grep-confirm but the claim is plausible). Cite file:line for[VERIFIED]items."
The tag is structural feedback. Without it, corrections silently merge into the doc body and you never learn your framing was wrong.
After the sub-agent returns, scan its output for [Contradicts task framing] tags. If any appear:
If you see no [Contradicts task framing] tags and the deliverable feels
suspiciously confident on a topic where you weren't sure: spot-check 2-3
[VERIFIED] citations by greping the cited file:line yourself. If those
resolve, trust the rest.
Bad sub-agent prompt (no correction permission):
Write docs/analysis/foo.md covering 8 v7 retrain implications:
1. doc-eligibility / has_required_doc — NOT in v6.1, candidate add
2. segment_type — NOT in v6.1 feature set, candidate add
3. region_status — needs derivation, candidate add
... etc
Good sub-agent prompt (S217's actual flow):
Write docs/analysis/foo.md covering 8 v7 retrain implications.
The 8 findings below come from a fact-check panel against the canonical
sheet. I have NOT grep-confirmed every claim about what v6.1 currently
contains. Verify each against `<analytics_pkg>/dataform/v10_feature_matrix_
<analytics_pkg>.sqlx` + `<feature_pkg>/pipeline_stage.py` +
`cr_scoring_serve_v6/`. For each finding, tag it [VERIFIED]
or [Contradicts task framing] or [NEEDS-VERIFICATION] with file:line
evidence. If you find me wrong, proceed with the corrected version and
explain the discrepancy in 1-2 sentences.
1. doc-eligibility / has_required_doc — NOT in v6.1, candidate add
2. segment_type — NOT in v6.1 feature set, candidate add
... etc
S217 outcome: sub-agent grep-verified all 8 findings. Two came back
[Contradicts task framing]:
Finding 2 (segment_type): "NOT in v6.1" was wrong —
app_record_typeIS already a feature in v6.1 at lines 226/769/1039. The v7 implication is vocabulary pinning post-2026-04-17 model promotion, NOT adding.
Finding 5 (region_status): "needs derivation" implied absence — it IS already pulled at line 585 into
crm_derived_featuresand surfaced at line 1267. The v7 question is grain semantics + lead- stage proxy quality, not whether to add.
Without the correction-permission grant, both findings would have shipped as "add this feature to v7" — wrong recommendation, would have shown up as embarrassing in v7 design review.
Why explicit grant is needed. Modern sub-agents are trained to be helpful and to follow dispatcher instructions. When the dispatcher's framing is factually wrong but plausibly stated, the default is to faithfully reproduce. The explicit "verify + correct + tag" instruction overrides the default-deference.
Why tagging matters more than correcting. Without tags, a sub-agent that silently corrects your framing produces a doc that LOOKS like it agreed with your prompt — but in reality your prompt was wrong AND you never learned it was wrong. The next session you'll repeat the same wrong framing. Tags break the cycle.
Where this is most valuable. High-leverage analysis docs, design plans, code-review summaries, anything that downstream consumers will cite as authoritative. Lower-value where the sub-agent is doing pure exploration with no claim-to-fact.
Related failure modes that this skill does NOT cover:
factcheck-subagent-needs-complete-sources — about giving fact-check
sub-agents complete sources (not the inversion this skill covers)subagent-pre-existing-misattribution — about attributing pre-existing
issues to sub-agent work (different blame-direction)agent-review-panel-stale-cite-verification — about reviewers verifying
their cites are not stale (different scope: reviewer self-check, not
dispatcher claim correction)Skill activation heuristic. Before writing an Agent / Task prompt that includes "X is not in Y" or "Z is already implemented at W" type claims, ask: would I bet my next deliverable that this is currently true in the codebase? If no — add the verify-and-tag block.
the-project-repo),
docs/analysis/2026-05-27-s216-findings-for-v7.md — sub-agent
caught 2 of 8 task-framing errors via grep-verify against
v10_feature_matrix_<analytics_pkg>.sqlx.factcheck-subagent-needs-complete-sources (covers
feeding fact-check agents complete sources — different direction)~/.claude/projects/.../memory/lessons.md #129 (the
S217 origin write-up)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub wan-huiyan/agent-traffic-control --plugin agent-traffic-control118 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.