db-access-review-subagent-needs-explicit-probe-budget

db-access-review-subagent-needs-explicit-probe-budget is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 77 tokens per session (1,562 once invoked), scanned A, original, MIT.

A guide for assigning clear time and tool-use limits to agents that review changes using live databases, cloud services, or shell commands.

In plain words
What is it for?
Use it when dispatching agents to verify code, pull requests, or findings against live systems.
Why use it?
It reduces wasted time, expensive exploratory queries, and lost results when a long-running review connection closes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code.

Part of the agent-traffic-control plugin — 105 skills shipped together

Good fit Use it when dispatching agents to verify code, pull requests, or findings against live systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wan-huiyan/agent-traffic-control --skill db-access-review-subagent-needs-explicit-probe-budget
Clone the repo
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control

Made for: Claude Code.

Or install agent-traffic-control, the plugin that ships this one along with the rest of its 105 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for db-access-review-subagent-needs-explicit-probe-budget

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for db-access-review-subagent-needs-explicit-probe-budget

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/db-access-review-subagent-needs-explicit-probe-budget.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,562 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01562
Opus 5 $0.00039 $0.00781
Sonnet 5 $0.00015 $0.00312
Haiku 4.5 $0.00008 $0.00156

Measured 6d ago against content hash e170bd288055, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

db-access-review-subagent-needs-explicit-probe-budget scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/agent-traffic-control/skills/db-access-review-subagent-needs-explicit-probe-budget/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

A review subagent with live-DB access needs an explicit probe budget

Problem

You dispatch a general-purpose subagent to review a PR or verify findings, and it has live database / cloud / Bash access. Unprompted, it does the thorough thing: re-derives every claim from scratch, running expensive exploratory queries (full-window joins, multi-date sweeps, dry-runs). Two failure modes follow:

  1. It runs very long (20–40+ min of wall time on heavy probes), far past what the review needs.
  2. It can socket-close mid-run. The Agent tool returns API Error: The socket connection was closed unexpectedly with a non-zero tool_uses count but no final assistant message — so the agent did real work (11, 20 tool calls) but its verdict was never delivered. The output is lost, and it is not resumable from the orchestrator unless a SendMessage/continue tool is available (often it is not). You've burned the tokens and the wall-clock for nothing.

The root cause is that an unbounded reviewer treats "review this change" as "independently re-establish the entire ground truth," which is exactly the slow, fragile thing — when the orchestrator has usually ALREADY established that ground truth and just needs a second pair of eyes on the diff.

Context / Trigger Conditions

  • About to dispatch a code-review / verification / research agent with BigQuery / gcloud / psql / Bash.
  • An Agent result shows API Error: The socket connection was closed unexpectedly plus tool_uses: N (>0), subagent_tokens: 0, and no Strengths/Issues/Assessment in the output.
  • A dispatched reviewer has no return after ~20–30 min.
  • You (orchestrator) already ran the expensive live probes and confirmed the numbers in the PR body.

Solution

Bound review/verify subagents explicitly in the dispatch prompt:

  1. Hard budget: "Target under ~6 minutes, ≤8 tool calls." A reviewer with a budget self-limits to the high-value checks.
  2. Forbid the expensive re-derivation: "Do NOT run BigQuery probes / multi-table joins over date ranges. I already verified — your job is the STATIC diff review + run only the fast unit test (pytest …)." Hand it the ground truth as given facts to sanity-check cheaply, not to reproduce.
  3. Prefer several short bounded agents over one open-ended one — diversity of lens at low per-agent risk; if one socket-closes you still have the others.
  4. On a socket-close: capture the returned agentId. If a SendMessage/continue tool exists, try resuming for just the verdict (no new probing). If not, re-dispatch a fresh bounded agent — do not assume the lost agent "basically finished."

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed · +1 lines e170bd288055
  2. 11d ago First seen · 95 lines · 77 tokens per session scan A c4ded6b1af45

Subscribe to this mod's changes

db-access-review-subagent-needs-explicit-probe-budget is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed 6d ago), licensed MIT. It adds 77 tokens to every session and 1,562 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

codex-coplan

Bring in an external model (Codex) to co-develop a plan — both models draft independently, align on disagreements, and merge into one plan. Load this only when the user explicitly names Codex (e.g. "let's discuss this with Codex," "what does Codex think about this approach") — don't auto-trigger just because a plan…

jiayx01/codex-claude-skills · 92 tokens

codex-orchestrator

Delegate execution tasks to Codex (Claude plans and reviews). Load this only when the user names Codex explicitly — no matter how big the task is, if the user hasn't mentioned Codex, do it yourself.

jiayx01/codex-claude-skills · 49 tokens

good-bad-ugly

Use when the user asks to "orchestrate", "conduct", invoke "good bad ugly" / "gbu", or tackle a large multi-part coding task (audits, refactor sweeps, multi-feature sessions, "clean this up and fix everything") — anything too big for one linear pass. Runs the tiered orchestration workflow: The Good (brain) plans and…

XyndoX/good-bad-ugly · 131 tokens

orchestrate

Use only when the user explicitly types /orchestrate:orchestrate to decompose a large task, spawn a tree of parallel worker/subplanner/verifier subagents, and collect structured handoffs. Do not invoke autonomously.

odysseus0/claude-orchestrate · 54 tokens

api-testing

HTTP API testing for TypeScript (Supertest) and Python (httpx, pytest). Test REST APIs, GraphQL, request/response validation, authentication, and error handling.

secondsky/claude-skills · 39 tokens

bun-test-coverage

Use for test coverage with Bun, --coverage flag, lcov reports, thresholds, and CI integration.

secondsky/claude-skills · 26 tokens