Token导航 LogoToken导航TokenDH.com
前端设计需要联网github未标认证来源可访问许可证需确认审计通过

api-documentationAPI 文档

Agent Skill

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

总安装

186

周安装

8

GitHub Stars

2

下载量

65
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于辅助 API 文档编写,适合生成开发者可读的请求响应示例和错误说明。

  • 适用于已有接口契约后的文档发布,如 OpenAPI 规范或迁移指南。
  • 使用时需聚焦受众需求,提供可复用的代码片段和清晰的认证流程说明。
  • 安装命令:npx skills add https://github.com/akillness/oh-my-gods --skill api-documentation。
  • 应避免重新设计接口,而是基于已有 contract 输出标准化文档内容。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

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