Vendor api param validation

From KarryViber/Orb · View interactive version

Vendor api param validation is an AI agent skill from the GitHub repository KarryViber/Orb. 第三方 API / SDK 集成开工前,强制先列参数 checklist 并对照官方文档逐项验证(名称 / 类型 / 必填 / 默认 / 上限),通过后再编码——不是「写完再调通」。Use when 新接 vendor API/SDK(Slack / LongPort / freee / LLM API 等)、既有集成追加新 endpoint 或新字段、用户说「调通某接口」「接入 X」「集成 X」。

How to use this skill

Skill file

Vendor API 参数前置验证

When to Use(满足任一)

Workflow

1. 列参数 checklist(编码前)

按 endpoint 列表格:

| 字段 | 位置 | 类型 | 必填 | 默认 | 上限 / 取值 | 来源页 |

|------|------|------|------|------|-------------|--------|

| channel | body | string | Y | — | C/D/G prefix | <doc URL> |

| text | body | string | Y* | — | ≤4000 chars | <doc URL> |

位置 = path / query / header / body / form。必填 标 Y/N/conditional。来源页 必须是 vendor 官方文档 URL,不是 SDK README / blog。

2. 对照 source of truth

3. 发现歧义立刻问

4. checklist 完成才开始编码

跳过 checklist 直接写代码 = 把 debug 时间从「编码前 5 分钟」推到「编码后 30 分钟 + 已 commit + 已被引用」。

为什么

编码后才发现参数差异 → 已经写了引用 / 已经 debug 过 / 已经 commit → 返工成本远高于前置验证。

vendor 文档是唯一 source of truth:

Gotchas

与其他 skill 的关系

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.