api-doc-generator
生成 API 文档
手动编写的 API 文档往往落后于代码,并给开发者造成困惑。此技能可根据可用代码或端点详情,帮助生成 OpenAPI 草稿、请求示例和 Postman collection 指南。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "api-doc-generator" from https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator.md and its manifest at https://skillstore.io/api/skills/zhangchenlai-dev-api-doc-generator/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“api-doc-generator”。 一个用户服务包含 create user、get user、update user 和 delete user 端点。
预期结果:
一份结构化 API 参考,包含端点摘要、请求字段、响应示例、状态码和 OpenAPI-ready 章节。
正在使用“api-doc-generator”。 一个团队有路由代码,但没有面向合作伙伴的集成文档。
预期结果:
一份清晰的集成草稿,说明身份验证假设、请求示例、预期响应和 Postman collection 组织方式。
正在使用“api-doc-generator”。 现有 API 规范可能缺少最近新增的路由。
预期结果:
一份覆盖范围审查,列出缺失的端点、不完整的 schemas、不清晰的 examples 和建议的文档更新。
安全审计
安全The only static finding was a high-entropy heuristic on SKILL.md. Manual review found plain Markdown skill metadata and usage notes, with no obfuscation, prompt injection, exfiltration intent, or dangerous actions.
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/zhangchenlai-dev-api-doc-generator/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/zhangchenlai-dev-api-doc-generator.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
Hermes-Sedimentary. (2026). api-doc-generator security audit report (audit version 5) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator/audits/5BibTeX 引用
@techreport{hermes-sedimentary-zhangchenlai-dev-api-doc-generator-2026,
author = {Hermes-Sedimentary},
title = {api-doc-generator security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator/audits/5},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "api-doc-generator security audit report (audit version 5)"
version: "1.0.0"
type: report
authors:
- name: "Hermes-Sedimentary"
date-released: "2026-07-08"
url: "https://skillstore.io/skills/zhangchenlai-dev-api-doc-generator/audits/5"
identifiers:
- type: other
value: "skillstore:zhangchenlai-dev-api-doc-generator:audit:5"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
记录新服务
根据路由处理程序和 schema 注释生成 API 参考内容的初稿。
准备集成指南
将端点详情转换为面向外部合作伙伴的清晰请求示例。
标准化团队 API 规范
将分散的端点笔记转换为一致的 OpenAPI 导向结构。
试试这些提示
为这些端点生成 API 文档。包括 method、path、purpose、parameters、request examples 和 response examples。
审查这段 API 代码,并创建一个包含 paths、methods、request bodies、response schemas 和 common errors 的 OpenAPI 3.0 大纲。
将此端点文档转换为 Postman collection 指南。包括 folders、request names、headers、variables 和 example bodies。
将这些路由与当前 API 文档进行比较。识别缺失的端点、不清晰的 schemas、不一致的 examples 和过时的 response descriptions。
最佳实践
- 同时提供路由代码、schema definitions 和身份验证详情。
- 要求示例与真实的请求和响应结构保持一致。
- 在与客户共享之前审查生成的 OpenAPI 内容。
避免
- 不要在未根据实现验证的情况下发布生成的 specifications。
- 不要省略身份验证、错误处理或速率限制上下文。
- 不要将 placeholder examples 视为生产环境契约细节。
常见问题
此技能可以创建 OpenAPI 3.0 文档吗?
它可以直接创建 Postman collections 吗?
它会检查实时 API 吗?
哪类输入效果最好?
它对非英语团队有用吗?
生成的文档是最终版吗?
开发者详情
许可证
MIT
作者版本
v1.0.0
Skillstore 修订
r1
引用
64ca8af0f54a325752f08bd54e52151061ea659a
维护新鲜度
2026/7/21
使用量
2 次下载 · 1 次浏览
文件结构
📄 SKILL.md