Skip to main content

agent-team-creator

Create, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.

Source instructions

Skill version 1.3.1 · agents, teams, orchestration, coding

Agent Team Creator​

Help the user choose a useful team, then create inspectable definitions. A role describes responsibility; a skill provides reusable instructions; a model supplies capability; a harness owns execution. Do not turn these into one interchangeable concept or start a second agent loop.

Start with the task​

Read project instructions and any active KBD work first. Reuse answers already given. Start by distinguishing local create, persisted UAR author, immutable revise, and deploy. Creation asks only for missing outcome, scope, deliverables, budget preference and review needs. UAR authoring reads the selected .agent-team/<team-id>/authoring workspace and returns one persisted missing document field or graph relationship at a time. Revision asks for the current workspace revision, desired change, next semantic version and deployment intent. Deployment asks for the reviewed package, UAR instance, environment credential reference and whether a private binding is also required. The user need not know agent terminology.

Use assets/intake.json as the creation JSON request shape. Set operation to revise or deploy for the other staged paths. guide returns missing intake fields when answers are incomplete, or a proposed team with role explanations and a single-agent alternative. Once task details are known, the guide returns proposedRoles and ownership questions until every proposed role has output paths in ownership: {"role-id": ["relative/path/**"]}. Inspect the project, suggest concrete disjoint paths, and reuse known scope. Reviewers can read broadly but need a separate findings output path. Only ready: true returns team:

node <this-skill>/scripts/cli.mjs guide --input intake.json

Recommend one implementer for a small isolated task. Add specialists only for concrete work that can be assigned separately. Independent review costs another pass; explain that tradeoff. Let the user refine roles using their existing authorization and preferences. Do not require a ritual confirmation for every reversible file creation. Experts may supply a manifest directly.

The guide’s skill IDs are suggestions, not assertions that anything is installed. Discover actual installed skills or use an available skills directory/search. Inspect each chosen skill’s provenance, scope, tools and instructions. Replace unavailable suggestions, or propose installation when needed; do not silently install external code. Bind discovered skills to each role’s skills array.

Define and export​

Save the proposed team from guide output. Fill owns, inputs, outputs and dependencies for each role before parallel edits. Empty ownership is unresolved, not permission over the repository. The manifest reference and JSON schema define the common contract.

Select models with $agent-team-models: declared strength, required capabilities, and known prices, followed by concrete IDs. Tier labels alone do not configure a native model. Every native option can be carried in native.<target>.options, role-native overrides, or exact native.<target>.files. Read native harness contracts for the selected target’s mapping, source, plugin support and limitations. Do not load every harness manual for a single-target task.

node <this-skill>/scripts/cli.mjs validate --input team-request.json
node <this-skill>/scripts/cli.mjs init --input team-request.json
node <this-skill>/scripts/cli.mjs export --input export-request.json

team-request.json contains {"team": <manifest>, "state": <local-state-path>}. export-request.json contains {"state": <local-state-path>, "target": "codex", "out": <new-proposal-directory>}. Targets are uar, codex, claude, copilot, kimi, minimax, opencode, deepseek, and the separate bossfang integration. MiniMax means its own mcode CLI.

Export never overwrites an existing output directory or native configuration. Inspect team-export.json, diagnostics, native files and the source/version receipt. Preservation of arbitrary options is not semantic validation. Validate with the installed harness when available, or report source-only support. Confirm what a probe enumerates: CLI availability, running sessions, custom-role discovery and actual invocation are different evidence. For Claude, read the validation caveat.

Install and operate within the requested scope​

Normal project-team creation finishes with install-project after inspecting the staged export. Creation authorized for a project includes installing its discovery instructions; do not stop at an export and leave the team undiscoverable.

node <this-skill>/scripts/cli.mjs install-project --input install-request.json --dry-run
node <this-skill>/scripts/cli.mjs install-project --input install-request.json
node <this-skill>/scripts/cli.mjs install-project --project <project-directory> --check

An installation request contains {"project": "<directory>", "team": <manifest>}. For existing teams, omit team: a sole .agent-team/<id>/team.json is selected automatically; an existing .agent-team/project-routing.json selection wins. Use teamId (or --team) to select explicitly when several teams exist. For an intentional update to an existing manifest, include updateTeam: true. See project installation for the complete contract.

The installer binds prometheus-ui-ux to design, creative direction and UI implementation roles, and prometheus-ui-review to UI review roles. It preserves role IDs and ownership. These are conditional routing skills: backend work must not activate UI guidance. UI review receives no taste skill or permission to bypass upstream user-only invocation restrictions. The complete protocol is loaded only for UI work, with .agents/UI_UX_PROTOCOL.md taking precedence over the bundled protocol. Actual platform manifests and model family determine routing.

Managed pointers in both CLAUDE.md and AGENTS.md default all code work to the selected team's relevant roles. Zed's higher-priority existing instruction file receives the same pointer. No automatic delegation API is invented: when the active harness cannot delegate, use those role instructions sequentially, report the limitation, and never label builder-context review independent.

Apply reviewed proposals only where the user authorized them. Merge existing native configuration deliberately; never replace it wholesale. install-project creates missing native definitions from the same adapter used by export, preserves all existing native files, and reports differences for a deliberate merge. Follow the native reference for supported project agents or plugin/marketplace installation. Do not invent plugin agent fields where a harness has none. A plugin installation does not start an agent team.

For UAR, first clarify shared behavioral guidance (or explicitly none), exact member skills/tools, required versus optional context resources, and manual versus cooperating-pair execution. Reuse known answers. Directed delegation requires a trigger-turn edge, and worker results need a separately permitted return edge. Catalog validity alone does not certify a runnable execution profile.

Use the draft.2 file-backed workspace, canonical package, and private binding path in UAR deployment. It preserves complete AgentDefinition, TeamDefinition, WorkflowDefinition, PackageManifest and DeploymentBinding fields, resolves immutable references, and installs the whole package atomically through the collaboration catalog API. workspace.json names one manifest source and separate agent, team, subteam, and workflow documents. Use uar-workspace-status or guide with operation=author; each response gives the monotonic revision, fixed counts, one stable next-question ID, saved-answer progress, and a bounded diagnostic page without returning the graph. Apply an answer with uar-workspace-answer, or update one declared file with uar-workspace-update; every mutation requires the last observed expectedRevision and refuses stale state before writing. Use an operator-selected instance URL and env:VARIABLE credential reference. Run capability discovery, package preflight, install and exact status before an optional binding preflight and install. Package installation confers no credential, representation grant, consent, authority, or activation. The uar-activate command refuses because this authoring client does not own execution. Operate through The Boss or another authorized host after negotiating the selected UAR instance's execution profile.

Schema-v1 export --target uar remains a compatibility projection for existing single-agent consumers. It cannot represent a UAR team and must not be used to claim collaboration-package deployment. Create new UAR teams through uar-workspace-init, document updates, uar-package-build, and uar-package-install. Existing draft.1 inline packages remain readable and migrate explicitly; they are never rewritten or relabeled.

For BossFang, keep registry registration, activation and execution separate. BossFang Hands and standalone agent/workflow registration are alternative native deployment paths. Choose one. Do not auto-activate a Hand or run a workflow merely because definitions exist.

For actual work, the chosen harness owns native spawning, permissions, sessions, subagent depth and model overrides. Use its available tools/current CLI contract; the team ledger does not schedule processes or enforce Cedar. Resolve missing native capabilities explicitly. Use this creator for immutable definition maintenance and UAR catalog deployment. Use $agent-team-manage for runtime tasks and $agent-team-handoff when changing owners/harnesses.

Evidence and recovery​

Report generated paths, roles and rationale, chosen model policy, native support level, unresolved ownership/configuration and the next authorized action. Never report export as live execution. Node 22+ runs the compiled package without a root checkout or npm runtime dependencies. Optional integrations still require their configured services and helper executables. Maintainers rebuild the .mts source with pinned TypeScript 7.0.2 under runtime/ at the completed-production boundary. Full and mini share portable team/schema contracts, not an identical runtime or emitted payload. Full alone exposes team cards, discovery, requests and intake commands. Mini retains a reduced file-backed memory queue with optional configured publication; it does not include the full Python learning hooks, durable writer outbox or Cortex mirror. Read models and memory for each pack’s identity and publication contract. Source, rebuilt .mjs output and installed execution require separate evidence.

The local state is a coordination record for trusted collaborators, not a distributed authorization service. See task and handoff contracts for revision/lock recovery and models and memory for optional shared services and Karpathy boundaries. Existing KBD state stays authoritative; never hand-edit its generated projections.

Progress Signals​

Emit to plain response text (no tool call) before any other action and after the last step:

Starting agent-team-creator — <team-id>
Starting task <i> out of <n>: <guide|validate|init|export <target>|install-project <target>>
Completed task <i> out of <n>: <same step>
Completed agent-team-creator — <team-id> (<roles> roles, <targets> native targets)

Take the task total from the steps you will actually run (one export or install per target). Report export as staged, never as live execution.