Agent skill · Audited from source
Customerio Sdk Patterns
skill · jeremylongshore/claude-code-plugins-plus-skillsMIT licenceAudited 8 Oct 2026 · source 4f83675ca38a
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 4f83675ca38a and found no filesystem, network or shell access and no hard-coded secrets. What it does: Apply production-ready Customer.io SDK patterns.
Cite
Cite this page
ModelsAtlas. “Customerio Sdk Patterns (jeremylongshore/claude-code-plugins-plus-skills)”. Retrieved 8 Oct 2026. https://modelsatlas.com/skills/jeremylongshore/customerio-sdk-patterns
Trust audit
Audit 0.4.1 · source read 8 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | PASS | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha 4f83675ca38a · 8 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherjeremylongshore GitHub userOwner of the repository this skill is read from
- Source folderjeremylongshore/claude-code-plugins-plus-skills/plugins/saas-packs/customerio-pack/skills/customerio-sdk-patternsThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict4f83675ca38aA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Apply production-ready Customer.io SDK patterns.
--- name: customerio-sdk-patterns description: 'Apply production-ready Customer.io SDK patterns. Use when implementing typed clients, retry logic, event batching, or singleton management for customerio-node. Trigger: "customer.io best practices", "customer.io patterns", "production customer.io", "customer.io architecture", "customer.io singleton". ' allowed-tools: Read, Write, Edit, Bash(npm:*), Bash(npx:*), Glob, Grep version: 1.14.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - customer-io - sdk - patterns - typescript compatibility: Designed for Claude Code --- # Customer.io SDK Patterns ## Output - A reusable SDK integration pattern with scoped configuration, schema validation, idempotency, observability, and error classification. - A test-backed client boundary that keeps credentials and recipient data out of logs and source control. ## Examples Instantiate the client from an environment-specific secret reference, validate a synthetic event against the contract, attach a stable idempotency key, and assert the SDK call in a mocked unit test. For a development integration test, use a synthetic profile and record only result status/correlation ID; never log the client token or full event payload. ## Overview Production-ready patterns for `customerio-node`: type-safe wrappers with enum-constrained events, retry with exponential backoff, event batching for high-volume scenarios, and singleton lifecycle management. ## Prerequisites - `customerio-node` installed - TypeScript project (recommended for type-safe patterns) - Understanding of your event taxonomy ## Instructions ### Pattern 1: Type-Safe Client Wrapper ```typescript // lib/customerio-typed.ts import { TrackClient, RegionUS, RegionEU } from "customerio-node"; // Define your event taxonomy as a union type type CioEvent = | { name: "signed_up"; data: { method: string; source?: string } } | { name: "plan_changed"; data: { from: string; to: string; mrr: number } } | { name: "feature_used"; data: { feature: string; duration_ms?: number } } | { name: "checkout_completed"; data: { order_id: string; total: number; items: number } } | { name: "subscription_cancelled"; data: { reason: string; feedback?: string } }; // Define user attributes with strict types interface CioUserAttributes { email: string; first_name?: string; last_name?: string; plan?: "free" | "starter" | "pro" | "enterprise"; company?: string; created_at?: number; // Unix seconds last_seen_at?: number; // Unix seconds [key: string]: unknown; // Allow additional attributes } export class TypedCioClient { private client: TrackClient; constructor(siteId: string, apiKey: string, region: "us" | "eu" = "us") { this.client = new TrackClient(siteId, apiKey, { region: region === "eu" ? RegionEU : RegionUS, }); } async identify(userId: string, attributes: CioUserAttributes): Promise<void> { await this.client.identify(userId, { ...attributes, last_seen_at: Math.floor(Date.now() / 1000), }); } async track(userId: string, event: CioEvent): Promise<void> { await this.client.track(userId, { name: event.name, data: { ...event.data, tracked_at: Math.floor(Date.now() / 1000) }, }); } async suppress(userId: string): Promise<void> { await this.client.suppress(userId); } async destroy(userId: string): Promise<void> { await this.client.destroy(userId); } } ``` ### Pattern 2: Retry with Exponential Backoff ```typescript // lib/customerio-retry.ts interface RetryOptions { maxRetries: number; baseDelayMs: number; maxDelayMs: number; jitterFactor: number; // 0 to 1 } const DEFAULT_RETRY: RetryOptions = { maxRetries: 3, baseDelayMs: 1000, maxDelayMs: 30000, jitterFactor: 0.3, }; async function withRetry<T>( fn: () => Promise<T>, opts: RetryOptions = DEFAULT_RETRY ): Promise<T> { let lastError: Error | undefined; for (let attempt = 0; attempt <= opts.maxRetries; attempt++) { try { return await fn(); } catch (err: any) { lastError = err; const statusCode = err.statusCode ?? err.status; // Don't retry client errors (except 429 rate limit) if (statusCode >= 400 && statusCode < 500 && statusCode !== 429) { throw err; } if (attempt === opts.maxRetries) break; // Exponential backoff with jitter const delay = Math.min( opts.baseDelayMs * Math.pow(2, attempt), opts.maxDelayMs ); const jitter = delay * opts.jitterFactor * Math.random(); await new Promise((r) => setTimeout(r, delay + jitter)); } } throw lastError; } // Usage with Customer.io client import { TrackClient, RegionUS } from "customerio-node"; const cio = new TrackClient( process.env.CUSTOMERIO_SITE_ID!, process.env.CUSTOMERIO_TRACK_API_KEY!, { region: RegionUS } ); // Wrap any operation with retry await withRetry(() => cio.identify("user-123", { email: "[email protected]" }) ); await withRetry(() => cio.track("user-123", { name: "page_viewed", data: { url: "/pricing" } }) ); ``` ### Pattern 3: Event Queue with Batching ```typescript // lib/customerio-batch.ts import { TrackClient, RegionUS } from "customerio-node"; interface QueuedEvent { userId: string; name: string; data?: Record<string, any>; } export class CioBatchTracker { private queue: QueuedEvent[] = []; private timer: NodeJS.Timeout | null = null; private client: TrackClient; constructor( private readonly batchSize: number = 50, private readonly flushIntervalMs: number = 5000 ) { this.client = new TrackClient( process.env.CUSTOMERIO_SITE_ID!, process.env.CUSTOMERIO_TRACK_API_KEY!, { region: RegionUS } ); this.startTimer(); } enqueue(userId: string, name: string, data?: Record<string, any>): void { this.queue.push({ userId, name, data }); if (this.queue.length >= this.batchSize)
Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 4f83675
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills git -C claude-code-plugins-plus-skills checkout 4f83675ca38a
The author documents no install command, so this uses the repository directly. Our verdict covers commit 4f83675ca38a only.
Works in which agents?
What its own text says, not a test
| Agent | Status | More |
|---|---|---|
| Claude Code | Mentioned in its text, not tested | Skills for Claude Code · About Claude Code |
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
4f83675ca38a
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/jeremylongshore/customerio-sdk-patterns/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
jeremylongshore/claude-code-plugins-plus
Deploy and orchestrate Vertex AI ADK agents using A2A protocol. Manages
Add this badge to your README
[](https://modelsatlas.com/skills/jeremylongshore/customerio-sdk-patterns/)
<a href="https://modelsatlas.com/skills/jeremylongshore/customerio-sdk-patterns/"><img src="https://modelsatlas.com/skills/jeremylongshore/customerio-sdk-patterns/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about Customerio Sdk Patterns
What does the Customerio Sdk Patterns skill do?
Is Customerio Sdk Patterns safe to install?
What can Customerio Sdk Patterns access on my machine?
Which assistants does Customerio Sdk Patterns work with?
How current is this page?
Sources
- github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/ — the audited source at commit 4f83675ca38a and every finding aboveObserved · 8 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Customerio Sdk Patterns skill do?
- Is Customerio Sdk Patterns safe to install?
- What can Customerio Sdk Patterns access on my machine?