/callee:create-agentfrom callee
Generates Callee agents (Role, DynamicRole, Script, Human, TypeSafeJev, OpenRouterDecision, Sequential, Parallel, Loop, Router) in Markdown or YAML under .callee/.
Ships in callee. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use callee when available. Otherwise use the pinned fallback npx --yes @baldaworks/[email protected] for every command in the task.
Inspect the existing catalog before writing:
callee agent list --json
Choose exactly one supported kind:
Role: one provider-backed leaf agent.DynamicRole: Role behavior with provider fields rendered from visit-time state.Script: one deterministic local validator leaf.Human: one operator-backed interactive leaf.TypeSafeJev: one typed judgment through TypeSafe's native Jev API.OpenRouterDecision: one typed judgment through OpenRouter Decisions.Sequential: ordered child agents that each run once.Parallel: unattended child agents that run concurrently and join.Loop: ordered child agents repeated until an authorized Role escalates or the iteration limit is exhausted.Router: exactly one named or default child selected by a deterministic route template.Write below .callee/. Markdown is the default; use a complete .yaml or .yml object only when the user explicitly requests YAML. Directories such as roles/ and workflows/ are optional ID namespaces, not kind selectors. The agent ID is the relative path without its final supported extension.
Choose the profile before authoring any Role or Human. Keep whole-run mode, Role protocol, and ACP permissions distinct:
| Intent | Role fields | Default execution path |
|---|---|---|
| Supervised one-shot (default) | Omit spec.interactive; use permissions.mode: ask | Interactive whole run for permission prompts; one-shot Role |
| Conversational | Set spec.interactive: true; choose permissions independently | Interactive whole run and REPL Role |
| Unattended restricted | Omit spec.interactive; use permissions.mode: deny | Non-interactive when the tree has no Human and all inputs are supplied |
| Unattended approved | Omit spec.interactive; use permissions.mode: allow only on explicit request | Non-interactive when the tree has no Human and all inputs are supplied |
Preserve the supervised one-shot profile when the user does not specify a
mode. Do not turn ask into allow or deny merely to avoid a controlling
TTY. Use deny for unattended execution without approval to grant
permissions, and use allow only when the user explicitly authorizes automatic
approval. Do not add a Human anywhere in an unattended tree, including beneath
an unselected Router branch.
When an embedded PromptKit template clearly fits the requested capability, inspect it and use the generator:
callee promptkit search "<intent>" --type template
callee promptkit show "<template>" --json
callee promptkit role create "<agent-id>" \
--template "<template>" \
--description "<capability description>" \
--provider "<provider>" \
--prompt-param "<runtime-input-parameter>"
Treat every declared PromptKit parameter as required by the coding-agent authoring workflow. Reuse values already present in the user request or available task context. Ask only for missing values. Never invent placeholder values or bindings.
Choose exactly one declared non-persona parameter as --prompt-param. Choose the parameter that most naturally represents the root task payload and should map to runtime {{ .Input }}. Do not use persona as --prompt-param; a configurable persona must use --persona. If two candidates are materially plausible, explain the difference briefly and ask the user which one should be the runtime input.
Bind only author-time-stable values with --bind or --bind-file. Leave intended runtime values unbound so they become spec.params. Use --output when the requested ID must not live below the generator's default .callee/roles/ namespace.
Embedded PromptKit assembly still handles template, protocol, taxonomy, and format composition. The coding-agent skill's job is parameter resolution and composition selection, not manual prompt reconstruction.
Inspect metadata.mode in the selected template. When it is interactive, let the generator set spec.interactive: true; keep its questions and confirmation gates for callee agent run and do not execute those phases while authoring the reusable Role. Use --interactive only to force REPL behavior for a template that is not marked interactive.
If PromptKit does not fit, author the Role directly:
---
apiVersion: callee.metalagman.dev/v1alpha1
kind: Role
spec:
description: <capability description>
provider:
type: <codex|claude|opencode|copilot|grok|cursor|generic_acp>
permissions:
mode: ask
params:
focus: What the agent should focus on
---
Task:
{{ .Input }}
Focus:
{{ .Params.focus }}
Keep provider configuration under spec.provider. Configure ACP permission handling separately with Role-only spec.permissions.mode: ask makes the whole agent interactive and uses the controlling TTY, allow automatically selects a compatible allow option, and deny automatically selects a compatible reject option. Omission defaults to ask. Permission policy does not select the Role protocol: set spec.interactive: true only when the Role must continue in the same provider session across operator turns. Keep exactly one unconditional bare {{ .Input }} insertion in a generated Role body. Use Go text/template syntax on every template surface.
Use DynamicRole only when provider selection depends on state available at
visit time. It otherwise follows the Role contract. Every provider field is a
template: type, cmd, model, reasoning, mode, timeout, and each
extraArgs entry.
---
apiVersion: callee.metalagman.dev/v1alpha1
kind: DynamicRole
spec:
description: Runs a state-selected ACP reviewer.
provider:
type: '{{ .State.provider }}'
cmd: '{{ .State.command }}'
model: '{{ .Params.model }}'
reasoning: '{{ .State.reasoning }}'
mode: '{{ .State.mode }}'
extraArgs:
- '--workspace={{ .State.workspace }}'
timeout: '{{ .State.timeout }}'
permissions:
mode: ask
params:
model: Runtime model selection
state:
provider: generic_acp
command: my-acp-agent
reasoning: high
mode: review
workspace: project
timeout: 20m
---
Review this request:
{{ .Input }}
Provider templates may read .Prompt, .Input, one coherent .State
snapshot, and resolved .Params; .Output is unavailable. Callee renders and
validates the full provider before lazy startup and rerenders it on a later
visit. cmd stays one executable and extraArgs stays an argument vector, not
a shell command. Never route untrusted model output directly into cmd or
extraArgs; constrain it through authored template logic. Prefer static Role
whenever provider configuration is known before the run.
Author a Script directly when the requested node is a deterministic validator such as tests, lint, formatting checks, or other local gates:
---
apiVersion: callee.metalagman.dev/v1alpha1
kind: Script
spec:
description: Runs a validator.
shell: sh
onNonZero: continue
---
go test ./...
Use shell: sh unless the request clearly needs Bash-specific syntax. Set onNonZero: fail for hard gates and onNonZero: continue only when a later node or later Loop iteration must inspect the validator result in .State.scripts. Use cwd, env, and timeout only when the request explicitly needs them.
Author a Human directly when the workflow must collect one explicit operator response:
---
apiVersion: callee.metalagman.dev/v1alpha1
kind: Human
spec:
description: Requests operator approval.
responseKey: approval
---
Review and approve this request:
{{ .Input }}
Use a nonblank responseKey other than the reserved outputs, scripts, and evaluations keys. A Human has no provider, permissions, parameters, or REPL setting. A Human anywhere in the resolved tree makes spec-driven mode interactive and causes explicit non-interactive execution to fail during preflight, even beneath an unselected Router branch. At runtime it displays the rendered body on the controlling TTY, waits for one nonblank response, stores that response at the selected top-level state key and .State.outputs[effectiveId], and returns it as the node artifact.
Use TypeSafeJev for TypeSafe's native Jev API with TYPESAFE_API_KEY. Use
OpenRouterDecision for OpenRouter Decisions with OPENROUTER_API_KEY and an
explicit model. The OpenRouter kind is not limited to TypeSafe or Jev models.
---
apiVersion: callee.metalagman.dev/v1alpha1
kind: OpenRouterDecision
spec:
description: Judges whether the input needs urgent attention.
model: typesafe/jev-1.13
evidence:
request: "{{ .Input }}"
questions:
urgent:
type: noul
instructions: Is this request urgent?
criteria:
"true": It needs prompt attention.
"false": It can follow the normal queue.
---
Use exactly one of Markdown body or spec.evidence. One visit batches all
questions. Use noul, choice with 2–255 named criteria, or score with 2–10
ordered criteria. String leaves may read .Prompt, .Input, and .State;
preserve useful booleans, numbers, arrays, objects, and nulls as structured
values. Evidence and questions leave the machine for the selected service.
Aliases auto-upgrade; pin a concrete model for reproducibility. Downstream
templates read typed answers from .State.evaluations[effectiveId] or compact
JSON from .State.outputs[effectiveId]. Evaluation leaves cannot escalate, invoke tools, or
mutate arbitrary state.
For every Sequential, Parallel, Loop, Router, or nested-composite request, read references/workflows.md completely before writing. Follow its placement, representation, child-wiring, state, parameter, routing, loop-control, and output rules.
Resolve every referenced child with callee agent view "<child-id>" --json. If the request also needs new child Roles or workflows, create and validate those first. Then author the root workflow from the reference and validate the complete resolved tree.
Validate each written file, then resolve the complete tree and required runtime parameters:
callee agent validate "<written-agent-path>"
callee agent view "<agent-id>" --json
Use the actual generated .md, .yaml, or .yml path for validation. Confirm the top-level specDrivenInteractive and effective interactive values in agent view --json. Treat the former as the authored baseline and the latter as the agent's default execution path. For every Role and DynamicRole, confirm authoredInteractive, effective interactive, authoredPermissions, and effective permissions; these are independent axes. A DynamicRole text view must show provider=runtime; JSON must retain its authored provider templates. Confirm that supervised and conversational profiles are effectively interactive. Confirm that unattended profiles are effectively non-interactive, contain no Human, and expose every required parameter for explicit runtime input. Confirm that every Human has the intended responseKey without Role-only fields. Fix every schema, template, missing-child, duplicate-ID, and duplicate-alias error before reporting success. Do not add Gemini, legacy flat provider fields, a server transport, or thread persistence.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub baldaworks/callee --plugin callee2 skills in this plugin
Other plugins' skills for the same job