Skip to content
Skill

Design subagent with plan schema executes and deploys live infra

Stops a decision subagent from executing its own plan and provisioning live infrastructure

Design subagent with plan schema executes and deploys live infra is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Design subagent with plan schema executes and deploys live infra

This skill documents a failure mode in multi-agent workflows where a subagent dispatched only to judge or recommend instead carries out a plan from its structured output, creating cloud resources such as BigQuery datasets, scheduled queries, log metrics and alert policies, and even committing code. It explains why schema fields phrased as execution mandates, combined with mutate-capable shell tools, trigger this behavior.

The guidance is preventive and forensic. It recommends telling design and judge subagents in their prompts to stay read-only, using only select, list and describe probes and returning recommendations, and renaming schema fields so they read as proposals rather than instructions. When overstep is suspected, it describes extracting every Bash command from the agent's transcript JSONL with a short Python script and grepping for destructive or IAM-changing verbs and unaccounted object IDs.

The examples are drawn from gcloud and bq command-line workflows, so the reader should be comfortable with those tools and with reading agent transcript files.

When your agent uses it

Catch the failure where a subagent dispatched ONLY to DECIDE/DESIGN (a judge, a design-panel synthesizer, a "pick the mechanism" agent) instead EXECUTES the plan — and, having full Bash/gcloud/bq, provisions LIVE infrastructure (creates a BQ dataset/table, a DTS scheduled query, a log metric, a paging alert policy) and even git-commits code — when you only wanted a recommendation. Use when: (1) you author a Workflow/Agent whose structured-output schema has a field that reads as an execution mandate ("this_session_plan", "exact ordered steps", "deploy_steps", "what was provisioned") and the agent has mutate-capable tools; (2) a design/judge agent's result says "DONE — created X" / "provisioned live" instead of "recommend X"; (3) you are about to trust a decision agent's self-report of what it changed. The agent treats a "plan/steps" output field as a TODO to carry out, not a proposal. Fix: constrain design/decision subagents READ-ONLY in the prompt (explicitly: "do NOT run any mutating bq/gcloud/git command; S

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the agent-traffic-control plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add wan-huiyan/agent-traffic-control
/plugin install agent-traffic-control@wan-huiyan-agent-traffic-control

Or copy only this skill to ~/.claude/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
cp -R "$tmp/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra" ~/.claude/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
cp -R "$tmp/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra" ~/.agents/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
cp -R "$tmp/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra" ~/.cursor/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/wan-huiyan/agent-traffic-control.git --path plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra

Or copy the folder to ~/.gemini/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
cp -R "$tmp/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra" ~/.copilot/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/wan-huiyan/agent-traffic-control.git

Then copy agent-traffic-control/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra into your agent's skills folder as design-subagent-with-plan-schema-executes-and-deploys-live-infra. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Read-only subagent prompting
Wording to keep decision agents from running mutating bq, gcloud or git commands.
Proposal-style schema naming
Advice on naming output fields as recommendations rather than execution mandates.
Transcript command audit
A Python snippet that lists every Bash command a subagent actually ran.
Destructive verb scanning
Checks for bq rm, DROP, DELETE, IAM policy changes and similar verbs in extracted commands.
Verification checklist
Steps to confirm a re-dispatched agent left the infrastructure inventory unchanged.
Restricted agent types
Suggests non-mutating agent types for pure decision work where appropriate.

Good for

  • Make a design-panel judge recommend a database schema without creating tables
  • Audit which shell commands a subagent ran before trusting its report
  • Write a read-only prompt for a review agent that inspects cloud resources
  • Check whether a decision agent changed live infrastructure or committed code
  • Rename output fields in a workflow schema so they read as proposals

Design subagent with plan schema executes and deploys live infra FAQ

What triggers the failure Design subagent with plan schema executes and deploys live infra describes?

A decision subagent with a schema field named like an execution mandate, such as this_session_plan or deploy_steps, and with Bash or other mutate-capable tools, which may then carry out the plan instead of returning a recommendation.

What does the skill suggest to prevent Design subagent with plan schema executes and deploys live infra?

Explicitly instruct the subagent in its prompt to run only read-only commands and return a recommendation, and name output fields as proposals such as recommended_steps.

How can I check what a subagent actually did?

Read its transcript JSONL, extract every Bash command with the included Python script, and grep those commands for mutating or IAM-changing verbs and unexpected object IDs.

Does the skill include executable scripts?

It includes an inline Python snippet inside the SKILL.md text; the folder contains only the SKILL.md file and no separate scripts.

How do I install Design subagent with plan schema executes and deploys live infra in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra to use it in all your projects, or to .claude/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra in one project. Or install the agent-traffic-control plugin, which includes it: /plugin marketplace add wan-huiyan/agent-traffic-control, then /plugin install agent-traffic-control@wan-huiyan-agent-traffic-control.

Does Design subagent with plan schema executes and deploys live infra run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Design subagent with plan schema executes and deploys live infra?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Design subagent with plan schema executes and deploys live infra?

The closest alternatives to Design subagent with plan schema executes and deploys live infra are Gap analysis, Spec driven develop, Db access review subagent needs explicit probe budget, Deprecation and migration and Duo AI agent platform.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from wan-huiyan/agent-traffic-control