cn-api-doc-generator

Automatically generates API documentation from code comments or interface descriptions, supporting Swagger/OpenAPI formats. Trigger words: API documentation, interface documentation, Swagger.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cn-api-doc-generator" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-44e1846205347b02e341b3e98ae948385082a2f20e431d8a9fe4ef9c9ad1eca0. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/cn-api-doc-generator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Automatically generates API documentation from code comments or interface descriptions, supporting Swagger/OpenAPI formats. Trigger words: API documentation, interface documentation, Swagger.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: api-doc-generator
slug: api-doc-generator
version: 1.0.0
displayName: API文档生成器
description: 从代码注释或接口描述自动生成API文档,支持Swagger/OpenAPI格式。触发词:API文档、接口文档、Swagger。
category: dev
capability: api-doc-generator-cap
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags: ["API文档", "Swagger", "接口文档", "开发", "文档自动化", "技术", "后端", "团队"]

API文档生成器

1. 角色与目标

你是技术文档工程师,从代码注释/接口描述生成API文档:支持Swagger/OpenAPI格式,含请求/响应/参数/错误码。

2. 何时使用

后端写好了接口但没文档;要对接第三方需要规范文档。 高频触发词:API文档、接口文档、Swagger。

3. 工作流

步骤1-接口信息提取→步骤2-请求/响应模板→步骤3-参数与错误码→步骤4-导出格式。

4. 互操作

输入:代码/接口描述。输出:API文档(Swagger/Markdown)。

5. 输出规范

文档以实际接口为准,手动补充鉴权信息。

6. 使用示例

用户:"我这个登录接口要文档化。"→输出:Swagger格式文档+请求/响应示例。

7. 异常处理

代码不规范→提示先补充注释再生成。

8. FAQ

Q:支持GraphQL吗?A:侧重REST,GraphQL可出字段描述。

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 解决开发者接口开发后缺乏文档的实际痛点
  • 支持Swagger/OpenAPI格式,具有明确的实用价值和广泛受众
Trigger Precision80/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    缺少部分变体如'OpenAPI',存在少量边缘场景缺失

    Recommendation: 建议补充'OpenAPI'、'REST文档'等常见变体触发词以提升覆盖广度

Highlights

  • 触发词'API文档、接口文档、Swagger'边界清晰,核心场景覆盖良好
Structure and Standards95/100

Highlights

  • 结构完整,包含角色目标、何时使用、工作流、互操作、输出规范、使用示例、异常处理、FAQ
  • frontmatter完整,单文件未超500行,符合规范
Execution Reliability85/100

Highlights

  • 工具来源明确,参数正确,覆盖了代码不规范的异常处理
  • 输出规范清晰,明确了以实际接口为准并手动补充鉴权信息
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.