Communitygithub.com

后端 API

设计和实现符合正确 HTTP 方法、状态码和一致命名约定的 RESTful API 端点。此技能适用于创建或修改 API 路由、端点或服务器端请求处理器。

后端 API 是什么?

此 AI 代理技能旨在指导开发者(尤其在使用 Claude Code 等 AI 编码工具时)遵循后端 API 开发的特定编码规范。它确保当代理创建或编辑 API 路由文件(如 `src/pages/api/*.ts`)、实现使用 GET、POST、PUT、PATCH、DELETE 方法的 RESTful 端点,或设计基于资源的 URL 结构和路由层级时,能够遵循最佳实践。该技能还涵盖查询参数处理(用于过滤、排序、分页)、API 版本控制策略(URL 路径或基于头部)的设置、速率限制配置、CORS 策略和身份验证中间件的集成。其核心用途是标准化 API 响应格式、HTTP 状态码的使用,并确保整个代码库的一致性。它支持 AI 编码工具(如 Claude Code),并通过连接到一个提供更详细技术指南的外部 Markdown 文件(`backend API`)来提供分步说明,帮助代理生成稳健、安全且符合标准的后端端点。

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

在你喜欢的 AI 中提问

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

文档

后端 API 是做什么的?

此 Skill 为 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

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".

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD agents while maintaining compliance

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

Edit existing BMAD modules while maintaining coherence

majiayu000/claude-skill-registry

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

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

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

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

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

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

majiayu000/claude-skill-registry

BlockRun works with Claude Code and Google Antigravity.

majiayu000/claude-skill-registry

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

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

majiayu000/claude-skill-registry

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

CRITICAL: Use for MolyKit AI chat toolkit. Triggers on: BotClient, OpenAI, SSE streaming, AI chat, molykit, PlatformSend, spawn(), ThreadToken, cross-platform async, Chat widget, Messages, PromptInput, Avatar, LLM

majiayu000/claude-skill-registry

AI and machine learning workflow covering LLM application development, RAG implementation, agent architecture, ML pipelines, and AI-powered features.

majiayu000/claude-skill-registry

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

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

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

相关技能