okf-openapi

okf-openapi is a skill for Claude Code, Codex from xSAVIKx/okf-skills. It costs 114 tokens per session (728 once invoked), scanned A, original, Apache-2.0.

A command-line connector that turns an OpenAPI or Swagger API description into an Open Knowledge Format bundle. OpenAPI is a machine-readable document describing an HTTP API’s operations and data shapes.

In plain words
What is it for?
Cataloguing API endpoints and schemas from JSON or YAML specifications, exploring their relationships, and syncing improved descriptions through a metadata sidecar file.
Why use it?
It makes an API contract easier to browse and connects each endpoint to the data schemas it uses, without needing a running server or credentials.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Cataloguing API endpoints and schemas from JSON or YAML specifications, exploring their relationships, and syncing improved descriptions through a metadata sidecar file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xsavikx/okf-skills/okf-openapi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xSAVIKx/okf-skills --skill okf-openapi
Clone the repo
git clone --depth 1 https://github.com/xSAVIKx/okf-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for okf-openapi

README.md
[![agentmods](https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-openapi/github.svg)](https://agentmods.dev/skills/xsavikx/okf-skills/okf-openapi)
Your own site
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-openapi"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-openapi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for okf-openapi

Your own site · 80×15
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-openapi"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-openapi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 728 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.00728
Opus 5 $0.00057 $0.00364
Sonnet 5 $0.00023 $0.00146
Haiku 4.5 $0.00011 $0.00073

Measured 9d ago against content hash ada441bc598c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

okf-openapi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/okf-openapi/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenAPI OKF Connector

This skill provides a Go-based CLI tool to document an OpenAPI/Swagger specification as an Open Knowledge Format (OKF) bundle: one API Endpoint concept per operation and one Schema concept per component schema, with endpoints linked to the schemas they reference. It needs only the spec file — no live server, no credentials.

When to Use

Use this skill when you need to:

  1. Catalog an HTTP API from its OpenAPI 3.x or Swagger 2.0 contract (JSON or YAML).
  2. Turn endpoints and schemas into a connected, browsable graph (the endpoint→schema references edges render as typed edges in okf-viz).
  3. Round-trip enriched descriptions back to a .okf-metadata.yaml sidecar.

Setup

# Install the published binary (Go 1.24+):
go install github.com/xSAVIKx/okf-skills/skills/okf-openapi@latest

# …or build from a clone:
cd skills/okf-openapi && go build -o okf-openapi .

How to Use

1. Produce an OKF bundle

./okf-openapi produce --spec <api.yaml|api.json> --out <bundle-dir>
  • --spec (required): path to the OpenAPI 3.x or Swagger 2.0 spec (JSON or YAML; 2.0 is converted to 3.x automatically).
  • --out (required): output OKF bundle directory.

Each operation becomes endpoints/<operationId>.md (with parameter and response tables); each component schema becomes schemas/<Name>.md (with a # Columns property table: Name | Type | Required). Endpoints and schemas link to the schemas they reference under # Relationships. Re-running preserves enriched descriptions.

2. Ingest / sync descriptions

./okf-openapi ingest --spec <api.yaml> --bundle <bundle-dir> [--sync]
  • Verifies each concept still exists in the spec (reports drift); the spec file is never modified.
  • --sync: writes the bundle's descriptions to .okf-metadata.yaml next to the spec.

3. Inspect the schema (self-description)

./okf-openapi schema

Prints the machine-readable JSON description used by okf-mcp to expose the skill.

Read the full file on GitHub · 71 lines

Files

What ships with it

9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 71 lines · 114 tokens per session scan A ada441bc598c

Subscribe to this mod's changes

okf-openapi is a skill published in the GitHub repository xSAVIKx/okf-skills (33 stars, last pushed 9d ago), licensed Apache-2.0. It adds 114 tokens to every session and 728 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

thesaurus-get-{word}

Returns synonyms and antonyms for the given word.

bobadilla-tech/requiems-api-skills · 18 tokens

okf-authoring

Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…

aws-samples/sample-okf-llm-wiki · 102 tokens

report-authoring

The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.

aws-samples/sample-okf-llm-wiki · 44 tokens

api-caller

Call any REST API dynamically. Make GET, POST, PUT, DELETE requests to any endpoint with custom headers and JSON body.

NVIDIA/SkillEvaluator · 29 tokens

nw-diagram

Generates C4 architecture diagrams (context, container, component) in Mermaid or PlantUML. Use when creating or updating architecture visualizations.

nWave-ai/nWave · 33 tokens

okf-open-knowledge-format

Create, validate, and enrich Open Knowledge Format (OKF) bundles — the open spec for representing organizational knowledge as markdown files with YAML frontmatter. Use when the user mentions 'OKF', 'Open Knowledge Format', 'knowledge bundle', 'OKF bundle', 'create a knowledge base for agents', 'validate OKF', 'convert…

fabricioctelles/skills · 168 tokens