Communitygithub.com

YepAPI/skills

Vercel/Railway/Fly.io 部署 — 环境变量、健康检查、CI/CD。

skills 是什么?

该技能专注于简化在 Vercel、Railway 和 Fly.io 等常见云平台上的应用部署流程。它规定了环境变量管理的严格规则,要求开发环境使用 `.env.local` 文件,生产环境使用平台环境变量,并严禁提交 `.env` 文件。技能强制要求实现 `GET /api/health` 健康检查端点,确保服务持续可用。它支持每个 PR 获得预览部署 URL,并提供一键回滚策略以快速恢复旧版本。CI/CD 流水线要求所有测试必须通过才能部署,构建命令为 `npm run build` 且需无错误完成。此外,它还涵盖自定义域名(CNAME)设置、SSL 自动配置,以及生产环境的结构化 JSON 日志与开发环境的人类可读日志输出。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/deployment

在你喜欢的 AI 中提问

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

文档

部署

规则

  • 环境变量:.env.local 用于开发环境,平台环境变量用于生产环境——切勿提交 .env
  • 健康检查端点:GET /api/health 返回 { status: "ok" }
  • 预览部署:每个 PR 都会获得一个预览 URL(Vercel/Netlify/Railway)
  • 回滚策略:保留上一版本的部署,一键回滚
  • CI/CD:测试必须通过后才能部署——切勿跳过
  • 域名设置:自定义域名的 CNAME,SSL 自动配置
  • 构建命令:npm run build —— 应无错误或警告完成
  • 输出日志:生产环境使用结构化 JSON 日志,开发环境使用人类可读日志

Individual skills in this repo

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

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能