跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/jeremylongshore/claude-code-plugins-plus-skills/generating-api-docs

Generating API Docs Skill for OpenAPI Examples

Use Claude Code to document request parameters, successful responses, and error cases, then compare the examples against a local API.

中文

Install in Claude Code

Use a local API, an OpenAPI 3 definition, and Swagger UI or a similar preview. The example uses synthetic product IDs.

  1. Get the complete `plugins/api-development/api-documentation-generator/skills/generating-api-docs` directory from the pinned GitHub commit.
  2. Copy it into the target project's `.claude/skills/`. Check `.claude/skills/generating-api-docs/SKILL.md`, start Claude Code at the project root, and call `/generating-api-docs`.

Example task

Document GET /products/{id} with an integer id and both 200 and 404 responses. Make the local service return Demo Mug for 7 and PRODUCT_NOT_FOUND for 999, then check both examples in the preview.

What to check

A reader can reproduce the two requests, match the responses to the specification, and understand the stable error code.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Should I add error responses to OpenAPI?

Describe the response shape, example, and handling guidance for statuses clients can receive, especially stable error codes.

Browse Claude Code skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯