跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 create-a-backend

Create A Backend

后端架构指导. 规划、构建或迁移 API 或后端时使用;在函数、 服务、 容器、 工作流程、 队列和 Marketplace 数据库之间选择; 或选择支持的后端框架或运行时间.

539 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

后端架构指导

何时用

规划、构建或迁移 API 或后端; 在函数、 服务、 容器、 工作流程、 队列、 和 Complace 数据库中选择; 或 选择支持的后端框架或运行时间

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Create a Backend、Product map、Databases and data stores、Backend frameworks、Work sequence。

文件分析

文件分析:这是一份仅含 SKILL.md 的指令型技能,代理激活后整份正文进入上下文。

官方 description(原文)

Backend architecture guidance. Use when planning, building, or migrating an API or backend; choosing between Functions, Services, containers, Workflow, Queues, and Marketplace databases; or selecting a supported backend framework or runtime.

Create a BackendProduct mapDatabases and data storesBackend frameworksWork sequence

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
create-a-backend
description
Backend architecture guidance. Use when planning, building, or migrating an API or backend; choosing between Functions, Services, containers, Workflow, Queues, and Marketplace databases; or selecting a supported backend framework or runtime.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「create-a-backend」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-797b27c19b0ebd0c-%E5%88%9B%E5%BB%BA%E5%90%8E%E7%AB%AF.html
请存为 .cursor/skills/create-a-backend/SKILL.md 或 .claude/skills/create-a-backend/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/vercel/vercel-plugin' --list

npx skills add 'https://github.com/vercel/vercel-plugin' --skill 'create-a-backend'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版

name: create-a-backend description: Backend architecture guidance. Use when planning, building, or migrating an API or backend; choosing between Functions, Services, containers, Workflow, Queues, and Marketplace databases; or selecting a supported backend framework or runtime. summary: Match backend workloads to the right architecture metadata: priority: 7 docs: - "https://vercel.com/docs/frameworks/backend" - "https://vercel.com/docs/functions" - "https://vercel.com/docs/services" - "https://vercel.com/docs/queues" - "https://vercel.com/docs/workflow" - "https://vercel.com/docs/storage" sitemap: "https://vercel.com/sitemap.xml" pathPatterns: - 'Dockerfile.vercel' - 'Containerfile.vercel' promptSignals: phrases: - "backend on vercel" - "vercel backend" - "build a backend" - "create a backend" - "deploy my backend" - "backend architecture" allOf: - [backend, vercel] - [backend, docker] - [backend, node] - [backend, python] - [backend, queue] anyOf: - "api" - "database" - "service" - "workflow" noneOf: [] minScore: 6 retrieval: aliases: - Vercel backend - backend architecture - backend framework intents: - build a backend - choose backend products - deploy an existing API or server - select a Node.js or Python backend framework entities: - Vercel Functions - Vercel Services - Vercel Queues - Vercel Workflow - Vercel Marketplace - container images

Create a Backend

Help the user create a backend by choosing an architecture before reaching for implementation details. Start from the workload, not the programming language. Vercel runs complex backend applications, not just frontends.

Product map

| Need | Vercel product | | --- | --- | | HTTP APIs, webhooks, streaming, or framework server code | Vercel Functions with Fluid compute | | Bidirectional realtime connections (WebSockets) | Vercel Functions with Fluid compute; no separate realtime service required | | A frontend and one or more backends (API endpoints) that deploy together | Vercel Services | | An existing Dockerfile, custom runtime, or system dependencies | Container images on Vercel Functions, optionally composed with Services | | Durable multi-step work with retries, sleeps, or external events | Vercel Workflow | | Background jobs, buffering, fan-out, or direct message routing | Vercel Queues | | Scheduled HTTP work | Vercel Cron Jobs; use Workflow when the job itself must be durable | | Postgres, Redis, NoSQL, vector, or other application data | Storage integrations from the Vercel Marketplace | | Files and user uploads | Vercel Blob | | Global, read-heavy configuration | Global Config |

Use Functions for the normal request/response backend. Use Services when independently built components should share one deployment, routing layer, preview URL, and rollback. Use separate Vercel projects when components need independent release cycles.

Prefer a native Functions runtime for supported frameworks. Use container images when the application already has a Dockerfile or requires a custom runtime or system dependencies. They run as autoscaling, stateless Functions rather than always-on container hosts.

Choose Queues for background jobs, buffering, fan-out, and message routing. Choose Workflow for durable multi-step business logic.

Databases and data stores

Provision data stores through the Marketplace so credentials are injected into the project and environments stay connected. Check the current catalog before choosing a provider.

  • Postgres: Neon, Supabase, AWS/Aurora, Nile, Prisma
  • MySQL: AWS/Aurora
  • Redis and key-value: Upstash, Redis
  • Document and NoSQL: MongoDB Atlas, AWS
  • SQLite: Turso
  • Realtime application backend: Convex
  • Analytics: MotherDuck

Keep the database close to the Functions region and use a serverless-compatible connection or pool.

Backend frameworks

Vercel provides first-class backend examples and integrations for these frameworks:

  • Node.js and TypeScript: Elysia, Express, Fastify, H3, Hono, Koa, NestJS, Nitro, and xmcp. Next.js Route Handlers are the natural choice when the backend belongs to a Next.js application.
  • Python: FastAPI, Flask, and Django. Other WSGI or ASGI applications can run when they export a compatible app, with additional configuration as needed.
  • Go: supported as a Vercel Functions runtime.

Frontend and backend combinations, for example a Next.js/Vite/SvelteKit frontend with a FastAPI/Flask/Express/Go backend, can be deployed together in one project using Services.

Prefer the user's existing framework. For a new project, choose based on ecosystem and application needs.

Work sequence

  1. Identify synchronous requests, asynchronous work, persistent data, and independently deployed components.
  2. Select the products from the map, then select the framework.
  3. Load the focused skill for implementation: vercel-functions, vercel-services, workflow, vercel-storage, or marketplace.
  4. Confirm function limits, regions, environment variables, observability, and current product availability in the official docs before deployment.

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…