跳到技能内容
词映 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/sethdford/claude-skills/api-documentation

Write OpenAPI documentation and response examples with Claude Code

Use api-documentation to describe actual routes, parameters, response shapes, and error cases in OpenAPI.

中文

Install in Claude Code

Claude Code and a local API route or existing OpenAPI schema.

  1. Open the pinned GitHub source below and retrieve the `engineer/api-development/skills/api-documentation/` directory from that revision.
  2. Copy it into `.claude/skills/api-documentation/` in your project, keeping `SKILL.md` and its companion files together.
  3. Open Claude Code in the project root and enter `/api-documentation` followed by the example task.

Example task

Provide a sample GET /books/{id} route that returns id and title on 200 and an error field on 404. Ask for an OpenAPI fragment with one example for each response.

What to check

The fragment marks id as a required path parameter and documents both response payloads in the shape the route implements.

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

Frequently asked question

How do I keep generated API docs aligned with the implementation?

Compare the spec to the route, response schema, and local examples whenever the endpoint changes.

词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯