vercel-reference-architecture
实现基于最佳实践的 Vercel 参考架构和项目布局。在设计新的 Vercel 集成、审查项目结构或为 Vercel 应用建立架构标准时使用。通过短语“vercel 架构”、“vercel 最佳实践”、“vercel 项目结构”、“如何组织 vercel”、“vercel 布局”触发。
📖 中文导读:实现基于最佳实践的 Vercel 参考架构和项目布局。在设计新的 Vercel 集成、审查项目结构或为 Vercel 应用建立架构标准时使用。通过短语“vercel 架构”、“vercel 最佳实践”、“vercel 项目结构”、“如何组织 vercel”、“vercel 布局”触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: vercel-reference-architecture description: | Implement Vercel reference architecture with best-practice project layout. Use when designing new Vercel integrations, reviewing project structure, or establishing architecture standards for Vercel applications. Trigger with phrases like "vercel architecture", "vercel best practices", "vercel project structure", "how to organize vercel", "vercel layout". allowed-tools: Read, Grep version: 1.0.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io
Vercel Reference Architecture
Prerequisites
- Understanding of layered architecture
- Vercel SDK knowledge
- TypeScript project setup
- Testing framework configured
Instructions
Step 1: Create Directory Structure
Set up the project layout following the reference structure above.
Step 2: Implement Client Wrapper
Create the singleton client with caching and monitoring.
Step 3: Add Error Handling
Implement custom error classes for Vercel operations.
Step 4: Configure Health Checks
Add health check endpoint for Vercel connectivity.
Output
- Structured project layout
- Client wrapper with caching
- Error boundary implemented
- Health checks configured
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.