/nyxid-cli:nyxid-service-skill-authoringfrom nyxid-cli
Finds or authors an agent skill for a NyxID proxy service lacking an OpenAPI spec or typed operations. Searches Ornn for an existing skill; if none exists, creates one from a verifiable source and uploads it.
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 are an agent facing a NyxID proxy service you do not know how to call:
the service publishes no OpenAPI spec, nyxid catalog endpoints <slug>
returns nothing, and the only tool available is the generic proxy
request (path + method + body). Do not guess endpoint paths from
training memory — that is how hallucinated calls happen. Follow this
flow instead: find an existing skill on Ornn, or author one from a
verifiable source.
Prerequisite: the ornn-agent-manual-cli skill (the Ornn API contract).
If it is not already in your context or local skills directory, pull it
first:
nyxid proxy request ornn-api "/api/v1/skills/ornn-agent-manual-cli/json" \
--method GET --output json
All Ornn calls below assume that manual is loaded; it defines authentication, response shapes, and error handling.
A protected Curation service account uses a different authority boundary from the user/agent-key workflow below. Discover only through GET /api/v1/catalog-curation/services, then read /services/{catalog_id}/skills. Replace the complete names/refs list with PUT /skills, the observed base_revision, and a stable UUID request_id; use a new ID after resolving a 409 against freshly read state. Remove one name by sending the remaining list, or clear with []. Existing refs (including an empty refs list) require replacement refs or explicit clear_refs: true for name changes. Do not silently retain stale pins.
History and restore are available under /skills/history and /skills/restore; restore creates a new revision. Identical committed retries reuse the same complete request and ID. Pure no-ops spend no budget and create no receipt. Recommendation changes need no per-change human approval within the standing grant.
For Ornn calls, use only ordinary HTTP /api/v1/proxy/{grant.ornn_proxy_service_id}/... with the separately attached SA Ornn credential and the dedicated endpoint's explicit proxy_operation_policy (exact skill reads, creation, content/visibility updates, and creator settings). The slug forms, key listing/writes, generic /catalog, provider self-management, and spec/routing changes described below are not available to Curation tokens. Exact GET /api/v1/keys/{uuid} nonsecret metadata reads require the separate user-services:read scope and admin-issued key read grant; catalog grants alone do not authorize them. Do not use the creator's credentials or ask for broad Ornn admin authority to bypass a denied request.
NyxID recommendation management does not edit package bytes. The existing Ornn contract uses ornn:skill:read for reads/validation, ornn:skill:create for creation, and ornn:skill:update for content and creator-managed settings. NyxID must propagate the SA's own UUID and role permissions in its identity assertion. Ornn records that UUID as createdBy, so the creator can read/write/manage its skill even when the sharing ACL is empty. Other creators' skills need an explicit object write grant for content updates. Create with a raw ZIP POST /api/v1/skills (private by default), then use JSON {"isPrivate":false} or {"isPrivate":true} on PUT /api/v1/skills/{id} to choose visibility; send a newer ZIP to that same route for a new immutable version. The existing role supports this flow without the proposed content-only ornn:skill:publish from #1247. Omit ornn:skill:delete and ornn:admin:skill. The dedicated NyxID operation policy also blocks skill/version/tag deletion and unlisted management routes. The documented policy includes exact routes for sharing permissions, source updates/refresh, deprecation, dist-tag assignment, ownership transfer, and untying a service binding. Ornn still validates ownership and operation targets; transfer gives up creator edit rights, and new service bindings need a target resolvable by Ornn. Use direct user-type grants for SAs because their Curation tokens cannot resolve organization memberships. A skill tied through Ornn to an admin service must remain public until untied. NyxID catalog recommendation assignment is separate and uses the Curation API. See the identity and permission recipe. Verify the deployment with the intended SA before claiming a live workflow passed. Names are advisory; supplied exact refs are pins, not evidence of content approval or a grant to read private packages. Consumers see changed defaults on their next fetch; installed copies require their own update, and restoring instructions cannot undo past external effects.
Grant administration, limits, request examples, credential rotation, and mandatory upgrade-all-before-enable ordering are documented in docs/SERVICE_ACCOUNTS.md. The user/agent-key workflow below remains for account-owned instances and must not be substituted for catalog curation authority.
Some agent runtimes cannot execute a CLI but can make HTTP requests. Every
nyxid command in this skill has a direct REST equivalent against the
NyxID API (base URL below is the deployment you authenticate against,
e.g. https://nyx-api.chrono-ai.fun):
Authorization: Bearer <token> on every request — a
NyxID agent API key (nyxid_ag_...) or a user access token. Ask the
user for a key if you have none; never scrape one from disk.nyxid proxy request ornn-api "<path>" --method M
is exactly M {BASE}/api/v1/proxy/s/ornn-api<path> — same path, same
body, same JSON response. This holds for every Ornn endpoint in this
skill and in the Ornn manual.nyxid service list):
GET {BASE}/api/v1/keys — the authoritative connected-services view.nyxid catalog show <slug>):
GET {BASE}/api/v1/catalog/{slug}; typed operations
(nyxid catalog endpoints <slug>):
GET {BASE}/api/v1/catalog/{slug}/endpoints.nyxid service update ...):
PUT {BASE}/api/v1/keys/{id} with the exact ID returned by the keys inventory and a JSON body — e.g.
{"openapi_spec_url": "https://..."} (empty string clears) or
{"recommended_skills": ["name"]} (empty list clears). The endpoint
document alone can also be updated via
PUT {BASE}/api/v1/endpoints/{endpoint_id} with the same fields.GET {BASE}/api/v1/keys, then use
PUT {BASE}/api/v1/user-services/{user_service_id} — for example,
{"forward_access_token": true}. A catalog service ID is a different
identity and must never be used here. Read GET {BASE}/api/v1/keys
afterward and verify the same UserService ID. Catalog-wide recovery is
the separate POST {BASE}/api/v1/services/{catalog_service_id}/resync-identity
API (Admin or the catalog service's creator, human session only).nyxid proxy request <slug> ...):
M {BASE}/api/v1/proxy/s/{slug}/<path> — NyxID injects the stored
credential; never send the downstream credential yourself.The remainder of this skill shows CLI forms for brevity; translate with the table above when you are HTTP-only.
nyxid service list --output json # find the service, note slug + source (catalog|custom)
nyxid catalog show <slug> --output json # catalog metadata: openapi_spec_url, homepage_url, recommended_skills
nyxid catalog endpoints <slug> # typed operations, if any
endpoints returns operations, or openapi_spec_url is set: stop —
use the typed operations/spec directly. This skill is for the spec-less
case only.recommended_skills is non-empty: those are curated pointers for
this service. Look each one up on Ornn (Step 1) before anything else.Check ~/.ornn/installed-skills.json first, then search Ornn. Try
service-bound skills before free-text:
# Skills bound to NyxID services (system skills), grouped by service
nyxid proxy request ornn-api "/api/v1/skill-facets/system-services" \
--method GET --output json
# Free-text: try up to 5 query variations (slug, vendor name, API name)
nyxid proxy request ornn-api \
"/api/v1/skill-search?query=<service-name>&mode=semantic&scope=mixed&pageSize=20" \
--method GET --output json
If a match exists: pull it with GET /api/v1/skills/<name>/json, install
it locally, record it in ~/.ornn/installed-skills.json, and follow it.
Done — do not author a duplicate.
Look at the service's origin (source field from nyxid service list,
plus nyxid catalog show):
When unsure, treat the service as private and ask.
Search the web for the vendor's official OpenAPI spec and API
reference (try <vendor> openapi.json, <vendor> API reference,
the vendor's GitHub org, homepage_url from the catalog).
Official machine-readable spec found (JSON, reachable, ≤5 MB) — the best outcome is no skill at all: mount it so NyxID publishes typed operations for every consumer:
nyxid service update <slug> --openapi-spec-url <official-spec-url>
nyxid catalog endpoints <slug> # verify operations appeared
Only add a skill on top if the API has non-obvious usage rules (auth quirks, pagination idioms, ordering constraints) worth teaching.
Spec exists but is unusable directly (YAML, >5 MB, split across files) or there is no machine-readable spec — author a skill from the official documentation:
SKILL.md documenting: what the service is, the proxy call shape
(nyxid proxy request <slug> "<path>" --method ... --data ...),
the 5-15 most useful operations with method, path, required
parameters, one worked example each, and known limitations. Cite
the official doc URLs you used — every operation must trace to
vendor documentation, not memory.backend/specs/catalog/) — that is
the platform-managed path; your Ornn skill covers the gap meanwhile.Ask the user, in one batch, for whatever they can provide:
nyxid service update <slug> --openapi-spec-url ... — often this
alone removes the need for a skill).Author the skill strictly from what they provide. If the user cannot provide the contract, stop and say so: a skill cannot be created for a service whose interface nobody can describe. Do not fill gaps with invented endpoints.
Default the skill to private on Ornn (that is also Ornn's default). Only share/publish it if the user asks; a private service's skill may reveal internal API structure.
Follow the Ornn manual (§2.1 step 5) exactly:
GET /api/v1/skill-format/rules — read the package rules.
Write the package: one root folder named after the skill,
SKILL.md with quoted version: "1.0" frontmatter.
POST /api/v1/skill-format/validate with the ZIP — loop until
valid: true.
POST /api/v1/skills — upload. Keep the returned guid.
Bind the skill to the NyxID service so future agents find it from the service itself:
nyxid proxy request ornn-api "/api/v1/skills/<guid>/nyxid-service" \
--method PUT \
--data '{"nyxidServiceId":"<service-id from /api/v1/me/nyxid-services>"}' \
--output json
Binding to an admin (platform) service makes it a public system skill; binding to your own personal service keeps your chosen visibility.
Install the skill locally and record it in
~/.ornn/installed-skills.json, then execute the user's original task
with it.
recommended_skills; platform admins can
set it (admin service update) so agents jump straight from a catalog
entry to the right skill. If you authored a skill for a catalog
service, suggest the admin add its name there.GET /api/v1/skill-facets/system-services lists every
service-bound skill platform-wide — always check it before authoring.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
17 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.npx claudepluginhub chronoaiproject/nyxid --plugin nyxid-cliOther plugins' skills for the same job