← all corpora

spectral

reference corpus · status live · domain API (API design and specification) · lane A · refresh pinned · tags GLOBAL · SPECTRAL · LINTING · OPENAPI · ASYNCAPI · STYLE-RULES

What an agent uses it for

An agent linting OpenAPI/AsyncAPI documents queries this for Spectral's rule/function engine and the built-in OAS style rulesets.

Use it
curl -fsSLO https://raw.githubusercontent.com/xerj-org/xerj/corpus-hub/tools/xerj-code/hub/spectral.json
xerj corpus add --from ./spectral.json
xerj corpus index spectral then xerj code spectral "your question"

Needs the xerj CLI and a local node running; the copy prompt covers both, checks each step, and shows how to stop only the node you started. No shell: the MCP tool xerj_code_search with corpus: "spectral", once the corpus is indexed on the node.

Sources and pins

sourcepinlicencesizereview note
spectral 62527eec1143Apache-2.0 7.1 MB / 914 files licence host-verified (ok-spdx): Apache-2.0

7.1 MB across 914 files. Added 2026-10-13.

Rights

Apache-2.0. Redistribution permitted with attribution per the licence review. The review block records a human opening each licence file at the pin. Detector output is a hint, never the verdict.

Retrieval spot-check (G7)

Not yet spot-checked. Queries are pre-registered in the registry before grading.