Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ntygod/ZhiWei --skill api-debuggergit clone --depth 1 https://github.com/ntygod/ZhiWeiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ntygod/zhiwei/api-debugger)<a href="https://agentmods.dev/skills/ntygod/zhiwei/api-debugger"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/api-debugger/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ntygod/zhiwei/api-debugger"><img src="https://agentmods.dev/badge/skills/ntygod/zhiwei/api-debugger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.00641 |
| Opus 5.5 | $0.00015 | $0.00256 |
| Sonnet 5.5 | $0.00007 | $0.00128 |
| Haiku 4.5 | $0.00004 | $0.00064 |
Grade A, and why
api-debugger scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- curl What it actually says
API 调试指南
curl / Python requests 测试 REST / GraphQL 接口,验证响应格式、对比文档与实际行为。
适用场景
- REST API 请求测试(GET / POST / PUT / DELETE / PATCH)
- GraphQL 查询和变更测试
- 响应格式与状态码分析
- 接口文档对比实际返回(找出文档过期 / 行为异常)
- Mock 数据生成(造测试请求体)
- 批量接口测试(一组端点跑一遍)
不适用场景
- 浏览器端交互测试 → browser-automation
- 代码级单元测试 → code-assistant
- 简单单次 curl → 直接
shell_exec
工作流(按场景分流)
| 场景 | 路径 |
|---|---|
| 单端点测一次 | curl 模板(GET/POST/认证/GraphQL) |
| 验响应格式 | curl + jq / python -m json.tool 看结构 |
| 对比文档 vs 实际 | 调一次 → 跟文档逐字段对,输出差异表 |
| 批量测一组 | 先验单个 → 再 shell 循环或 python requests |
| Mock 数据 | 按 schema 造请求体(用户给字段约束就照填,没给就给典型值) |
各路径要点:
- 同时看状态码 + 响应体:单看 200 不够,body 可能是错误结构("success":false)
- 敏感信息走变量:Token / API Key 用
$TOKEN/${API_KEY},不写明文;写入文件时不带 token - 批量先试单个:批量执行前先跑一个验证格式,再 shell 循环或 python 批跑
- 结果落盘:批量测试结果
file_write写api-test-report.md,含端点 / 状态 / 响应摘要 / 差异 -k仅限测试环境:跳 SSL 证书校验只在 dev / staging 用,给用户结果时注明
详细参考
- curl 模板 / 响应分析 / 批量测试 / Mock 生成 / 常见错误:
{skill_dir}/references/curl-recipes.md
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 62 lines · 37 tokens per session scan A 8560063a4941
api-debugger is a skill published in the GitHub repository ntygod/ZhiWei (137 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 641 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
api-debugger compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-debuggerntygod/ZhiWei | Skill | 137 | 3mo ago | MIT | A | 37 | Claude Code, Codex |
| github-issue-solveholon-run/holon | Skill | 209 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| principle-boundary-disciplineamajorai/ryu | Skill | 47 | 4d ago | none | A | 46 | Claude Code |
| principle-make-operations-idempotentamajorai/ryu | Skill | 47 | 4d ago | none | A | 46 | Claude Code |
| backend-performancecontactandrewchl-wq/turtle-mcp | Skill | 2 | 4mo ago | MIT | A | 51 | Claude Code |
| inbox-triagendunl075/alfred-pennyworth | Skill | 0 | 3mo ago | Apache-2.0 | A | 37 | Claude Code, Codex |
| morning-briefndunl075/alfred-pennyworth | Skill | 0 | 3mo ago | Apache-2.0 | A | 33 | Claude Code, Codex |