返回 Skill 列表
extension
分类: 开发与工程无需 API Key

Backend API

设计并实现具有适当HTTP方法、状态码和一致命名约定的RESTful API端点。在创建或修改API路由、端点或服务器端请求处理程序时使用此技能。当处理src/pages/api/目录下的文件、包含API路由定义的文件、实现REST端点的文件、处理HTTP请求和响应的文件、用于API请求的服务器中间件、API认证和授权逻辑以及定义API版本策略的文件时使用。在为资源设计URL结构、实现过滤/排序/分页的查询参数处理、设置API端点的速率限制、或者配置CORS和API安全头时也应运用此技能。

person作者: jakexiaohubgithub

Backend API

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend API.

When to use this skill

  • When creating or editing API route files (e.g., src/pages/api/*.ts, src/pages/api/*.js)
  • When implementing RESTful endpoints with GET, POST, PUT, PATCH, DELETE methods
  • When designing resource-based URL structures and route hierarchies
  • When handling query parameters for filtering, sorting, pagination, or search functionality
  • When defining API response formats and HTTP status codes
  • When implementing API versioning strategies (URL path or header-based)
  • When setting up rate limiting, throttling, or API quota management
  • When configuring API security headers, CORS policies, or authentication middleware
  • When writing server-side request handlers or middleware functions
  • When working on API documentation or OpenAPI/Swagger specifications

Instructions

For details, refer to the information provided in this file: backend API