Communitygithub.com

后端API设计

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

后端API设计 是什么?

该技能为Claude Code等AI代理提供明确指导,帮助其在开发后端API时遵循编码规范。它涵盖了RESTful API设计的各个方面,包括资源化URL结构、HTTP方法(GET、POST、PUT、PATCH、DELETE)、状态码、查询参数处理(过滤、排序、分页)、API响应格式、版本控制策略、速率限制、CORS安全策略及认证中间件。该技能适用于处理 `src/pages/api/` 下的文件或任何实现API端点的文件,支持在Node.js/TypeScript环境中工作。其核心机制是通过引用一个外部的 `backend/api.md` 标准文档,确保AI代理生成的代码与项目既定的后端API规范保持一致,从而提升代码质量和团队协作效率。

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

在你喜欢的 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".

相关技能