Skip to content
Back to skills

Spawn Team With Command Model

ASecurity

Use before the FIRST Agent({...}) call in a skill or command that spawns a team from ak-resolve-team (/spec.tech, /tech.audit, /spec.specify, /spec.align, or any team workflow). Every member's model comes from team.resolved.json and is passed explicitly at every spawn.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add ivan-ii-tech-digital/agent-kit --skill spawn-team-with-command-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spawn Team With Command Model?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spawn Team With Command Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ivan-ii-tech-digital-spawn-team-with-command-model/badge)](https://www.skillsdirectory.com/skills/ivan-ii-tech-digital-spawn-team-with-command-model)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spawn-team-with-command-model
description: >-
  Use before the FIRST Agent({...}) call in a skill or command that spawns a team from
  ak-resolve-team (/spec.tech, /tech.audit, /spec.specify, /spec.align, or any team workflow).
  Every member's model comes from team.resolved.json and is passed explicitly at every spawn.
---

# Spawning team members with the resolved model

## The rule

Every team member's model comes from its entry in `team.resolved.json` (the output of `ak-resolve-team <workflow>`), and every spawn passes it explicitly: `Agent({ model: <model>, ... })` for a Claude seat, `--model <model> --effort <effort>` for a Codex seat. No model literal lives in skill or command text, and none is copied from frontmatter: a skill's frontmatter `model:` pins only the orchestrator, and plugin agent frontmatter `model` may be ignored, so the call is the source of truth.

## The trap

Copying a model from the wrong place silently downgrades a member: an illustration value in a snippet, the orchestrator's own pinned model, or a remembered default after the project changed its team config. The user can tell from output quality, but only after damage is done.

## Procedure (every team-spawning skill, before the first spawn)

1. Resolve the team with the command your skill names (it adds `--team <file>` for a team outside ak-team), by default `ak-resolve-team <workflow> --project <repo root> [--team <file>] > <scratchpad>/team.resolved.json`; skip this step when the calling skill already wrote `team.resolved.json` this run (add `--worktree <path>` for a pipeline worktree, `--via-workflow` when a Workflow script will spawn). Show the stderr summary line and any warning to the user. A non-zero exit lists every error: relay them and spawn nothing.
2. Per phase in `phases`, spawn exactly the `agents[]` whose `phase` matches — any count, never a fixed one. Take `agent`, `model`, `runtime` and `effort` from each entry; pass `model` at every call, including a re-spawn after a failure.
3. `runtime: "codex"` → Orca worker per the kit's `runtimes/codex.md` (`$ORCA_CLI_COMMAND`, default `orca-ide`); `runtime: "claude"` → per the entry's `spawn` (`teammate`, `subagent` or `fresh`) as `runtimes/claude.md` shows; pass `effort` when the entry has one.
4. A per-run override from the user ("use Sonnet for this one") goes through the resolver as `--set <seat>.model=<value>`, so validation still runs; never edit the team file or the project config for it.
5. Stop each agent as the table in `runtimes/claude.md` says.

## When to skip

- Helper agents outside the roster (a one-off lookup, a gate run): pass a model explicitly by the work's tier — `"opus"` for thinking, `"sonnet"` for routine — never Fable.
- The orchestrator's own model — that's already pinned by the skill's frontmatter before this skill ever runs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.