AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Api Doc Zh

skill-agiwish-hermes-skills-zh-api-doc-zh · by AgiWish

API 接口文档生成器。输入接口描述或代码,自动生成标准 API 文档,包含请求参数、响应格式、错误码和调用示例。

No reviews yet
0 installs
7 views
0.0% view→install

Install

$ agentstack add skill-agiwish-hermes-skills-zh-api-doc-zh

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-agiwish-hermes-skills-zh-api-doc-zh)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Api Doc Zh? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

API 接口文档生成 (api-doc-zh)

When to Use

  • "帮我写这个接口的文档"、"把这段代码转成 API 文档"
  • 前后端对接需要接口规格说明
  • 对外提供 API 需要标准化文档
  • /api-doc-zh [接口描述或代码片段]

Quick Reference

/api-doc-zh [接口描述 / 代码]

可选参数:
  --style=markdown  # Markdown 格式(默认)
  --style=openapi   # OpenAPI 3.0 YAML 格式
  --lang=zh         # 中文文档(默认)
  --lang=en         # 英文文档

Procedure

  1. 解析接口信息
  • HTTP 方法 + 路径
  • 请求参数(Query / Body / Header)
  • 响应结构
  • 权限要求
  1. 输出标准接口文档
## [接口名称]

**接口描述**:[一句话说明这个接口做什么]

### 基本信息
| 项目 | 内容 |
|------|------|
| 请求方法 | POST / GET / PUT / DELETE |
| 请求路径 | `/api/v1/[path]` |
| 权限要求 | [无需鉴权 / Bearer Token / API Key] |
| 频率限制 | [X 次/分钟] |

### 请求参数

**Header**
| 参数名 | 类型 | 必填 | 说明 |
|--------|------|------|------|
| Authorization | String | 是 | Bearer {token} |

**Query 参数**(GET 请求)
| 参数名 | 类型 | 必填 | 默认值 | 说明 |
|--------|------|------|--------|------|
| [param] | String | 否 | - | [说明] |

**Body 参数**(JSON)
```json
{
  "field1": "string",    // 必填,说明
  "field2": 0,           // 可选,默认 0
  "nested": {
    "key": "value"
  }
}

响应格式

成功响应(200)

{
  "code": 0,
  "message": "success",
  "data": {
    "id": "string",
    "created_at": "2026-01-01T00:00:00Z"
  }
}

错误码 | 错误码 | HTTP状态 | 说明 | 处理建议 | |--------|----------|------|----------| | 1001 | 400 | 参数缺失 | 检查必填字段 | | 1002 | 401 | 未授权 | 刷新 Token | | 5000 | 500 | 服务异常 | 重试或联系支持 |

调用示例

cURL

curl -X POST https://api.example.com/api/v1/[path] \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"field1": "value"}'

## Pitfalls

- 必填字段必须明确标注,不能模糊
- 错误码要有处理建议,不能只列状态码
- 示例中的数据要真实可用,不要用 `xxx` 占位

## Verification

- [ ] 所有参数有类型和必填说明
- [ ] 响应格式有完整示例
- [ ] 错误码覆盖主要异常场景
- [ ] cURL 示例可以直接复制运行

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AgiWish](https://github.com/AgiWish)
- **Source:** [AgiWish/hermes-skills-zh](https://github.com/AgiWish/hermes-skills-zh)
- **License:** MIT
- **Homepage:** https://agiwish.github.io/hermes-skills-zh/

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.