Token导航 LogoToken导航

Agent Skill · 开发

ring%3awriting-api-docs(ring 3awriting API 文档)

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

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

总安装 824周安装 34GitHub Stars 180下载 269核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/lerianstudio/ring --skill ring:writing-api-docs

这个 Skill 是做什么的

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

用于辅助 API 设计和接口文档编写。适合梳理 endpoint、生成 OpenAPI 草稿或检查字段命名。需确认真实业务语义、鉴权方式和错误处理规则。应从现有代码或样例中提取事实,避免凭空补字段。ring%3awriting-api-docs 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/ring%3Awriting-api-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

ring%3awriting-api-docs 怎么安装?

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

ring%3awriting-api-docs 支持哪些 AI 工具?

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

ring%3awriting-api-docs 需要什么权限?

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

ring%3awriting-api-docs 是免费的吗?

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

ring%3awriting-api-docs 用的人多吗?

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

ring%3awriting-api-docs 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

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

适不适合你

更适合

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

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

开发类 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有提醒
ring%3awriting-api-docs

ring 3awriting API 文档 · 本页

824180接触敏感数据未明确未收录

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

SKILL.md 原文

Writing API Reference Documentation

API reference documentation describes what each endpoint does, its parameters, request/response formats, and error conditions. It focuses on the "what" rather than the "why."

API Reference Principles

  • RESTful and Predictable: Standard HTTP methods, consistent URL patterns, document idempotency
  • Consistent Formats: JSON requests/responses, clear typing, standard error format
  • Explicit Versioning: Version in URL path, backward compatibility notes, deprecated fields marked

Endpoint Documentation Structure

SectionContent
TitleEndpoint name
DescriptionBrief description of what the endpoint does
HTTP Method + PathPOST /v1/organizations/{orgId}/ledgers/{ledgerId}/accounts
Path ParametersTable: Parameter, Type, Required, Description
Query ParametersTable: Parameter, Type, Default, Description
Request BodyJSON example + fields table
Success ResponseStatus code + JSON example + fields table
ErrorsTable: Status Code, Error Code, Description

Field Description Patterns

TypePattern
Basicname: string — The name of the Account
With constraintscode: string — The asset code (max 10 chars, uppercase)
With exampleemail: string — Email address (e.g., "user@example.com")
DeprecatedchartOfAccountsGroupName: string — **[Deprecated]** Use \route instead

Data Types Reference

TypeDescriptionExample
uuidUUID v4 identifier3172933b-50d2-4b17-96aa-9b378d6a6eac
stringText value"Customer Account"
integerWhole number42
booleanTrue/falsetrue
timestamptzISO 8601 (UTC)2024-01-15T10:30:00Z
jsonbJSON object{"key": "value"}
arrayList of values["item1", "item2"]
enumPredefined valuescurrency, crypto

Request/Response Examples

Rules:

  • Show realistic, working examples (not "foo", "bar")
  • Show all fields that would be returned
  • Use actual UUIDs, timestamps, realistic data

Error Documentation

Standard error format:

{
  "code": "ACCOUNT_NOT_FOUND",
  "message": "The specified account does not exist",
  "details": { "accountId": "invalid-uuid" }
}

Error table:

StatusCodeDescriptionResolution
400INVALID_REQUESTValidation failedCheck request format
401UNAUTHORIZEDMissing/invalid authProvide valid API key
403FORBIDDENInsufficient permissionsContact admin
404NOT_FOUNDResource doesn't existVerify resource ID
409CONFLICTResource already existsUse different identifier
422UNPROCESSABLE_ENTITYBusiness rule violationCheck constraints
500INTERNAL_ERRORServer errorRetry or contact support

HTTP Status Codes

Success: 200 (GET/PUT/PATCH), 201 (POST creates), 204 (DELETE)

Client errors: 400 (malformed), 401 (no auth), 403 (no permission), 404 (not found), 409 (conflict), 422 (invalid semantics)

Server errors: 500 (internal)


Pagination Documentation

For paginated endpoints, document query parameters:

ParameterTypeDefaultDescription
limitinteger10Results per page (max 100)
pageinteger1Page number

Response includes: items, page, limit, totalItems, totalPages


Versioning Notes

Note: You're viewing documentation for the current version (v3).

For deprecated: > **Deprecated:** This endpoint will be removed in v4. Use [/v3/accounts](link) instead.


Quality Checklist

  • HTTP method and path correct
  • All path parameters documented
  • All query parameters documented
  • All request body fields documented with types
  • All response fields documented with types
  • Required vs optional clear
  • Realistic request/response examples included
  • All error codes documented
  • Deprecated fields marked
  • Links to related endpoints included

Standards Loading (MANDATORY)

Before writing any API documentation, MUST load relevant standards:

  1. Voice and Tone Guidelines - Load ring:voice-and-tone skill
  2. Field Description Patterns - Load ring:api-field-descriptions skill
  3. Documentation Structure - Load ring:documentation-structure skill

HARD GATE: CANNOT proceed with API documentation without loading these standards.


Blocker Criteria - STOP and Report

ConditionDecisionAction
API endpoint not implementedSTOPReport: "Cannot document non-existent endpoint"
API behavior undeterminedSTOPReport: "Need confirmed API behavior before documenting"
Response schema unknownSTOPReport: "Need response schema to document fields"
Error codes undefinedSTOPReport: "Need error code list before completing"
Voice/tone guidelines unclearSTOPReport: "Need style guide clarification"

Cannot Be Overridden

These requirements are NON-NEGOTIABLE:

  • MUST document ALL fields (request and response)
  • MUST include realistic examples (not "foo", "bar")
  • MUST document ALL error codes
  • MUST use present tense and active voice
  • MUST use sentence case for headings
  • CANNOT skip required vs optional indicators

Severity Calibration

SeverityCriteriaExamples
CRITICALMissing core sections, incorrect API pathsNo request/response examples, wrong HTTP method
HIGHMissing field documentation, no error codesUndocumented required fields, missing error table
MEDIUMVoice/tone violations, structure issuesPassive voice, title case headings
LOWMinor clarity improvements, formattingCould add more context, spacing issues

Pressure Resistance

User SaysYour Response
"Skip the examples, developers will figure it out""CANNOT skip examples. Realistic examples are REQUIRED for every endpoint. I'll add complete request/response examples."
"Just document the happy path, errors are rare""MUST document all error codes. Error handling is critical for developers. I'll include the complete error table."
"The code is the documentation""Code is NOT documentation. API reference MUST explain purpose, constraints, and behavior. I'll write proper field descriptions."
"We'll add docs later, ship the feature first""Documentation is part of the feature. CANNOT ship undocumented APIs. I'll complete the documentation now."
"Copy the schema, that's enough""Schema alone is insufficient. MUST add descriptions, examples, and context. I'll write complete documentation."

Anti-Rationalization Table

RationalizationWhy It's WRONGRequired Action
"Field name is self-explanatory"Self-explanatory to you ≠ self-explanatory to usersMUST write explicit description
"Simple API doesn't need extensive docs"Simplicity doesn't reduce documentation needDocument ALL fields completely
"Error codes are standard HTTP"Each error needs context and resolution guidanceMUST document all errors with resolutions
"Examples slow down documentation"Examples are the most-read part of API docsMUST include realistic examples
"Internal API, limited audience"Internal users deserve quality docs tooApply same standards as public APIs
"Schema is generated, no need to write"Generated schemas lack context and guidanceMUST add human-written descriptions

When This Skill is Not Needed

Signs that API documentation already meets standards:

  • ALL endpoints have HTTP method, path, and description
  • ALL request fields documented with type, required status, constraints
  • ALL response fields documented with type and description
  • ALL error codes listed with descriptions and resolutions
  • Realistic JSON examples for every request and response
  • Links to related endpoints included
  • Voice and tone guidelines followed consistently

If all above are true: Documentation is complete, no changes needed.

平台分布

Codex

34.53%
按下载量换算93

Claude

31.93%
按下载量换算86

Cursor

16.65%
按下载量换算45

Gemini CLI

8.75%
按下载量换算24

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills