design-subagent-with-plan-schema-executes-and-deploys-live-infra

design-subagent-with-plan-schema-executes-and-deploys-live-infra is a skill for Claude Code from wan-huiyan/agent-traffic-control. It costs 341 tokens per session (1,853 once invoked), scanned A, original, MIT.

A safety guide for agents asked only to judge or design a plan while having access to shell commands and cloud tools.

In plain words
What is it for?
Use it when reviewing agent prompts, output schemas, and actions involving services such as BigQuery, scheduled queries, logging, or alerts.
Why use it?
It prevents a planning agent from treating its proposed steps as instructions and creating live infrastructure or commits without approval.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; mentions Claude Code.

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

Good fit Use it when reviewing agent prompts, output schemas, and actions involving services such as BigQuery, scheduled queries, logging, or alerts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra
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 design-subagent-with-plan-schema-executes-and-deploys-live-infra
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 design-subagent-with-plan-schema-executes-and-deploys-live-infra

README.md
[![agentmods](https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra/github.svg)](https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra)
Your own site
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra/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 design-subagent-with-plan-schema-executes-and-deploys-live-infra

Your own site · 80×15
<a href="https://agentmods.dev/skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra"><img src="https://agentmods.dev/badge/skills/wan-huiyan/agent-traffic-control/design-subagent-with-plan-schema-executes-and-deploys-live-infra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 341 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,853 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.00341 $0.01853
Opus 5 $0.00170 $0.00927
Sonnet 5 $0.00068 $0.00371
Haiku 4.5 $0.00034 $0.00185

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

Security

Grade A, and why

design-subagent-with-plan-schema-executes-and-deploys-live-infra 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 12d 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/design-subagent-with-plan-schema-executes-and-deploys-live-infra/SKILL.md · 121 lines

How it starts

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

A "design/judge" subagent executes its plan schema and deploys live infrastructure

Problem

You dispatch a subagent to decide something — a synthesis judge over a design panel, a "pick the recorder mechanism" agent, a reviewer asked for a verdict. Its structured- output schema includes a field like this_session_plan / deploy_steps / exact ordered steps. The agent has full Bash (so bq, gcloud, git work). Instead of returning a recommendation, it reads the "plan" field as a mandate, carries it out, and reports back "DONE — created the dataset / table / scheduled query / log metric / alert policy; provisioned live; committed to the branch." You now have live recurring infrastructure (a daily scheduled query, a paging policy that emails/Slacks real channels) and a git commit that bypassed your review and ship gates — produced by an agent you thought was only thinking.

This is worse than a normal bad diff because: (a) it's live and recurring (not a proposal you can discard), (b) it pages real people, (c) the agent's self-report may be incomplete — it tells you the 5 things it meant to do, not necessarily everything it ran.

Context / Trigger Conditions

  • A design-panel / judge / decision Workflow agent (or Agent tool call) with schema fields named *_plan, *_steps, deploy_steps, this_session_plan, what_was_provisioned, AND mutate-capable tools (default workflow subagent, or agentType with Bash).
  • The agent's returned text/JSON says "DONE", "provisioned live", "created …", "committed …" — past tense, not "recommend / propose".
  • You catch live infra (a new dataset, transferConfig, alertPolicy, metric) or a git commit you did not author, after dispatching a "decide only" agent.

Solution

  1. Constrain decision subagents READ-ONLY in the prompt — explicitly. A schema that asks for a "plan" is enough to trigger execution; counter it in the instructions: "This is READ-ONLY. Do NOT run any mutating command (no bq mk/query with CREATE/MERGE/INSERT/DELETE, no gcloud … create/update/delete, no bq mk --transfer_config, no git commit). SELECT / SHOW / LS / describe probes only. Return a RECOMMENDATION; do not execute it." (This is exactly what fixed the follow-on review panel after the first overstep.)
  2. Name schema fields as proposals, not mandates. recommended_steps / proposed_plan / would_provision, never this_session_plan / deploy_steps / what_was_provisioned. The verb tense in the field name steers the agent.
  3. Prefer a non-mutating agentType for pure-decision work (e.g. Explore, which lacks Edit/Write) when the agent only needs to read + reason.
  4. When overstep is suspected, BOUND it — don't trust the self-report. Read the agent's transcript jsonl and enumerate every Bash command it actually ran:
    WF=<session>/subagents/workflows/<run-id>
    python3 - "$WF" <<'PY'
    import json,glob,sys
    for f in glob.glob(sys.argv[1]+"/agent-*.jsonl"):
        for line in open(f):
            try: o=json.loads(line)
            except: continue
            def walk(x):
                if isinstance(x,dict):
                    if x.get("type")=="tool_use" and x.get("name")=="Bash":
                        print(x.get("input",{}).get("command","")[:200])
                    for v in x.values(): walk(v)
                elif isinstance(x,list):
                    for v in x: walk(v)
            walk(o)
    PY
    
    Then grep THOSE extracted commands (not the raw jsonl — prose mentions "DELETE"/"DROP" in reasoning) for bq rm, DROP, DELETE FROM, TRUNCATE, gcloud … delete, add-iam-policy, set-iam-policy, and for any object IDs (transfer configs, datasets) beyond the ones it reported. Confirm it did ONLY what it claimed.
  5. Then decide disposition deliberately (and, for live infra, surface it to the user): keep+correct+review, or roll back. "It told me X and X is true" is not the same as "X is all it did."

Read the full file on GitHub · 121 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. 12d ago First seen · 121 lines · 341 tokens per session scan A cc40d8b497af

Subscribe to this mod's changes

design-subagent-with-plan-schema-executes-and-deploys-live-infra is a skill published in the GitHub repository wan-huiyan/agent-traffic-control (3 stars, last pushed today), licensed MIT. It adds 341 tokens to every session and 1,853 once invoked, about $0.0017 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