Implement Instantly reference architecture with best-practice project layout. Use when designing new Instantly integrations, reviewing project structure, or establishing architecture standards for Instantly applications. Trigger with phrases like "instantly architecture", "instantly best practices", "instantly project structure", "how to organize instantly", "instantly layout".
View on GitHubjeremylongshore/claude-code-plugins-plus-skills
instantly-pack
plugins/saas-packs/instantly-pack/skills/instantly-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/instantly-pack/skills/instantly-reference-architecture/SKILL.md -a claude-code --skill instantly-reference-architectureInstallation paths:
.claude/skills/instantly-reference-architecture/# Instantly Reference Architecture
## Overview
Production-ready architecture patterns for Instantly integrations.
## Prerequisites
- Understanding of layered architecture
- Instantly SDK knowledge
- TypeScript project setup
- Testing framework configured
## Project Structure
```
my-instantly-project/
├── src/
│ ├── instantly/
│ │ ├── 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/
│ │ └── instantly/
│ │ ├── index.ts # Service facade
│ │ ├── sync.ts # Data synchronization
│ │ └── cache.ts # Caching layer
│ ├── api/
│ │ └── instantly/
│ │ └── webhook.ts # Webhook endpoint
│ └── jobs/
│ └── instantly/
│ └── sync.ts # Background sync job
├── tests/
│ ├── unit/
│ │ └── instantly/
│ └── integration/
│ └── instantly/
├── config/
│ ├── instantly.development.json
│ ├── instantly.staging.json
│ └── instantly.production.json
└── docs/
└── instantly/
├── SETUP.md
└── RUNBOOK.md
```
## Layer Architecture
```
┌─────────────────────────────────────────┐
│ API Layer │
│ (Controllers, Routes, Webhooks) │
├─────────────────────────────────────────┤
│ Service Layer │
│ (Business Logic, Orchestration) │
├─────────────────────────────────────────┤
│ Instantly Layer │
│ (Client, Types, Error Handling) │
├─────────────────────────────────────────┤
│ Infrastructure Layer │
│ (Cache, Queue, Monitoring) │
└─────────────────────────────────────────┘
```
## Key Components
### Step 1: Client Wrapper
```typescript
/