Install
$ agentstack add skill-agiwish-hermes-skills-zh-api-doc-zh ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →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
- 解析接口信息
- HTTP 方法 + 路径
- 请求参数(Query / Body / Header)
- 响应结构
- 权限要求
- 输出标准接口文档
## [接口名称]
**接口描述**:[一句话说明这个接口做什么]
### 基本信息
| 项目 | 内容 |
|------|------|
| 请求方法 | 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.
Write a review
Versions
- v0.1.0 Imported from the upstream source.