/chronoai-service-manual-bundle:aevatar-team-builderfrom chronoai-service-manual-bundle
Creates an Aevatar agent team and populates it with members backed by workflows, scripts, or gagents via the NyxID broker REST API. Use when assembling agents into a team, binding implementations, and setting an entry point.
Ships in chronoai-service-manual-bundle. 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).
# 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. And because the create/bind calls are async and can occasionally return a transient empty body, always read the response status/JSON back — retry once on an empty body — rather than assuming success.
Member implementation kinds are the lowercase strings workflow, script,
gagent.
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. Passing a forward
workflowId that does not exist yet returns HTTP 500.
wfId="my-workflow" # the id you will bind in Step 3 (pick a stable kebab-case 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. (Verified: omitting implementationRef returns 201; sending it with a not-yet-bound
workflowId returns 500.)
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.
# 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.
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.
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, team-building, agent-orchestration, rest-api, nyxid
npx claudepluginhub chronoaiproject/nyx-skills --plugin chronoai-service-manual-bundle12 skills in this plugin
/aevatar-feasibility-advisorDecide — honestly — whether a thing the user wants to build on Aevatar is possible, what its prerequisites are, or why it cannot be done, BEFORE anyone starts building. Use this first whenever a user describes a goal rather than a concrete artifact — "can aevatar do X", "I want a bot that…", "build me something that posts to Twitter / reads my GitHub / replies on Telegram", "is it possible to…", "automate … every day". It teaches the one hard premise (every third-party capability is brokered by NyxID), the two distinct surfaces (outbound connector vs inbound channel), how to check what is actually connectable, the prerequisite for each capability class, what is host-gated (and so not self-serve), and what is genuinely impossible without new NyxID/Aevatar platform work — so you can negotiate scope and give the user a straight answer plus next steps instead of over-promising. It scopes; it does not build (hand off to workflow-authoring / team-builder / service-publisher / scheduler)./aevatar-platform-mapEntry point, panorama, and router for the entire Aevatar skill family — load this FIRST whenever someone wants to build, run, publish, schedule, or operate anything on Aevatar ("create an agent team", "make a workflow / member", "publish or bind a service", "register it with NyxID", "set up a recurring / cron run", "invoke my service"), wants to know whether something is even possible ("can Aevatar do X?", "能不能用 aevatar 实现"), or just wants to know what Aevatar can do. It teaches the object model (scope → team → member[workflow|script|gagent] → service → schedule), how to authenticate as a NyxID-bearer REST client, how to resolve your scope, and the two caller modes (client REST vs in-session server-side tools). It does not do the work itself — it routes you to the right companion skill (feasibility-advisor, workflow-authoring, team-builder, service-publisher, scheduler, plus diagnostics probes and the safety-net fallback), held together by the shared `aevatar` tag.Other plugins' skills for the same job