# Design subagent with plan schema executes and deploys live infra

> Design subagent with plan schema executes and deploys live infra is an open-source agent skill for developer tools. Stops a decision subagent from executing its own plan and provisioning live infrastructure. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/wan-huiyan/agent-traffic-control/tree/main/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra
- **Repository:** https://github.com/wan-huiyan/agent-traffic-control
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** design-subagent-with-plan-schema-executes-and-deploys-live-infra
- **Collection:** https://github.com/wan-huiyan/agent-traffic-control
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra)
- [License: MIT](https://github.com/wan-huiyan/agent-traffic-control/tree/HEAD/plugins/agent-traffic-control/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra)

## Features

- **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

## Install

### Claude Code

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):

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Gap analysis](https://ai-powered.com/skills/gap-analysis): Gap analysis is an open-source agent skill for developer tools.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Db access review subagent needs explicit probe budget](https://ai-powered.com/skills/db-access-review-subagent-needs-explicit-probe-budget): Db access review subagent needs explicit probe budget is an open-source agent skill for developer tools.
- [Deprecation and migration](https://ai-powered.com/skills/deprecation-and-migration): Deprecation and migration is an open-source agent skill for developer tools.
- [Duo AI agent platform](https://ai-powered.com/skills/duo-ai-agent-platform): Duo AI agent platform is an open-source agent skill for developer tools.
- [Field agent loop](https://ai-powered.com/skills/field-agent-loop): Field agent loop is an open-source agent skill for developer tools.
- [Agentsmd scaffold](https://ai-powered.com/skills/agentsmd-scaffold): Agentsmd scaffold is an open-source agent skill for developer tools.
- [Agent harness construction](https://ai-powered.com/skills/agent-harness-construction): Agent harness construction is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/design-subagent-with-plan-schema-executes-and-deploys-live-infra
