/nyxid-cli:aevatar-team-builderfrom nyxid-cli
Builds Aevatar agent teams over the REST API: creates teams, adds workflow/script/gagent members, binds implementations, and sets entry members.
Ships in nyxid-cli. 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.
None: SKILL.md is the whole skill.
You create a team, fill it with members (each backed by a workflow, script, or
gagent), bind their implementations, and set the team's entry member — all via REST. The
output is an invocable team. Publishing it as a NyxID service is a separate step
(aevatar-service-publisher); scheduling is another (aevatar-scheduler).
A runnable workflow in Studio is normally a Team-owned workflow member, not a public template
or an Ornn skill. Before creating anything, list the caller's Teams and resolve the intended Team.
If more than one is plausible and the user did not choose, ask; never create a draft/member first
and attach it to a guessed Team later. Follow nextPageToken on Team/member roster lists. Use
workflow list/detail responses as returned, and apply documented server-side run filters and
take without inventing a cursor.
Choose the lifecycle from current state:
aevatar_schedule_member_workflow if scheduling was requested.aevatar_provision_workflow_schedule can create its own Team member and schedule after the Team
is confirmed. Do not use it as an update path for an existing member.memberId, draft workflowId, publishedServiceId, Definition actor ID, revision ID, and schedule
ID are separate opaque identities. Always carry the exact values returned by their owning
readmodels; never derive one from another or use the workflow catalog/public template list as a
Team roster.
# Drive aevatar THROUGH the NyxID broker: it injects your scope_id claim AND auto-refreshes your
# token. A raw curl to the aevatar backend with ~/.nyxid/access_token resolves NO scope
# (scopeResolved:false) and the stored token expires — it is not a usable path.
# Prerequisite once: the `aevatar` service must be connected — `nyxid service add aevatar`.
aev() { nyxid proxy request aevatar "$@"; } # aev "<path>" [-m POST|PUT|DELETE] [-d '<json>'] [--stream]
scopeId=$(aev "api/studio/context" | jq -r .scopeId)
jqis only for convenience — any JSON reader works (replace| jq -r .scopeIdwith| python3 -c 'import sys,json;print(json.load(sys.stdin)["scopeId"])'). All calls go through the NyxID broker (nyxid proxy request aevatar), which injects yourscope_idclaim and auto-refreshes the token. Create and bind calls are mutations: an empty body or lost response is an uncertain outcome, not permission to retry. Reconcile through the corresponding member/team/ binding-run read model or an idempotency key before deciding whether another mutation is safe.
Member implementation kinds are the lowercase strings workflow, script,
gagent.
Member routes authorize the authenticated caller against the route scopeId. They do not require
the caller subject, memberId, or any other resource ID to be equal. Keep scope authority and
resource identity separate; never rewrite an ID to make those strings match.
Skip creation when the user selected an existing Team. List with pagination first and reconcile an uncertain create response before issuing another mutation.
teamId=$(aev "api/scopes/$scopeId/teams" -m POST \
-d '{"displayName":"My Team","description":"what it does"}' | jq -r '.teamId // .id')
CreateStudioTeamRequest: displayName (required), description?, teamId? (omit to
let the server mint one). Read the returned id back — do not invent it.
Create the member as a shell. Do not pass implementationRef here — the concrete
implementation (the workflow + its YAML) is attached in Step 3.
wfId="wf-my-workflow" # workflow draft identity; it is not the member or published-service id
memberId=$(aev "api/scopes/$scopeId/members" -m POST -d "{
\"displayName\": \"My Workflow Member\",
\"implementationKind\": \"workflow\",
\"teamId\": \"$teamId\"
}" | jq -r '.memberId')
CreateStudioMemberRequest: displayName + implementationKind (required,
workflow|script|gagent); description?, memberId?, teamId? (attach now, or add
later via PATCH). The new member returns at lifecycleStage:"created" and is already
assigned a publishedServiceId; its implementationRef stays null until Step 3 fills
it in.
If the requested team does not exist, member creation and provisioning return typed HTTP 404:
{"code":"STUDIO_TEAM_NOT_FOUND","scopeId":"<scope>","teamId":"<team>"} (plus a
message). Treat this as a missing Team resource in the stated scope; do not retry, invent another
team ID, or reinterpret teamId as a member/workflow/service identity.
Keep all three identities distinct: the response memberId owns Team authority, wfId names the
workflow draft/definition, and publishedServiceId is the callable runtime identity. Only explicit
contracts may translate between them; never derive one from another. Use visibly different shapes
in fixtures and examples.
implementationKind
to "script" or "gagent". Discover valid gagent kinds with GET /api/scopes/gagent-types.
The concrete scriptId / agentKind is supplied in the Step 3 binding, not here.This is where the real implementation lands. It starts an async binding run. A successful bind commits workflow/revision identity and the capability admission plan together; a later run must preserve all three. If execution fails, do not create another binding/run until run detail and audit identify the first failed boundary.
Before this mutation, preflight every external call through aevatar-workflow-authoring. A
published NyxID selector is exactly user_service_id + endpoint_id; operation_id is not a valid
YAML field. One step carries either nyxid_operation or nyxid_request, never both. If the client
surface has no operation list/picker, stop rather than guess an endpoint or treat /api/v1/keys as
an operation catalog. NYXID_OPERATION_SELECTION_REQUIRED is a blocker, not permission to retry
the bind.
Likewise, USER_SERVICE_NOT_VISIBLE does not prove that the remediation label register_service
has a self-serve Aevatar endpoint. Connect or authorize through the supported NyxID service flow,
then reread exact UserService authority. /api/auth/nyxid/authorization-catalog:refresh only
reconciles the catalog. If it returns api_key_scope_plan_route_unresolved, report that blocker;
do not repeatedly bind/refresh, remove unrelated services, or guess the failing route.
# Author the YAML first with aevatar-workflow-authoring; pass it inline.
runId=$(aev "api/scopes/$scopeId/members/$memberId/binding" -m PUT -d "{
\"workflow\": { \"workflowId\": \"$wfId\", \"workflowYamls\": [ $(jq -Rs . < workflow.yaml) ] }
}" | jq -r '.bindingRunId') # returns {status:"accepted", bindingRunId:"bind-...", ...}
UpdateStudioMemberBindingRequest carries exactly one of:
workflow: {workflowId, workflowYamls:[<yaml strings>]}script: {scriptId, scriptRevision?}gAgent: {agentKind, endpoints?}(jq -Rs . safely JSON-encodes the YAML file as a string.)
Poll the binding run by its id until status is succeeded:
aev "api/scopes/$scopeId/members/$memberId/binding-runs/$runId" \
| jq '{status, failure}'
Status progresses accepted → admission_pending → admitted → platform_binding_pending → … → succeeded (or failed/rejected). It commonly sits at platform_binding_pending
for a minute or two before flipping to succeeded — keep polling (e.g. every 5s, up to
~3 min). On succeeded the response carries result.publishedServiceId +
result.revisionId, and the member reaches lifecycleStage:"bind_ready":
aev "api/scopes/$scopeId/members/$memberId" \
| jq '{stage:.summary.lifecycleStage, svc:.summary.publishedServiceId, ref:.implementationRef}'
Do not report success on the 2xx from the PUT alone — that is only accepted; wait for the
run to reach succeeded.
Binding success is not yet invocation readiness. Read the selected endpoint contract and require the exact bound revision, deployment, and endpoint to be visible in the invocation catalog:
aev "api/scopes/$scopeId/members/$memberId/endpoints/chat/contract" \
| jq '{revisionId, deploymentStatus, readiness:.invocationReadiness}'
Proceed only when invocationReadiness.canInvoke == true, status == "ready", and the returned
revisionId matches the binding result. invocation_catalog_not_ready means projection/catalog
materialization has not observed that endpoint revision; the member is not invocable yet even
though the binding run succeeded. Continue reading the same contract until it changes or report
the lag honestly; do not create a new binding to force readiness.
The entry member is the team's front door (what callers hit by default).
aev "api/scopes/$scopeId/teams/$teamId/entry-member" -m PUT \
-d "{\"memberId\":\"$memberId\"}"
Add more members by repeating Steps 2–3 with the same teamId. List the roster:
GET /api/scopes/$scopeId/teams/$teamId/members.
aev "api/scopes/$scopeId/teams/$teamId" | jq .
aev "api/scopes/$scopeId/teams/$teamId/members" | jq .
Confirm the team exists, the roster contains your member(s), and the entry member is set.
If the member roster returns nextPageToken, continue paging before concluding that a member is
missing. A Workspace workflow list is a projection of Team-owned members; it is not the public
workflow template catalog.
PATCH /api/scopes/{scopeId}/teams/{teamId} and PATCH …/members/{memberId}.PATCH …/members/{memberId} with {teamId}.POST …/teams/{teamId}/archive.aevatar-service-publisher.aevatar-scheduler.aevatar-platform-map for the full panorama.If you genuinely cannot complete a step server-side, hand the original request back to your caller rather than fabricating — see the fallback skill in this family.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
aevatar, agent-team, rest-api, workflow-members, gagent, team-building
npx claudepluginhub chronoaiproject/nyxid --plugin nyxid-cli17 skills in this plugin
/aevatar-agent-profile-managementUse when a user wants to create, edit, validate, publish, or explain an Aevatar Agent Profile; set purpose or instructions; bind exact Ornn skills and activation modes; restrict tool authority; or diagnose ETag, validation, publication, deployment exposure, or runtime binding. Agent Profile is a separate resource, not a workflow, member, team, service, or schedule. Use the opaque profileId, exact `{skillGuid, literalVersion, expectedName, expectedPublisherId}` references, strong ETags, accepted-vs-committed semantics, and capability detection before mutation./aevatar-automationAevatar scheduling & workflow automation: scheduled_agent_creator (cron/one-shot) for independent scheduled Ornn skill agents and reminders — NOT an alias for Studio Team member automation — the long-running task automation playbook, workflow creation semantics (Scope Workflow vs Ornn publish), agent_builder lifecycle, the typed required_nyx_services contract (exact user_service_id is the authorization; a slug snapshot never substitutes), dedicated Agent Key semantics (vault-held raw material, borrowed durable reference late-resolved per use, exact non-wildcard grants, ~90-day projected expiry, reauthorize-then-revoke, independent NyxID and Vault revocation tracks), accepted-is-admission-only receipts, and a token_expired triage protocol that reads credentialSourceKind before assuming any TTL./aevatar-channels-deliveryAevatar channel & delivery how-to: capability tools (code_execute, nyxid_proxy, GitHub PAT fallback, channel bots), token_expired/401 credential triage that identifies the typed credential source before interpreting the failure (a dedicated scheduled-invocation Agent Key is vault-held and late-resolved per use — never diagnose it with the 300-second broker TTL), LLM route selection slash commands, channel_registrations (staged Lark provisioning), agent_delivery_targets binding, and a strict never-emit-secret-material policy./aevatar-codex-exec-node-setupConfigure and prove Aevatar codex_exec for one NyxID account, choosing operator-managed chrono-sandbox/gVisor for bounded empty-workspace work or private NyxID node-backed SSH for a fixed host workspace. Use for managed eligibility and UserService readiness, private node/SSH hardening, mandatory public-sample verification, or diagnosing typed managed and private-route failures./aevatar-codex-exec-workflow-sampleMount and run harmless Aevatar workflows that prove codex_exec works through either the operator-managed chrono-sandbox/gVisor target or a private NyxID node-backed SSH target. Use after managed eligibility and required NyxID UserServices are ready, or after configuring a personal SSH node; also use when diagnosing typed managed or private-route failures before real tasks./aevatar-feasibility-advisorUse before building when a user asks whether Aevatar can achieve a goal, what prerequisites it has, or why it is unavailable. Triggers include bots and third-party APIs, inbound channels, external HTTP triggers, schedules, service exposure, Agent Profiles and tool ceilings, and bounded managed or private-host codex_exec work. It distinguishes outbound connectors from inbound channels and separates not connected, host-gated, not deployed, and genuinely unsupported outcomes. It chooses managed_sandbox versus private_ssh without promising repository, model, credential, runtime, or deployment capabilities the caller does not control, then routes feasible work to the owning Aevatar skill.Other plugins' skills for the same job