← 返回 Skills 市场
1kalin

API Documentation Generator

作者 1kalin · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
672
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install afrexai-api-docs
功能描述
Generate comprehensive OpenAPI 3.0 specs, markdown reference docs, and SDK quickstarts from API endpoint descriptions with examples and error codes.
使用说明 (SKILL.md)

API Documentation Generator

Generate production-ready API documentation from endpoint descriptions. Outputs OpenAPI 3.0, markdown reference docs, and SDK quickstart guides.

Usage

Describe your API endpoints and this skill generates:

  1. OpenAPI 3.0 spec — machine-readable, import into Swagger/Postman
  2. Markdown reference — human-readable endpoint docs with examples
  3. SDK quickstart — copy-paste integration guide for developers

Instructions

When the user describes API endpoints (routes, methods, parameters, responses):

  1. Generate a complete OpenAPI 3.0 YAML specification
  2. Create markdown documentation with:
    • Authentication section
    • Each endpoint: method, path, description, parameters table, request/response examples
    • Error codes reference
    • Rate limiting notes
  3. Generate a quickstart guide with curl examples and common language snippets (Python, JavaScript, Go)

Output Format

# openapi.yaml — full OpenAPI 3.0 spec
# API Reference — human-readable docs
# Quickstart Guide — integration examples

Quality Standards

  • Every endpoint must have request AND response examples
  • Use realistic sample data, not "string" or "example"
  • Include error responses (400, 401, 403, 404, 500)
  • Document pagination, filtering, and sorting patterns
  • Note breaking changes and versioning strategy

Tips

  • Paste your route files or controller code for automatic extraction
  • Works with REST, GraphQL (schema-first), and gRPC (proto-first)
  • Combine with CI/CD to auto-generate docs on every deploy

Built by AfrexAI — AI-powered business tools for teams that ship fast.

安全使用建议
This appears internally consistent and low-risk, but follow these practical precautions before use: 1) Do not paste production secrets, API keys, or private certificates into the skill — only paste code or route descriptions you are comfortable sharing. 2) If you integrate this with CI/CD or a repo, grant the minimal scopes required and review any automation scripts. 3) Verify generated OpenAPI/spec examples before publishing (to avoid leaking sample data). 4) If you want the agent to read files automatically, require an explicit, auditable connector rather than pasting sensitive files. Overall the skill is coherent with its stated purpose, but treat any code or configs you provide as potentially visible to the agent and avoid including secrets.
功能分析
Type: OpenClaw Skill Name: afrexai-api-docs Version: 1.0.0 The skill bundle is benign. All files (`_meta.json`, `SKILL.md`, `README.md`) align with the stated purpose of generating API documentation. The `SKILL.md` provides clear, task-specific instructions for the AI agent to generate OpenAPI specifications, markdown reference, and quickstart guides, without any evidence of prompt injection attempts to subvert the agent's behavior, exfiltrate data, or execute unauthorized commands. The `README.md` provides standard user-facing information and installation instructions. All external links are to the developer's own projects and do not appear malicious.
能力评估
Purpose & Capability
Name and SKILL.md describe generating OpenAPI, markdown docs, and quickstarts; the skill requests no binaries, env vars, or installs — this matches the stated purpose.
Instruction Scope
Runtime instructions stay narrowly focused on producing OpenAPI specs, reference docs, and quickstarts. The only note is a suggestion to 'paste your route files or controller code for automatic extraction' — this is user-driven input, not an instruction to access system files or credentials autonomously.
Install Mechanism
No install spec and no code files — instruction-only. That minimizes disk-write and remote-code risk.
Credentials
The skill requests no environment variables, credentials, or config paths; nothing disproportionate is required for generating docs.
Persistence & Privilege
Defaults (not always: true) and normal autonomous invocation are used. There is no request for permanent presence or modification of other skills/configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install afrexai-api-docs
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /afrexai-api-docs 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release: Generate professional API documentation from endpoint descriptions. - Outputs OpenAPI 3.0 YAML, markdown API reference, and SDK quickstart guides. - Supports detailed examples for requests, responses, error codes, and authentication. - Handles REST, GraphQL, and gRPC formats. - Emphasizes high-quality, production-ready documentation with full endpoint coverage. - Tips provided for automation and workflow integration.
元数据
Slug afrexai-api-docs
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

API Documentation Generator 是什么?

Generate comprehensive OpenAPI 3.0 specs, markdown reference docs, and SDK quickstarts from API endpoint descriptions with examples and error codes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 672 次。

如何安装 API Documentation Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install afrexai-api-docs」即可一键安装,无需额外配置。

API Documentation Generator 是免费的吗?

是的,API Documentation Generator 完全免费(开源免费),可自由下载、安装和使用。

API Documentation Generator 支持哪些平台?

API Documentation Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 API Documentation Generator?

由 1kalin(@1kalin)开发并维护,当前版本 v1.0.0。

💬 留言讨论