scaledockhq/scaledock-skills/openapi-overlay
Claude Code and agent skill by scaledockhq/scaledock-skills
- community
Checking that the SKILL.md file is still in the repository.
OpenAPI Overlay 1.2: describe repeatable changes to OpenAPI documents as ordered JSONPath actions (update, copy, remove, reusable actions), kept separate from the source document. Covers Overlay 1.2 (current) and 1.1 (supported), and upgrades from 1.0. Use when writing, applying or reviewing an overlay file, adding vendor extensions, descriptions or examples to a generated OpenAPI description without editing it, removing internal operations before publishing to partners, renaming or moving paths, sharing one change across many operations with components.actions, upgrading an overlay from 1.0 or 1.1 to 1.2, validating against the official Overlay JSON Schema, or checking RFC 9535 JSONPath targets. Triggers: OpenAPI Overlay, overlay.yaml, overlay: 1.2.0, extends, actions, target, update, remove, copy, $ref components/actions, x-oai-traits.
Install
npx vskill@latest install scaledockhq/scaledock-skills/openapi-overlaySKILL.md
The same SKILL.md was published earlier as scaledockhq/scaledock-skills/openapi-overlay.
OpenAPI Overlay Specification
The Overlay Specification, published by the OpenAPI Initiative (OAI), defines a JSON or YAML document of ordered actions that change an existing OpenAPI description while staying separate from its source documents (§ 2, § 3.1). Each action selects nodes with an RFC 9535 JSONPath query. With this skill the agent writes, applies, upgrades and reviews Overlay documents.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the section it cites. Section numbers are those of Overlay 1.2.0 unless a rule says otherwise. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: author (writes the overlay), applier (a tool or pipeline step that applies it), or reviewer.
- Target: the OpenAPI description the overlay applies to, and its
$selfif it has one. - Target version: Overlay 1.2 (current, default). Overlay 1.1 is supported: use it only when the applying tool does not support 1.2 yet. Overlay 1.0 is legacy: read it and upgrade from it, never author it. No preview line exists; the 1.3 milestone has no specification text. See `references/versions.md`.
- Revision: the pinned revision in Sources, unless the user names another.
- Sources: when refreshing this skill or when a rule looks out of date, re-read every URL in Sources first, check spec.openapis.org/overlay for a newer version and for a published 1.2 schema iteration, and update the pins.
Invariants
- `overlay`, `info` and `actions` are REQUIRED, and
actionsholds at least one entry (§ 4.5.1.1).infoneedstitleandversion(§ 4.5.2.1). - Actions apply in order, each to the result of the previous one (§ 4.5.1.1).
- `target` is an RFC 9535 JSONPath query. Interoperable overlays MUST NOT use tool-specific JSONPath extensions, and tools MUST implement RFC 9535 fully (§ 4.5.4.1, § 4.9).
- `update` matches the kind of node selected: an object merges into objects, an array concatenates to arrays (an object or primitive appends), a primitive replaces primitives (§ 4.5.4.1). Several selected nodes MUST all be the same kind (§ 4.5.4.1).
- Merging is recursive: primitives replace, arrays concatenate, objects merge, and any other combination is an error (§ 4.5.4.1).
- `remove: true` wins:
updateandcopyhave no effect whenremoveistrue;copyselects a single node (§ 4.5.4.1). - A target that selects nothing succeeds without changing anything (§ 4.5.4.1). Verify match counts yourself.
- `$self` and `extends` identify whole documents and MUST NOT contain fragments (§ 4.4.2). When the target defines
$self,extendsSHOULD match it (§ 4.3). - A reusable action's `fields` never contains `target`; the Reusable Action Reference Object supplies it, and its
$refpoints under#/components/actions/with RFC 6901 escaping (§ 4.5.5.1, § 4.5.6.1, § 4.5.3.1). - Extensions start with `x-`; `x-oai-` and `x-oas-` are reserved for the OAI (§ 4.7).
Workflow
- Decide whether an overlay is the right tool. Use one when the change must be re-applied to a document you do not edit by hand, such as a generated or third-party description (§ 2).
✓ The source of truth for each change is clear: the source document or the overlay, not both.
- Pick the version and target. Default to 1.2; use 1.1 only for a tool that cannot apply 1.2. An
overlay: 1.0.xinput goes to the upgrade step. Setextendsto the target's$self, or to its URI.
-> `references/versions.md` ✓ overlay is set to a current or supported line, and extends has no fragment.
- Upgrade an existing overlay (only when asked, or for a 1.0 input). Follow the upgrade section for each step from the source line to the target (1.0 to 1.1, 1.1 to 1.2).
-> `references/versions.md` ✓ The upgraded overlay validates against the target schema and produces the same result on the same target.
- Write the actions. Prefer targets by stable keys (path names,
operationId, parameternameplusin) over array indexes, which shift when items are removed (§ 4.6.4).
-> `references/objects.md`, `references/examples.md` ✓ Each action has one purpose and a description; invariants 3 to 6 hold.
- Factor repeated changes into reusable actions (1.2 only) when several targets need the same
update,copyorremove.
-> `references/objects.md` ✓ Every components.actions entry is referenced at least once, and keys are escaped in $ref.
- Apply and inspect. Apply the overlay with a tool that implements RFC 9535, diff the result against the input, and confirm every action selected the nodes you meant.
-> `references/safety.md` ✓ No action matched zero nodes unexpectedly; no security requirement, scheme or operation was removed unless intended.
- Validate. Validate the overlay against the Overlay schema for its version, then validate the resulting OpenAPI document against the OAS schema for its version.
-> `references/versions.md` ✓ Both validations pass.
Verify before done
- [ ] No Overlay 1.0 document is written.
- [ ] The overlay validates against its schema: the published 1.1 schema iteration, or for 1.2 the work-in-progress schema at the pinned commit until a 1.2 iteration is published (`references/versions.md`).
- [ ] Every
targetis plain RFC 9535 JSONPath with no tool-specific syntax (§ 4.9). - [ ] Every action selected at least one node on the current target document, unless a no-op is intended (§ 4.5.4.1).
- [ ]
extendsand$selfhave no fragment (§ 4.4.2), andextendsmatches the target's$selfwhen it has one (§ 4.3). - [ ] The result validates against the OpenAPI schema and still contains every security requirement and scheme it should.
- [ ] The file follows
purpose.overlay.yamlnaming, or a documented local convention (§ 4.8).
Reference index
- `references/objects.md`: every Overlay object and field, the merge rules, and JSONPath notes. Load for steps 4 and 5.
- `references/examples.md`: common recipes in YAML (add extensions, remove internal operations, add a parameter everywhere, move a path, reusable error responses, traits). Load for step 4.
- `references/versions.md`: every version line (1.2 current, 1.1 supported, 1.0 legacy) with its status, which one to use, what changed, the 1.0 to 1.1 and 1.1 to 1.2 upgrades, the schemas, and why no preview is listed. Load for steps 2, 3 and 7.
- `references/safety.md`: what can go wrong when applying overlays, and the checks that catch it. Load for step 6.
Related skills
openapifor the OpenAPI descriptions an overlay changes:npx skills add ScaleDockHQ/scaledock-skills --skill openapi.openapi-arazzofor workflows that run against the resulting description:npx skills add ScaleDockHQ/scaledock-skills --skill openapi-arazzo.
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- Overlay Specification v1.2.0: Released, 1.2.0 (2026-09-22), checked 2026-10-02.
- Overlay 1.2.0 release: Released, 1.2.0, checked 2026-10-02.
- Overlay Specification v1.1.0: Released, 1.1.0 (2026-01-14), checked 2026-10-05.
- Overlay 1.1.0 release: Released, 1.1.0 (published 2026-01-16), checked 2026-10-05.
- Overlay Specification v1.0.0: Released, 1.0.0 (2024-10-17), checked 2026-10-05.
- Overlay versions and schema iterations: OAI index, latest v1.2.0, checked 2026-10-05.
- Overlay 1.1 JSON Schema: Published schema, iteration 2026-04-01, checked 2026-10-02.
- Overlay 1.0 JSON Schema: Published schema, iteration 2026-04-01, checked 2026-10-05.
- Overlay 1.2 JSON Schema, work in progress: Unpublished work-in-progress schema on the
v1.2-devbranch, commit 5f387a7 (2026-09-22), checked 2026-10-02. - Publish Overlay schema iterations (spec.openapis.org pull request 141): Open pull request, state on 2026-09-29, checked 2026-10-02.
- Overlay: upgrading between versions 1.1 and 1.2: OAI guide (non-normative), page as published, checked 2026-10-02.
- Overlay: upgrading between versions 1.0 and 1.1: OAI guide (non-normative), page as published, checked 2026-10-05.
- Overlay Specification milestones: Planning (Release 1.3 has three open issues and Release 2.0 three open issues, neither with specification text), as listed, checked 2026-10-05. Draft posture: track.
- RFC 9535: JSONPath: Query Expressions for JSON: RFC (Proposed Standard), RFC 9535, checked 2026-10-02.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/openapi-overlay/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scaledockhq/scaledock-skills/openapi-overlay)