返回顶部
h

http-api

Shape HTTP/JSON APIs—resources and verbs, error payloads, pagination, idempotency, and docs. Use when designing new endpoints, reviewing PRs, or aligning teams on REST-ish conventions (versioning lifecycle is a separate concern).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
174
下载量
0
收藏
概述
安装方式
版本历史

http-api

# HTTP API Design and review **HTTP-facing APIs** (usually JSON): predictable URLs, honest status codes, and errors clients can build on—**without** duplicating everything your **api-compat** skill covers for long-lived versioning policy. ## Scope - **Modeling**: nouns/resources, collections, actions when RPC-style is clearer than fake REST. - **HTTP semantics**: which methods, **idempotency**, caching headers when relevant. - **Errors**: stable machine-readable codes, correlation ids, avoid leaking internals. - **DX**: examples, OpenAPI snippets, consistent pagination/filter patterns. ## Out of scope (hand off) - **OAuth/OIDC** protocol details → identity-focused skills. - **GraphQL-only** schema design → graphql-schema skill. - **Multi-year deprecation policy** and client migration programs → pair with **api-compat**. ## Review order 1. **Read paths** — Can a client navigate the domain without guessing? 2. **Write safety** — Retries safe? Duplicate submits handled? 3. **Errors** — One shape everywhere; 4xx vs 5xx honest. 4. **Evolution** — Document what may change vs what is stable (compat details in api-compat). ## Smells - Status 200 with `{error: ...}`; **every** POST returns 200; unbounded list endpoints; secrets in error bodies. ## Done when - A new engineer can call the API from docs alone; failure cases are **testable** and **consistent**.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 http-api-1775975775 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 http-api-1775975775 技能

通过命令行安装

skillhub install http-api-1775975775

下载 Zip 包

⬇ 下载 http-api v1.0.0

文件大小: 1.51 KB | 发布时间: 2026-4-13 10:35

v1.0.0 最新 2026-4-13 10:35
Initial release of the http-api skill.

- Guides on designing and reviewing RESTful HTTP/JSON APIs, focusing on clarity and consistency.
- Covers resource modeling, HTTP methods, status codes, error shape, idempotency, and common DX patterns.
- Outlines clear review steps and API "smells" to avoid.
- Specifies boundaries with related skills (api-compat, graphql-schema, authentication).
- Emphasizes self-serve documentation and robust error handling.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部