openapi-documentation

A guide for writing OpenAPI 3.0 specifications, which are structured descriptions of REST APIs. It covers endpoints, data fields, login requirements, errors, and examples.

In plain words
What is it for?
Use it when adding or changing REST API endpoints, request or response data, authentication, or error handling. It does not apply to internal functions or GraphQL APIs.
Why use it?
It helps keep API documentation accurate when the implementation changes. Clear specifications can also be used to generate working client code.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/getappz/agentflare/openapi-documentation
Any agent
npx skills add getappz/agentflare --skill openapi-documentation
Clone the repo
git clone --depth 1 https://github.com/getappz/agentflare

Made for: Claude Code, Codex.

Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00078 $0.00772
Opus 5 $0.00039 $0.00386
Sonnet 5 $0.00016 $0.00154
Haiku 4.5 $0.00008 $0.00077

Measured yesterday against content hash f146e9530d1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

openapi-documentation 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 yesterday.

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.

.claude/skills/openapi-documentation/SKILL.md · 94 lines

How it starts

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

OpenAPI Documentation

Write OpenAPI 3.0 specs that are accurate enough to generate a working client from, not just descriptive prose that happens to be near the code.

When to use

  • Creating or updating an OpenAPI/Swagger spec for a REST API.
  • An endpoint's request/response shape, auth requirement, or error surface changed and the spec needs to catch up.
  • Skip for non-HTTP internal APIs/functions, and skip for GraphQL (which has its own schema/introspection story, not OpenAPI's).

Key responsibilities

  1. Create OpenAPI 3.0-compliant specifications — validate against the spec, not just "looks right."
  2. Document every endpoint with both a summary and a fuller description — the summary is what shows up in a collapsed list view, so it has to stand alone.
  3. Define request/response schemas accurately, including every field's type and whether it's required.
  4. Include authentication and security schemes — an endpoint's auth requirement is part of its contract, not an implementation detail to omit.
  5. Provide a real example for every operation — a schema without an example makes the reader reconstruct a valid payload by hand.

Best practices

  • Use descriptive summaries and descriptions — "Get user" tells a reader nothing an endpoint path didn't already say; "Get a user's profile, including their current subscription tier" does.
  • Include example requests and responses, not just one or the other.
  • Document every realistic error response (400/401/403/404/409/5xx), not just the 200 case — the error surface is as much a contract as success.
  • Use $ref for reusable components (schemas, responses, parameters) — duplicated inline schemas drift out of sync with each other.
  • Follow the OpenAPI 3.0 specification strictly, not "close enough" — strict compliance is what makes codegen and client tooling actually work.
  • Group endpoints logically with tags so the generated docs UI is navigable, not one flat list.

Structure

Read the full file on GitHub · 94 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. yesterday First seen · 94 lines · 78 tokens per session scan A f146e9530d1f

Subscribe to this mod's changes

openapi-documentation is a skill published in the GitHub repository getappz/agentflare (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 78 tokens to every session and 772 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

task-loop

任务目标驱动执行闭环预装 skill,整合任务识别/规划/派发搜推/验收/BBS 接力/arch 场景规划变体(planning-arch)与架构师名册 mock(arch-analysis)共七段为单一 skill,预装到所有 bot 等同各段单独安装到对应 bot;各段按各自触发词自门控仅命中段执行(用户面 /task 或 [RESUMETASK] 或副屏标签命中识别;框架 [planning] 命中规划,arch 场景含「某某某公司」命中 planning-arch 变体;框架 [search] 命中派发搜推;worker 叶子自验收命中验收;引擎 BBS 通知命中接力,其 scoped 叶子 instruction…

inclusionAI/Avernet · 210 tokens

bcs-coordination

全场景多智能体协同和交互引擎。覆盖多Bot复杂任务协同与沉浸式娱乐互动。通过提供注册发现、群组构建、上下文融合及路由通信能力等核心能力,支持能力互补、信息和知识的融合、冲突消解、工作流编排,以及2C场景下多人游戏互动等。.

inclusionAI/Avernet · 88 tokens

bbs-relay-pickup

被唤醒时从 task API 发现 BBS 升级任务、CAS 占根、自判剩余、挂节点、执行、经回投写回.

inclusionAI/Avernet · 43 tokens

bcs-coordination

全场景多智能体协作和交互引擎。覆盖 Bot 注册发现、自由聊天、任务协作、上下文融合、路由通信和自定义协作。用户需要自定义参与角色、执行步骤、串并行关系或最终交付物时,使用自定义协作能力,并通过 BCS 的 statemachine YAML 实现和校验。.

inclusionAI/Avernet · 86 tokens

task-planning-arch

计算任务 gap 并产出下一步可执行子任务 List[TaskSpec];gap 已闭返回空数组。对齐 arch 场景(架构师名册/技术栈概览/双视角分析)确定式分解——按根目标交付物集合 + donechildren 查表(参照 task-planning storage 特例,非自由 LLM 分解)。.

inclusionAI/Avernet · 89 tokens

task-search

在框架预查的候选 bot 集里决出执行者(who)与协作方式(how),返回 4 态 SearchResult(HITSINGLE/HITGROUP/HITMULTIBOTS/MISS)。对齐案例剧本确定式映射。.

inclusionAI/Avernet · 59 tokens