Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计通过

api-docs-writerAPI 文档写作

Agent Skill

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

总安装

261

周安装

11

GitHub Stars

283

下载量

92
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/mohitagw15856/pm-claude-skills --skill api-docs-writer

简介

将原始 API 规格转化为开发者友好的文档内容。

  • 支持 Markdown、OpenAPI YAML 和纯文本多种输出格式。
  • 需用户提供鉴权方式、基础 URL 和目标受众信息。
  • 特别适合产品经理或技术写作人员快速产出可读性强的指南。
  • api-docs-writer 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

API Docs Writer Skill

This skill transforms raw API specs, endpoint descriptions, or Postman collections into clean, developer-facing documentation following OpenAPI-adjacent conventions. Output is ready for a developer portal, README, or Notion/Confluence page.

Required Inputs

Ask the user for these if not provided:

  • API or endpoint details (raw spec, Postman export, or verbal description)
  • Auth method (API key / Bearer token / OAuth 2.0 / None)
  • Base URL
  • Audience (internal developers / external partners / public)
  • Output format (Markdown / OpenAPI YAML / Plain prose)

Output Structure

For each endpoint, produce the following:


[METHOD] /path/to/endpoint

Summary: [One line — what this endpoint does]

Description: [2–4 sentences. When to use this endpoint. What it returns. Any important behaviour to know (pagination, rate limits, async processing, etc.)]

Authentication: [Required / Optional — method]


Request

Headers:

HeaderRequiredDescription
AuthorizationYesBearer <token>
Content-TypeYesapplication/json

Path Parameters:

ParameterTypeRequiredDescription
idstringYesUnique identifier for the resource

Query Parameters:

ParameterTypeRequiredDefaultDescription
limitintegerNo20Max results per page (1–100)
cursorstringNoPagination cursor from previous response

Request Body:

{
  "field_name": "value",
  "another_field": 42
}
FieldTypeRequiredDescription
field_namestringYes[Plain description of what this field does]
another_fieldintegerNo[Description. Include valid range or enum values if applicable]

Response

Success Response: 200 OK

{
  "id": "abc123",
  "status": "active",
  "created_at": "2025-04-01T10:00:00Z"
}
FieldTypeDescription
idstringUnique identifier for the created/retrieved resource
statusstringCurrent status. Enum: active, inactive, pending
created_atISO 8601 stringTimestamp of creation in UTC

Error Codes

Status CodeError CodeDescriptionHow to Resolve
400INVALID_REQUESTRequest body is malformed or missing required fieldsCheck request body against schema above
401UNAUTHORIZEDMissing or invalid authentication tokenVerify your API key or refresh your token
404NOT_FOUNDThe requested resource does not existCheck the ID in the path parameter
429RATE_LIMITEDToo many requestsBack off and retry after Retry-After header value
500INTERNAL_ERRORUnexpected server errorRetry with exponential backoff; contact support if persists

Code Examples

Produce examples in at least 2 languages relevant to the audience (default: cURL + Python):

cURL:

curl -X POST https://api.example.com/v1/endpoint \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"field_name": "value"}'

Python:

import requests

response = requests.post(
    "https://api.example.com/v1/endpoint",
    headers={"Authorization": "Bearer YOUR_TOKEN"},
    json={"field_name": "value"}
)
data = response.json()

Quality Checks

  • Every parameter is documented (type, required/optional, description)
  • Response fields are fully documented with types
  • All relevant error codes are listed with resolution guidance
  • Code examples are copy-paste runnable (no pseudocode)
  • Auth method is clearly stated at the top
  • Enum values are listed where applicable
  • Pagination documented if the endpoint is a list endpoint

Example Trigger Phrases

  • "Document this API endpoint: [paste spec or description]"
  • "Turn this Postman collection into developer docs"
  • "Write API reference docs for [endpoint]"
  • "Write a developer guide for our [product] API"

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.17%
按下载量换算34

Claude

30.13%
按下载量换算28

Cursor

20.21%
按下载量换算19

Gemini CLI

9.43%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills