huangjia2019/api-conventions
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.
npx skills add https://github.com/huangjia2019/claude-code-engineering --skill api-conventions
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:
{
"data": {},
"error": null,
"meta": {
"page": 1,
"limit": 20,
"total": 100
}
}
data: 成功时返回的业务数据error: 错误时返回错误对象 { code, message, details },成功时为 nullmeta: 分页和元信息,列表接口必须返回@public annotationAuthorization: Bearer <jwt-token>/api/v1/usersTake huangjia2019/api-conventions from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.