/nyxid-service-skill-authoring:nyxid-service-skill-authoringfrom nyxid-service-skill-authoring
Finds or authors an agent skill for a NyxID proxy service that lacks an OpenAPI spec or typed operations. Searches Ornn for an existing skill or creates one by researching the official spec or collecting the contract from the user.
Ships in nyxid-service-skill-authoring. 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.
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.
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. Platform-wide catalog
recovery is the separate admin-only
POST {BASE}/api/v1/services/{catalog_service_id}/resync-identity API.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
npx claudepluginhub chronoaiproject/nyx-skills --plugin nyxid-service-skill-authoringOther plugins' skills for the same job