Implement Retell AI reference architecture with best-practice project layout. Use when designing new Retell AI integrations, reviewing project structure, or establishing architecture standards for Retell AI applications. Trigger with phrases like "retellai architecture", "retellai best practices", "retellai project structure", "how to organize retellai", "retellai layout".
View on GitHubjeremylongshore/claude-code-plugins-plus-skills
retellai-pack
plugins/saas-packs/retellai-pack/skills/retellai-reference-architecture/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/retellai-pack/skills/retellai-reference-architecture/SKILL.md -a claude-code --skill retellai-reference-architectureInstallation paths:
.claude/skills/retellai-reference-architecture/# Retell AI Reference Architecture
## Overview
Production-ready architecture patterns for Retell AI integrations.
## Prerequisites
- Understanding of layered architecture
- Retell AI SDK knowledge
- TypeScript project setup
- Testing framework configured
## Project Structure
```
my-retellai-project/
├── src/
│ ├── retellai/
│ │ ├── client.ts # Singleton client wrapper
│ │ ├── config.ts # Environment configuration
│ │ ├── types.ts # TypeScript types
│ │ ├── errors.ts # Custom error classes
│ │ └── handlers/
│ │ ├── webhooks.ts # Webhook handlers
│ │ └── events.ts # Event processing
│ ├── services/
│ │ └── retellai/
│ │ ├── index.ts # Service facade
│ │ ├── sync.ts # Data synchronization
│ │ └── cache.ts # Caching layer
│ ├── api/
│ │ └── retellai/
│ │ └── webhook.ts # Webhook endpoint
│ └── jobs/
│ └── retellai/
│ └── sync.ts # Background sync job
├── tests/
│ ├── unit/
│ │ └── retellai/
│ └── integration/
│ └── retellai/
├── config/
│ ├── retellai.development.json
│ ├── retellai.staging.json
│ └── retellai.production.json
└── docs/
└── retellai/
├── SETUP.md
└── RUNBOOK.md
```
## Layer Architecture
```
┌─────────────────────────────────────────┐
│ API Layer │
│ (Controllers, Routes, Webhooks) │
├─────────────────────────────────────────┤
│ Service Layer │
│ (Business Logic, Orchestration) │
├─────────────────────────────────────────┤
│ Retell AI Layer │
│ (Client, Types, Error Handling) │
├─────────────────────────────────────────┤
│ Infrastructure Layer │
│ (Cache, Queue, Monitoring) │
└─────────────────────────────────────────┘
```
## Key Components
### Step 1: Client Wrapper
```typescript
// src/retel