nyxid-service-skill-authoring
Skill37 starsChanged 4 months agoApache-2.0View on GitHub
Find or author an agent skill for a NyxID proxy service that has no OpenAPI spec or typed operations. Use when a NyxID service only exposes the generic proxy tool, `nyxid catalog endpoints` returns nothing for the slug, or you would otherwise have to guess endpoint paths. Searches Ornn for an existing skill bound to the service; if none exists, creates one — researching the official OpenAPI spec on the web for public services, or collecting the contract from the user for private/custom services (never fabricate endpoints) — then uploads it to Ornn, binds it to the service, and records it locally.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- aevatar-agent-profile-managementSkill
- aevatar-automationSkill
- aevatar-channels-deliverySkill
- aevatar-codex-exec-node-setupSkill
- aevatar-codex-exec-workflow-sampleSkill
- aevatar-feasibility-advisorSkill
- aevatar-platform-mapSkill
- aevatar-schedulerSkill
- aevatar-service-publisherSkill
- aevatar-team-builderSkill
- aevatar-triageSkill
- aevatar-workflow-authoringSkill
- fallback-to-calling-agentSkill
- firecrawl-via-nyxidSkill
- github-via-nyxidSkill
- nyxidSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 9 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
If it is not already in your context or local skills directory, pull it first:
- Distinctive: line 32
All Ornn calls below assume that manual is loaded.
- Very specific: line 97
If endpoints returns operations, or openapi_spec_url is set: stop — use the typed operations/spec directly.
- Very specific: line 100
If recommended_skills is non-empty: those are curated pointers for this service.
- Very specific: line 105
Check ~/.ornn/installed-skills.json first, then search Ornn.
- Very specific: line 119
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 …
- Very specific: line 125
Look at the service's origin (source field from nyxid service list, plus nyxid catalog show):
- Distinctive: line 137
When unsure, treat the service as private and ask.
- Very specific: line 141
Search the web for the vendor's official OpenAPI spec and API reference (try <vendor> openapi.json, <vendor> API reference, the vendor's …
- Distinctive: line 153
Only add a skill on top if the API has non-obvious usage rules (auth quirks, pagination idioms, ordering constraints) worth teaching.
- Distinctive: line 164
Verify at least one read-only operation live through the proxy before publishing, when the user's credentials allow it.
- Very specific: line 166
If the service is part of the NyxID official catalog and deserves typed operations platform-wide, also suggest to the user that a curated …
- Distinctive: line 173
Ask the user, in one batch, for whatever they can provide:
- Distinctive: line 187
Default the skill to private on Ornn (that is also Ornn's default).
- Distinctive: line 188
Only share/publish it if the user asks.
- Distinctive: line 193
Follow the Ornn manual (§2.1 step 5) exactly:
- Very specific: line 196
Write the package: one root folder named after the skill, SKILL.md with quoted version: "1.0" frontmatter.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
NyxID service skill authoring (via Ornn)
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 jsonAll Ornn calls below assume that manual is loaded; it defines authentication, response shapes, and error handling.
Dedicated catalog curators
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.
No shell? Every step works over plain HTTP
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):
- Auth: send
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. - Ornn calls:
nyxid proxy request ornn-api "<path>" --method Mis exactlyM {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. - Service inventory (
nyxid service list):GET {BASE}/api/v1/keys— the authoritative connected-services view. - Catalog metadata (
nyxid catalog show <slug>):GET {BASE}/api/v1/catalog/{slug}; typed operations (nyxid catalog endpoints <slug>):GET {BASE}/api/v1/catalog/{slug}/endpoints. - Mount a spec / set skills (
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 viaPUT {BASE}/api/v1/endpoints/{endpoint_id}with the same fields. - Update account-owned routing or identity settings:
resolve the exact UserService ID from
GET {BASE}/api/v1/keys, then usePUT {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. ReadGET {BASE}/api/v1/keysafterward and verify the same UserService ID. Platform-wide catalog recovery is the separate admin-onlyPOST {BASE}/api/v1/services/{catalog_service_id}/resync-identityAPI. - Call the target service through the proxy
(
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.
Step 0 — Confirm the service really has no contract
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- If
endpointsreturns operations, oropenapi_spec_urlis set: stop — use the typed operations/spec directly. This skill is for the spec-less case only. - If
recommended_skillsis non-empty: those are curated pointers for this service. Look each one up on Ornn (Step 1) before anything else.
Step 1 — Search Ornn for an existing skill
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 jsonIf 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.
Step 2 — Classify the service before authoring
Look at the service's origin (source field from nyxid service list,
plus nyxid catalog show):
- Public/official service: catalog-backed, or a custom endpoint whose base URL is a well-known public API host with a vendor homepage. Its contract is publicly documented → go to Step 3A.
- User-created/private service: custom endpoint on an internal host, private IP, unknown domain, or anything clearly built by the user or their org. Its contract is NOT publicly knowable → go to Step 3B. Never author endpoints for a private service from guesswork or from "similar" public APIs.
When unsure, treat the service as private and ask.
Step 3A — Public service: research the official contract
- 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_urlfrom 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 appearedOnly 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.mddocumenting: 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.- Verify at least one read-only operation live through the proxy before publishing, when the user's credentials allow it.
- If the service is part of the NyxID official catalog and deserves
typed operations platform-wide, also suggest to the user that a curated
overlay be added to the NyxID repo (
backend/specs/catalog/) — that is the platform-managed path; your Ornn skill covers the gap meanwhile.
Step 3B — Private/custom service: the user is the only source
Ask the user, in one batch, for whatever they can provide:
- What the service is and what it is used for.
- An OpenAPI/Swagger document or URL, if one exists (mount it with
nyxid service update <slug> --openapi-spec-url ...— often this alone removes the need for a skill). - Otherwise: endpoint list (method + path + parameters), sample requests/responses, and any usage rules.
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.
Step 4 — Package, validate, upload, bind
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.mdwith quotedversion: "1.0"frontmatter. POST /api/v1/skill-format/validatewith the ZIP — loop untilvalid: true.POST /api/v1/skills— upload. Keep the returnedguid.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 jsonBinding 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.
Discovery notes for future sessions
- NyxID catalog entries expose
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. - Ornn's
GET /api/v1/skill-facets/system-serviceslists every service-bound skill platform-wide — always check it before authoring.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

