Communitygithub.com

后端API技能

设计和实现遵循HTTP方法、状态码和统一命名规范的RESTful API端点。在创建或修改API路由、端点或服务器端请求处理器时使用此技能。

后端API技能 是什么?

该技能旨在指导AI代理(如Claude Code)在开发后端API时遵循规范的编码标准。它涵盖了从API路由文件创建(如 `src/pages/api/*.ts`)到完整的RESTful端点实现的全过程,包括使用正确的HTTP方法(GET、POST、PUT、PATCH、DELETE)和状态码。技能强调基于资源的URL结构设计、查询参数处理(过滤、排序、分页)以及一致的API响应格式。此外,它还涉及高级主题,如API版本控制策略(URL路径或标头)、速率限制与节流、CORS配置和安全标头设置。通过参考该技能指向的详细文档(`backend API`),开发者和AI代理可以高效地构建出安全、可维护且符合行业标准的后端API。该技能适用于多种开发平台和框架,是确保API代码质量和一致性的重要工具。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/majiayu000/claude-skill-registry/tree/HEAD/skills/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

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.

相关技能