Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →API design patterns and conventions for this project. Covers RESTful URL naming, response format standards, error handling, and authentication requirements. Use when writing or reviewing API endpoints, designing new APIs, or making decisions about request/response formats.
.claude/skills/huangjia2019-api-conventions/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 4% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -21% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 26% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -52% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -56% | 0% |
These are the API design standards for our project. Apply these conventions whenever working with API endpoints.
/users, /orders, /products/order-items, /user-profiles/users/{id}/orders/orders?status=active&limit=20All API responses must follow this structure:
json{ "data": {}, "error": null, "meta": { "page": 1, "limit": 20, "total": 100 } }
data: 成功时返回的业务数据error: 错误时返回错误对象 { code, message, details },成功时为 nullmeta: 分页和元信息,列表接口必须返回@public annotationAuthorization: Bearer <jwt-token>/api/v1/usersOther measured skills in the registry, with their headline benchmark lift.