openapi-spec-generation

openapi-spec-generation is a skill for Claude Code, Codex from tmolavi/mcp-agent-skills-hub. It costs 42 tokens per session (227 once invoked), scanned A, original, MIT.

A guide to creating and checking OpenAPI 3.1 specifications, machine-readable descriptions of REST APIs.

In plain words
What is it for?
Use it to document APIs, design API contracts, check implementations, or generate client libraries and documentation portals.
Why use it?
It keeps API documentation and the actual implementation aligned, reducing confusion for people and software clients using the API.

Skill for Claude CodeCodex

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

Good fit Use it to document APIs, design API contracts, check implementations, or generate client libraries and documentation portals.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation
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 tmolavi/mcp-agent-skills-hub --skill openapi-spec-generation
Clone the repo
git clone --depth 1 https://github.com/tmolavi/mcp-agent-skills-hub

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 openapi-spec-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation/github.svg)](https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation)
Your own site
<a href="https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation"><img src="https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation/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 openapi-spec-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation"><img src="https://agentmods.dev/badge/skills/tmolavi/mcp-agent-skills-hub/openapi-spec-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 227 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.
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.00042 $0.00227
Opus 5 $0.00021 $0.00113
Sonnet 5 $0.00008 $0.00045
Haiku 4.5 $0.00004 $0.00023

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

Security

Grade A, and why

openapi-spec-generation 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

skills/openapi-spec-generation/SKILL.md · 34 lines

What it actually says

OpenAPI Spec Generation

Comprehensive patterns for creating, maintaining, and validating OpenAPI 3.1 specifications for RESTful APIs.

Use this skill when

  • Creating API documentation from scratch
  • Generating OpenAPI specs from existing code
  • Designing API contracts (design-first approach)
  • Validating API implementations against specs
  • Generating client SDKs from specs
  • Setting up API documentation portals

Do not use this skill when

  • The task is unrelated to openapi spec generation
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Resources

  • resources/implementation-playbook.md for detailed patterns and examples.
Files

What ships with it

1 file 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 · 34 lines · 42 tokens per session scan A 277a63c9921d

Subscribe to this mod's changes

openapi-spec-generation is a skill published in the GitHub repository tmolavi/mcp-agent-skills-hub (8 stars, last pushed 17d ago), licensed MIT. It adds 42 tokens to every session and 227 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

agent-communication-protocol

Open protocol for AI agent interoperability enabling standardized communication between agents, applications, and humans across different frameworks.

majiayu000/claude-skill-registry · 25 tokens

API Penetration Testing and Security

API endpoint security auditing, rate limiting, SQL/NoSQL injection prevention, and JWT authorization tests. / TR: Endpoint güvenliği, rate limiting, SQL/NoSQL injection koruması, JWT ve yetkilendirme (authorization) zafiyet testleri.

GktuOktay/ai-skills · 62 tokens

system-architecture

Design systems with appropriate complexity - no more, no less. Use when the user asks to architect applications, design system boundaries, plan service decomposition, evaluate monolith vs microservices, make scaling decisions, or review structural trade-offs. Applies to new system design, refactoring, and migration…

sairam0424/MindForge · 63 tokens

Schema Design

Scalable and secure schema design patterns for relational databases, NoSQL, and APIs. / TR: İlişkisel veri tabanları, NoSQL ve API'ler için ölçeklenebilir ve güvenli şema tasarım kalıpları.

GktuOktay/ai-skills · 55 tokens

data-pro-skill

Market research data analysis meta-prompt. Transforms raw quantitative and qualitative data into dense, Tufte-style analytical documents. Document-driven. Invisible agent loop: Statistician -> Critic -> Tufte Designer. Commands: /dps-setup, /dps-cross, /dps-inject-open, /dps-export. Modes: /dps-mode:quant…

pablodiegoo/Data-Pro-Skill · 101 tokens

fullstack-coder

Full-stack implementation agent that writes complete, production-ready code following an approved architecture and schema. Triggers on: write the code, implement features, build the app, code the MVP, generate codebase.

Aizaz-Noor/Agent-Startup-Skills · 46 tokens