Token导航 LogoToken导航

Agent Skill · 前端设计

api-documentation(API 文档)

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

api-documentation 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 10,088。

总安装 186周安装 8GitHub Stars 2下载 65核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于辅助 API 文档编写,适合生成开发者可读的请求响应示例和错误说明。适用于已有接口契约后的文档发布,如 OpenAPI 规范或迁移指南。使用时需聚焦受众需求,提供可复用的代码片段和清晰的认证流程说明。

安装命令:npx skills add https://github.com/akillness/oh-my-gods --skill api-documentation。应避免重新设计接口,而是基于已有 contract 输出标准化文档内容。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

api-documentation 怎么安装?

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

api-documentation 支持哪些 AI 工具?

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

api-documentation 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

api-documentation 是免费的吗?

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

api-documentation 用的人多吗?

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

api-documentation 安全吗?

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

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

值得选的地方

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

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

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

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
api-documentation

API 文档 · 本页

1862需要联网未明确通过

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

SKILL.md 原文

API Documentation

Use this skill when the work is publishing docs that developers will consume after an API contract exists.

The job is not to redesign the API or implement the backend. The job is to:

  • choose the right documentation surface for the audience
  • explain auth, requests, responses, errors, and limits clearly
  • give developers copy-pasteable examples
  • document migration and compatibility notes where they matter
  • hand off contract design, auth implementation, and test strategy to sibling skills instead of blurring boundaries

Read references/doc-surface-selection.md when the request is broad and you need to choose between reference docs, guides, webhooks, or SDK coverage. Read references/publishing-and-examples.md when the task needs examples, docs portal structure, or release and migration guidance.

If the user mainly needs:

  • contract design, resource modeling, versioning policy, or OpenAPI or GraphQL design before implementation, use api-design
  • auth implementation details such as JWT, OAuth, sessions, middleware, or provider callbacks, use authentication-setup
  • backend implementation, handlers, resolvers, or persistence work, keep it out of this skill
  • test plans, contract tests, or integration-test coverage, use backend-testing
  • end-user tutorials or help-center content rather than integrator-facing docs, use user-guide-writing

When to use this skill

  • Publish or refresh REST, GraphQL, webhook, or SDK documentation for developers
  • Turn an existing OpenAPI spec, schema, or endpoint list into readable docs
  • Write getting-started guides, auth setup docs, and example requests for integrators
  • Document errors, pagination, rate limits, retries, and webhook verification
  • Add migration notes, changelog-linked release notes, or deprecation guidance
  • Organize a docs portal or reference set into clear entrypoints for developers

When not to use this skill

  • The contract itself is still unsettled: use api-design first
  • The main task is server implementation, auth middleware, or SDK code
  • The main task is testing strategy, contract coverage, or harness design: use backend-testing
  • The audience is product end users rather than API consumers: use user-guide-writing
  • The request is only "generate Swagger from annotations" with no documentation-quality pass expected

Instructions

Step 1: Frame the docs job before writing pages

Capture the minimum facts that shape the documentation:

  • audience: external partners, internal developers, frontend teams, or SDK users
  • source of truth: OpenAPI, GraphQL SDL, endpoint table, code annotations, or existing docs
  • surface needed: reference docs, quickstart, webhook docs, SDK docs, migration notes, or a docs portal update
  • maturity: new launch, active integration, or migration or deprecation
  • gaps the docs must close: auth confusion, weak examples, unclear errors, poor onboarding, or stale release notes

If the source of truth is missing or unstable, say so and route contract work back to api-design instead of inventing details.

Step 2: Choose the right documentation surface

Do not answer every request with one giant endpoint dump.

Use the lightest mix that fits:

  • reference docs for endpoint or schema lookup
  • quickstart for first successful call
  • auth guide for tokens, headers, scopes, and environment setup
  • webhook guide for event payloads, signature verification, retries, and local testing
  • SDK docs for language-specific usage and examples
  • migration or release notes for breaking or additive changes

State which surface or surfaces you are producing and why.

Step 3: Write from the developer workflow

Order content around what an integrator needs next:

  1. what the API or surface is for
  2. prerequisites and auth
  3. first successful request or mutation
  4. request and response examples
  5. errors, limits, retries, and pagination
  6. advanced patterns or edge cases
  7. migration or change notes when relevant

Prefer concise sections over long narrative text. Developers should be able to scan, copy, and implement.

Step 4: Make examples real and safe

Every non-trivial docs packet should include examples that are:

  • syntactically valid
  • consistent with the documented contract
  • scrubbed of real secrets or private URLs
  • specific about headers, params, and response shape

Prefer:

  • curl for universal examples
  • one SDK or language example when the audience clearly needs it
  • sample errors alongside happy paths

If the docs mention pagination, rate limits, idempotency, or webhooks, include at least one example that shows the behavior instead of only naming it.

Step 5: Document operational semantics developers depend on

Include the details that break integrations when omitted:

  • authentication method, required headers, scopes, and token placement
  • error shape and machine-readable codes
  • pagination, filtering, sorting, and cursor semantics
  • rate limits, retries, timeouts, and idempotency behavior
  • webhook retry rules, ordering caveats, and signature validation
  • versioning, deprecation, and migration expectations

Do not drift into backend implementation steps unless the task is explicitly about docs generation from code comments or annotations.

Step 6: Organize the output packet

Choose the smallest documentation set that still helps the target audience.

Typical output shapes:

  • API docs packet: audience, surfaces produced, and source of truth
  • Quickstart: auth plus first successful request
  • Reference: endpoints, schemas, params, responses, and errors
  • Examples: curl plus one SDK or language example when needed
  • Operational notes: limits, retries, pagination, webhooks, or migration callouts
  • Handoffs: contract, auth, testing, or user-doc follow-up

Step 7: Review for docs-specific quality

Before finalizing, check:

  • would a new integrator know how to make the first call?
  • are examples consistent with the documented contract?
  • are failure cases documented where they matter?
  • does the answer stay in documentation territory rather than redesigning the API?
  • did you route contract, auth implementation, testing, or end-user docs to the right sibling skill?

Output format

Expected response shape:

  • Docs objective: audience, sources, and surfaces produced
  • Quickstart or entrypoint: how an integrator gets started
  • Reference coverage: endpoints, schemas, webhook events, or SDK methods
  • Examples: request and response samples plus failure cases where relevant
  • Operational notes: auth, errors, limits, retries, pagination, and migration or deprecation notes
  • Handoffs: which sibling skills should own contract design, auth setup, testing, or user-facing help

Examples

Example 1: Partner-facing REST docs refresh

Input:

Refresh our partner API docs. We already have an OpenAPI spec, but integrators
keep getting auth and pagination wrong and they want a clearer quickstart plus
curl examples.

Expected shape:

  • uses the existing spec as source of truth instead of redesigning the API
  • produces a quickstart plus reference and examples
  • explains auth, pagination, and errors clearly
  • stays on documentation work rather than contract design

Example 2: Webhook integration guide

Input:

Write webhook docs for our order events, including signature verification,
retry behavior, and local testing guidance.

Expected shape:

  • treats webhook docs as the primary surface
  • documents event payload shape, signature verification, retries, and local testing
  • includes sample headers and request body examples
  • avoids redesigning the event model unless the contract is clearly missing

Example 3: Boundary check against API design

Input:

Design our new billing API and write the docs portal for it.

Expected shape:

  • recognizes that contract design belongs to api-design
  • documents only after the contract surface is known
  • states the handoff boundary instead of doing both jobs as one vague answer

Best practices

  1. Use an existing contract or source of truth whenever possible
  2. Optimize for first successful integration, not only completeness
  3. Show failure modes and operational constraints, not just happy paths
  4. Keep examples copy-pasteable and free of real secrets
  5. Separate quickstart, reference, and migration content when the audience needs different entrypoints
  6. Route contract, auth implementation, testing, and end-user docs to sibling skills instead of duplicating them

References

平台分布

Codex

33.9%
按下载量换算22

Claude

31.64%
按下载量换算21

Cursor

19.6%
按下载量换算13

Gemini CLI

8.97%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills