salesforce-sdk-patterns
Installation
SKILL.md
Salesforce SDK Patterns
Overview
Production-ready patterns for jsforce (Node.js) and simple-salesforce (Python) — singleton connections, typed queries, error handling, and token refresh.
Prerequisites
- Completed
salesforce-install-authsetup - Familiarity with async/await and TypeScript generics
- Understanding of Salesforce sObject model
Instructions
Step 1: Singleton Connection with Auto-Refresh
// src/salesforce/connection.ts
import jsforce from 'jsforce';
let conn: jsforce.Connection | null = null;