backend-api

coreyja 的头像作者 coreyja

遵循REST原则、一致的命名约定和适当的HTTP方法设计并实现RESTful API端点。在创建或修改后端代码中的API路由、控制器或处理程序时使用此技能。在处理HTTP请求(GET、POST、PUT、PATCH、DELETE)的端点逻辑实现时使用。在处理API版本控制、查询参数或响应格式时使用。在为基于资源的端点定义URL结构时使用。在设置速率限制或HTTP状态码处理时使用。在使用路由定义、控制器文件、API处理程序模块或Web框架配置文件等工作时使用。

📖 中文导读:遵循REST原则、一致的命名约定和适当的HTTP方法设计并实现RESTful API端点。在创建或修改后端代码中的API路由、控制器或处理程序时使用此技能。在处理HTTP请求(GET、POST、PUT、PATCH、DELETE)的端点逻辑实现时使用。在处理API版本控制、查询参数或响应格式时使用。在为基于资源的端点定义URL结构时使用。在设置速率限制或HTTP状态码处理时使用。在使用路由定义、控制器文件、API处理程序模块或Web框架配置文件等工作时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Backend API description: Design and implement RESTful API endpoints following REST principles, consistent naming conventions, and proper HTTP methods. Use this skill when creating or modifying API routes, controllers, or handlers in backend code. When implementing endpoint logic that handles HTTP requests (GET, POST, PUT, PATCH, DELETE). When working with API versioning, query parameters, or response formatting. When defining URL structures for resource-based endpoints. When setting up rate limiting or HTTP status code handling. When working with files like route definitions, controller files, API handler modules, or web framework configuration files.

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 modifying API routes, endpoints, or URL patterns
  • When implementing controllers or handlers that process HTTP requests
  • When working with RESTful resource definitions (e.g., /users, /products)
  • When setting up API versioning strategies
  • When configuring query parameters for filtering, sorting, or pagination
  • When defining HTTP method handlers (GET, POST, PUT, PATCH, DELETE)
  • When implementing rate limiting or response headers
  • When working with web framework route files (e.g., routes.js, api.rs, controllers/)
  • When designing nested resource endpoints
  • When setting up HTTP status code responses

Instructions

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