Communitygithub.com

后端 API 开发技能

使用适当的 HTTP 方法、状态码和一致的命名约定来设计和实现 RESTful API 端点。在创建或修改 API 路由、端点或服务器端请求处理程序时使用此技能。

后端 API 开发技能 是什么?

此技能为 AI 代理(如 Claude Code、Cursor、Codex 等)提供明确的指导,以遵循后端 API 开发的最佳实践和编码标准。它对于设计 RESTful API 接口、定义资源路径和路由层级、处理查询参数(用于过滤、排序、分页)非常有用。技能支持多种平台,包括在 `src/pages/api/` 目录下定义 API 路由文件,以及实现 GET、POST、PUT、PATCH、DELETE 等 HTTP 方法。此外,它还涵盖 API 版本控制策略(基于 URL 路径或请求头)、速率限制和配额管理、CORS 安全策略配置、身份验证中间件以及 OpenAPI/Swagger 文档规范,确保开发人员能够构建一致、安全且可维护的后端 API。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry-data/tree/HEAD/api/backend-api-spaceplushy-portfolio-3

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

后端 API

此技能为 Claude Code 提供具体指导,帮助其遵守与后端 API 处理方式相关的编码标准。

何时使用此技能

  • 创建或编辑 API 路由文件时(例如 src/pages/api/*.ts、src/pages/api/*.js)
  • 使用 GET、POST、PUT、PATCH、DELETE 方法实现 RESTful 端点时
  • 设计基于资源的 URL 结构和路由层级时
  • 处理用于过滤、排序、分页或搜索功能的查询参数时
  • 定义 API 响应格式和 HTTP 状态码时
  • 实施 API 版本控制策略(URL 路径或请求头方式)时
  • 设置速率限制、节流或 API 配额管理时
  • 配置 API 安全头、CORS 策略或身份验证中间件时
  • 编写服务器端请求处理程序或中间件函数时
  • 处理 API 文档或 OpenAPI/Swagger 规范时

指示

有关详细信息,请参阅此文件中提供的信息: 后端 API

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

majiayu000/claude-skill-registry-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry-data

Analyzes current state and user query to answer BMad questions or recommend the next workflow or agent. Use when user says what should I do next, what do I do now, or asks a question about BMad

majiayu000/claude-skill-registry-data

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry-data

Build AI agents with Google ADK Python (Agent Development Kit). Use for multi-agent systems, workflow agents (sequential/parallel/loop), Vertex AI deployment, tool integration, human-in-the-loop.

majiayu000/claude-skill-registry-data

Portfolio allocation and rebalancing optimizer. Manages asset allocation across stocks/cash/bonds, performs periodic rebalancing, and ensures diversification according to market regime and risk tolerance.

majiayu000/claude-skill-registry-data

Create a hilarious and ultra-realistic video of an anthropomorphic animal acting like a human vlogger in a real-world setting.

majiayu000/claude-skill-registry-data

Speech-to-text transcription and translation via OpenAI Audio API -- models, response formats, timestamps, prompting, streaming, chunking, and diarization

majiayu000/claude-skill-registry-data

This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.

majiayu000/claude-skill-registry-data

小省导购员数字人带货版即梦视频提示词生成系统,基于四大智能体协同(提示词生成师、质量管控师、知识库运维师、跨环节适配师),按照"主体+运动+场景+(镜头语言+光影+氛围)"公式输出中英文双版提示词,适配5s短视频。确保人物一致性、视觉连贯性、情绪连贯性,支持知识库智能复用和跨工具适配(Suno音乐、AI绘画),为数字人带货视频提供高质量提示词生成服务。

majiayu000/claude-skill-registry-data

Upload and manage files using Google Gemini File API via scripts/. Use for uploading images, audio, video, PDFs, and other files for use with Gemini models. Supports file upload, status checking, and file management. Triggers on "upload file", "file API", "upload image", "upload PDF", "upload video", "file management".

majiayu000/claude-skill-registry-data

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry-data

Analyze images/audio/video with Gemini API (better vision than Claude). Generate images (Imagen 4), videos (Veo 3). Use for vision analysis, transcription, OCR, design extraction, multimodal AI.

majiayu000/claude-skill-registry-data

Skill for discovering and researching autonomous AI agents, tools, and ecosystems using the AgentFolio directory.

majiayu000/claude-skill-registry-data

Conduct domain and industry research. Use when the user says "lets create a research report on [domain or industry]

majiayu000/claude-skill-registry-data

Conduct market research on competition and customers. Use when the user says "create a market research report about [business idea]".

majiayu000/claude-skill-registry-data

Conduct technical research on technologies and architecture. Use when the user says "create a technical research report on [topic]".

majiayu000/claude-skill-registry-data

Builds, edit or validate Agent Skill through conversational discovery. Use when the user requests to "Create an Agent", "Optimize an Agent" or "Edit an Agent".

相关技能