instantly-sdk-patterns
Provides standardized coding patterns for Instantly.ai API requests including retry logic and type-safe clients.
Install
mkdir -p .claude/skills/instantly-sdk-patterns && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3373" && unzip -o skill.zip -d .claude/skills/instantly-sdk-patterns && rm skill.zipInstalls to .claude/skills/instantly-sdk-patterns
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Apply production-ready Instantly.ai API client patterns for TypeScriptKey capabilities
- →Implement type-safe Instantly API clients in TypeScript
- →Implement Instantly API clients in Python
- →Classify API errors for retry logic
- →Handle pagination for large datasets
- →Support multi-tenant Instantly integrations
How it works
This skill provides production-ready code patterns for Instantly API v2 integrations, including a type-safe client, error classification, pagination, and multi-tenant support for TypeScript and Python.
Inputs & outputs
When to use instantly-sdk-patterns
- →Creating a type-safe client wrapper for Instantly API
- →Implementing retry logic for API stability
- →Establishing standard patterns for multi-tenant API calls
About this skill
Instantly Official SDK Patterns
Overview
Adopt @instantlyai/sdk without inventing resource methods or hiding HTTP failure semantics. Record assumptions, evidence, approval state, and rollback ownership so another operator can reproduce the result.
Prerequisites
- The target repository, Instantly workspace, environment, and accountable owner
- Current security, privacy, compliance, capacity, and change-control requirements
- An approved API v2 key only when a bounded live verification is necessary
Tool Discipline
Use Read, Glob, and Grep to inspect code, configuration, and evidence. Use WebFetch only for current first-party Instantly documentation and package metadata. Use Write or Edit only when implementation was requested and exact target files are known; never write credentials, lead data, email content, or unrestricted environment output.
Current Contract
- The official package is @instantlyai/sdk and remains beta before stable 1.0.0.
- The SDK requires Node.js 22 or later and throws ResponseError for non-success responses.
- Resource coverage is generated from the OpenAPI schema and may evolve during beta.
Authentication
Use an API v2 key as Authorization: Bearer <key> against https://api.instantly.ai/api/v2. Grant only the endpoint-specific scopes needed, inject the key from an approved server-side secret manager, and never print, persist, commit, or place it in a URL. Treat key creation, rotation, revocation, member changes, workspace delegation, and production access as owner-approved actions.
Instructions
- Inspect runtime and lockfile compatibility before installing the beta package.
- Confirm the current beta version and pin the resolved lockfile.
- Create Instantly with a server-side apiKey and no browser exposure.
- Use generated resource methods and request types that exist in the installed version.
- Handle ResponseError by status while redacting response bodies and authorization.
- Add contract tests and a deliberate upgrade review for every beta change.
Approval Boundaries
Do not create, rotate, reveal, or revoke keys; invite or remove members; delegate across workspaces; connect sending accounts; create or activate campaigns; import or delete leads; change suppression or retention; register, patch, resume, or delete webhooks; alter plans or paid capacity; transmit diagnostics; or perform another production mutation without explicit approval from the accountable owner. Keep diagnosis read-only unless implementation was requested.
Output
Return the workspace-safe scope, files and contracts inspected, exact API v2 routes and required scopes, evidence collected, validation result, sensitive fields redacted, remaining risk, accountable owner, approval state, and rollback or next action.
Error Handling
| Condition | Response |
|---|---|
401 | Stop and verify that the bearer key exists, is current, and was not revoked. |
403 | Stop and compare the operation with its exact required scope; do not broaden to all:all by default. |
429 | Coordinate the workspace-wide budget, honor endpoint overrides, and bound retries. |
| Schema or tenant mismatch | Fail closed, preserve redacted evidence, and do not retry a mutation. |
Examples
Use a compact handoff that makes scope, mutation authority, and evidence reviewable.
Input:
runtime=node22; package=@instantlyai/sdk@beta; resource=campaigns
Expected handoff:
pin=resolved; types=pass; ResponseError=handled
Resources
When not to use it
- →When `instantly-install-auth` setup is not completed
- →When familiarity with async/await and TypeScript generics is lacking
- →When understanding of REST API pagination patterns is lacking
Prerequisites
Limitations
- →Instantly has no official SDK
- →Requires understanding of REST API pagination patterns
- →Error classification prevents retrying 400/403 errors
How it compares
This skill offers structured, production-ready patterns for Instantly API integrations, providing advanced features like type safety and multi-tenancy, unlike basic API client setups.
Compared to similar skills
instantly-sdk-patterns side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| instantly-sdk-patterns (this skill) | 1 | 2mo | Caution | Intermediate |
| exa-upgrade-migration | 1 | 2mo | Review | Intermediate |
| deepgram-sdk-patterns | 1 | 2mo | Review | Intermediate |
| perplexity-known-pitfalls | 0 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
exa-upgrade-migration
jeremylongshore
Analyze, plan, and execute Exa SDK upgrades with breaking change detection. Use when upgrading Exa SDK versions, detecting deprecations, or migrating to new API versions. Trigger with phrases like "upgrade exa", "exa migration", "exa breaking changes", "update exa SDK", "analyze exa version".
deepgram-sdk-patterns
jeremylongshore
Apply production-ready Deepgram SDK patterns for TypeScript and Python. Use when implementing Deepgram integrations, refactoring SDK usage, or establishing team coding standards for Deepgram. Trigger with phrases like "deepgram SDK patterns", "deepgram best practices", "deepgram code patterns", "idiomatic deepgram", "deepgram typescript".
perplexity-known-pitfalls
jeremylongshore
Identify and avoid Perplexity anti-patterns and common integration mistakes. Use when reviewing Perplexity code for issues, onboarding new developers, or auditing existing Perplexity integrations for best practices violations. Trigger with phrases like "perplexity mistakes", "perplexity anti-patterns", "perplexity pitfalls", "perplexity what not to do", "perplexity code review".
speak-sdk-patterns
jeremylongshore
Apply production-ready Speak SDK patterns for TypeScript and Python. Use when implementing Speak integrations, refactoring SDK usage, or establishing team coding standards for language learning features. Trigger with phrases like "speak SDK patterns", "speak best practices", "speak code patterns", "idiomatic speak".
mcp-builder
anthropics
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
stripe-integration
wshobson
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.