Token导航 LogoToken导航

Agent Skill · 开发

api-documentation(API 文档)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

api-documentation 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 10,955。

总安装 2,002周安装 81GitHub Stars 11下载 629核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:api-documentation(API 文档)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/api-documentation
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill api-documentation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill api-documentation

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

用于辅助 API 文档编写与更新,提升开发者集成效率。适合生成 endpoint 参考、快速入门指南和 SDK 使用说明。聚焦于“首次成功”和“持续演进”的文档目标。

安装命令:npx skills add https://github.com/akillness/oh-my-skills --skill api-documentation。输出应基于真实接口定义,避免脱离实际实现补充内容。

来源仓库内路径:skills/api-documentation

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill api-documentati…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-documentation 怎么安装?

在终端执行 npx skills add https://github.com/akillness/oh-my-skills --skill api-documentation。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

api-documentation 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

api-documentation 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

api-documentation 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

api-documentation 用的人多吗?

公开数据是累计安装 2,002 次,近一周安装 81 次,下载 629 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

api-documentation 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
api-documentation

API 文档 · 本页

2,00211接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

API Documentation

Use this skill when the main job is publishing or refreshing developer-facing API docs that help integrators reach first success, understand reference truth, and stay unblocked as the API evolves.

api-documentation is the documentation-cluster anchor for:

  • endpoint / schema reference docs
  • quickstarts and first-success flows
  • task-oriented integration guides
  • SDK guides
  • webhook delivery / verification docs
  • developer-portal navigation and grouped reference surfaces
  • migration updates attached to the docs surface

Read these support docs before choosing the mode or output packet:

When to use this skill

  • A team needs API reference, quickstarts, or portal pages that external developers, partners, or internal integrators can actually use.
  • An OpenAPI or schema artifact already exists, but the docs need structure, examples, auth/setup guidance, error handling, or clearer navigation.
  • Existing API docs drifted after auth, versioning, retry, pagination, webhook, or SDK changes.
  • A public, partner, or internal API launch needs developer-facing guides, migration notes, or trustworthy examples.
  • A large API surface needs grouping, selective publishing, or cleaner portal structure instead of one giant reference dump.

When not to use this skill

  • The main job is designing resources, endpoint shape, schema rules, or versioning strategy → use api-design.
  • The main job is writing internal specs, ADRs, runbooks, rollout docs, or system migration procedures → use technical-writing.
  • The main job is end-user/product UI onboarding, screenshots, tutorials, or help-center docs → use user-guide-writing.
  • The main job is implementing auth/session/provider behavior rather than documenting how API consumers authenticate → use authentication-setup.
  • The main job is release-note, semver, or changelog hygiene → use changelog-maintenance.
  • There is no credible source of truth for the API behavior yet → route missing contract questions back to api-design instead of inventing docs from vibes.

Instructions

Step 1: Classify the API-doc job

Normalize the request before drafting.

api_documentation_mode:
  primary_mode: reference | quickstart | task-guide | sdk-guide | webhook-guide | migration-update
  api_style: rest | graphql | webhook | sdk | mixed | unknown
  audience: external-developers | internal-integrators | partners | mixed | unknown
  source_of_truth: openapi | graphql-schema | code-annotations | tests | mixed | unknown
  docs_surface: developer-portal | docs-site | repo-markdown | sdk-site | internal-catalog | unknown
  navigation_scope: single-operation | grouped-resource | large-api-surface | portal-section | unknown
  maintenance_state: new-docs | refresh | drift-fix | launch-critical

Choose one primary mode per run:

  • reference → endpoint/schema truth with parameters, fields, errors, limits, and examples
  • quickstart → fastest path to first successful API call or webhook receipt
  • task-guide → one workflow or integration outcome
  • sdk-guide → language/client-library guidance plus examples and caveats
  • webhook-guide → delivery, verification, retry, and local-debug guidance
  • migration-update → changed behavior and transition path on the docs surface

If the surface is large, also decide whether the task is about grouping/navigation as much as prose. Do not hide large-surface information architecture inside a generic “write docs” request.

Step 2: Confirm boundary skills and the real developer job

Answer these four questions before writing:

  1. Who is integrating with this API, and what exact job should they complete after reading?
  2. What artifact is the real contract source of truth today?
  3. Which docs surface are you updating: portal, repo docs, SDK site, internal catalog, or mixed?
  4. Which neighboring skills must stay out of scope?

Quick route-out table:

If the request sounds like...Use
"Design the endpoints / resources / schema before coding"api-design
"Write the architecture doc / ADR / rollout plan / runbook"technical-writing
"Write customer help docs for using the product UI"user-guide-writing
"Explain provider setup / session middleware / token implementation"authentication-setup
"Summarize what shipped in the release"changelog-maintenance
"Write the developer portal / OpenAPI docs / quickstart / webhook guide"api-documentation

Step 3: Gather the smallest truthful evidence set

Do not write API docs from an outdated spec alone. Pull the minimum credible evidence first:

  • current OpenAPI / GraphQL schema / endpoint list / SDK surface
  • auth requirements: keys, headers, scopes, signing, sandbox vs production, callback/webhook verification
  • example requests and responses that match current behavior
  • common errors, retries, limits, pagination/cursor behavior, and idempotency expectations
  • versioning, deprecation, and migration notes
  • tests, fixtures, or verified requests that keep examples honest
  • publishing constraints: portal nav, selective publishing needs, docs-site structure, or internal-catalog grouping

If details are incomplete, label assumptions clearly and produce a docs-gap list instead of faking certainty.

Step 4: Choose the smallest useful packet

Match the output to the developer job. Do not dump quickstart, reference, SDK docs, and migration notes into one giant page by default.

Common packet choices:

  • one quickstart page
  • one grouped reference section
  • one task/integration guide
  • one SDK guide
  • one webhook guide
  • one migration-update note
  • one docs-gap / drift checklist for unresolved truth-source issues
  • one navigation/grouping proposal for a large API surface

Use references/output-packets-and-navigation.md for mode skeletons and portal/grouping guidance.

Step 5: Apply API-doc rules instead of generic writing advice

Use these rules aggressively:

  • Lead with the developer task and integration surface, not marketing copy.
  • State auth and environment assumptions early.
  • Keep examples truthful: prefer tests, verified requests, or real fixture shapes.
  • Document operational realities: errors, retries, limits, pagination, webhook replay, eventual consistency, idempotency.
  • Separate reference truth from workflow guidance.
  • Expose navigation decisions on large APIs: grouping, selective publishing, and related-guide links matter.
  • Link outward deliberately: quickstarts point to deeper reference; reference points to task guides; migration updates point to changelog/release notes rather than replacing them.

Step 6: Protect against drift on purpose

Before finalizing, record:

  • contract source of truth
  • example source of truth
  • publishing surface
  • review trigger
  • drift hotspots: auth, limits, retries, versioning, webhook fields, SDK examples, migration notes
  • companion docs that must stay aligned: quickstarts, SDK pages, changelog entries, Postman collections, portal navigation

Use references/publishing-and-drift-control.md as the anti-drift checklist.

Step 7: Verify output quality

Before shipping, check:

  1. Could a new integrator reach first success with this doc set?
  2. Are auth and environment assumptions visible before the first call?
  3. Do examples match real behavior?
  4. Are errors, limits, retries, pagination, or verification notes present where needed?
  5. Is the output packet small enough for the request?
  6. Are route-outs to api-design, technical-writing, user-guide-writing, authentication-setup, and changelog-maintenance still explicit?

Examples

Example 1: Partner API quickstart

Input: “Write the quickstart for our Orders API so partners can create an API key, send the first POST /orders, and verify the returned order ID.”

Good output shape: chooses quickstart, shows prerequisites and auth early, gives one first-success request plus a success check, and links to the deeper reference surface.

Example 2: Large reference cleanup

Input: “Our developer portal publishes one huge OpenAPI collection; help us regroup endpoints, expose only partner-safe sections, and add navigation that developers can scan.”

Good output shape: treats this as reference plus navigation/grouping work, proposes grouped sections or selective publishing, preserves truthful reference links, and does not pretend auto-generation alone solves the structure problem.

Example 3: Webhook change notice

Input: “Update our webhook docs because invoice.paid now retries for 24 hours, includes attempt_count, and requires HMAC verification on every delivery.”

Good output shape: chooses webhook-guide or migration-update, documents retry and verification behavior, updates affected examples, and keeps implementation details and release-note hygiene out of scope.

Example 4: Route-out to API design

Input: “We haven’t decided whether this should be REST or GraphQL, and we need a resource model and pagination plan.”

Good output shape: routes the task to api-design, explains that contract/interface work must happen before docs publication, and may note what docs surfaces will be needed later.

Best practices

  1. Treat API docs as developer workflow artifacts, not as schema rendering alone.
  2. Keep contract design separate from developer-facing publication.
  3. Prefer small, truthful packets over one giant portal page.
  4. Make auth, examples, limits, retries, pagination, and webhook behavior explicit early.
  5. Document navigation/grouping decisions for large surfaces instead of burying them in prose.
  6. Tie docs maintenance to real truth sources so refreshes do not drift.
  7. Route adjacent writing, auth implementation, and release hygiene tasks to the right neighboring skill.

References

平台分布

Codex

37.87%
按下载量换算238

Claude

31.79%
按下载量换算200

Cursor

17.54%
按下载量换算110

Gemini CLI

9.75%
按下载量换算61

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills