add-openapi-docs

add-openapi-docs is a skill for Claude Code, Codex from KhaledSaeed18/node-express-boilerplate. It costs 50 tokens per session (677 once invoked), scanned A, original, MIT.

Instructions for adding OpenAPI 3.1 documentation to API endpoints. OpenAPI is a machine-readable description of an API, often shown through an interactive Swagger page.

In plain words
What is it for?
Use it when documenting new or existing routes, adding resources, or updating the API documentation served at /api-docs.
Why use it?
It keeps endpoint descriptions, request fields, responses, validation rules, and security details aligned with the application.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when documenting new or existing routes, adding resources, or updating the API documentation served at /api-docs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs
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 KhaledSaeed18/node-express-boilerplate --skill add-openapi-docs
Clone the repo
git clone --depth 1 https://github.com/KhaledSaeed18/node-express-boilerplate

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 add-openapi-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs/github.svg)](https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs)
Your own site
<a href="https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs/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 add-openapi-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/node-express-boilerplate/add-openapi-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 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.00050 $0.00677
Opus 5.5 $0.00020 $0.00271
Sonnet 5.5 $0.00010 $0.00135
Haiku 4.5 $0.00005 $0.00068

Measured 3mo ago against content hash 31484df77100, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-openapi-docs 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 3mo 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.

.agents/skills/add-openapi-docs/SKILL.md · 58 lines

How it starts

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

When the user asks to document an endpoint or resource, follow this sequence. The spec is assembled at import time in src/docs/index.ts and served by swagger-ui-express at /api-docs.

Variables

  • <Name> = PascalCase singular (e.g. Note)
  • <name> = camelCase singular (e.g. note)
  • <names> = camelCase plural (e.g. notes)

Step 1 — Schemas (src/docs/schemas.ts)

Add component schemas for the resource:

  • <Name> — the response entity shape (must match <Name>ResponseDTO in src/types/, never include password/token/internal fields)
  • Create<Name>Request and Update<Name>Request — must match the Zod schemas in src/validations/<name>.validation.ts exactly (required fields, min/max lengths, formats)

Reuse the existing shared schemas: ErrorResponse, PaginatedResponse, SuccessResponse.

Step 2 — Paths (src/docs/paths/<name>.paths.ts)

Copy the structure of src/docs/paths/note.paths.ts. It defines reusable local constants — keep the same ones:

  • csrfHeader — required x-csrf-token header parameter on every mutating operation (POST/PUT/PATCH/DELETE)
  • rateLimitHeaders — X-RateLimit-* response headers with the route group's actual limit
  • authErrors — shared 401/403/429 responses referencing #/components/schemas/ErrorResponse
  • paginationParams — page/limit query params on list endpoints

For every operation document:

  • tags, summary, description (mention auth + rate limit)
  • Request body referencing the component schema, with a realistic example
  • All response codes actually produced: 200/201, 400 (validation), 401, 403 (CSRF or ownership), 404, 409 (conflict), 429
  • security: [{ bearerAuth: [] }, { cookieAuth: [] }] on protected endpoints

Export const <name>Paths = { ... } keyed by path (e.g. '/notes', '/notes/{id}' — no base URL prefix; src/docs/index.ts handles that).

Step 3 — Register (src/docs/index.ts)

import { <name>Paths } from './paths/<name>.paths';
// merge into the paths object alongside authPaths, notePaths, healthPaths

Read the full file on GitHub · 58 lines

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. 3mo ago First seen · 58 lines · 50 tokens per session scan A 31484df77100

Subscribe to this mod's changes

add-openapi-docs is a skill published in the GitHub repository KhaledSaeed18/node-express-boilerplate (36 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 677 once invoked, about $0.0002 per session on Opus 5.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

add-openapi-docs compared with skills from other repositories

add-openapi-docs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-openapi-docsKhaledSaeed18/node-express-boilerplateSkill367d agoMITA50Claude Code, Codex
backendmiles990/claude-software-skillsSkill2610mo agoMITA16Claude Code, Codex
expressjs-developmentmanutej/luxor-claude-marketplaceSkill645mo agononeA29Claude Code
api-integration-architectsickn33/agentic-awesome-skillsSkill51kyesterdayMITA33Claude Code
authentication-portal-apigreenpau/caddy-securitySkill2.3k13d agoApache-2.0A44Codex
coding-directivesgreenpau/caddy-securitySkill2.3k13d agoApache-2.0A45Codex
configuration-http-integrationsgreenpau/caddy-securitySkill2.3k13d agoApache-2.0A43Codex