Agent skill

Klaviyo Common Errors

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Diagnose and fix common Klaviyo API errors and exceptions. An agent skill from jeremylongshore/tons-of-skills-marketplace.

MITAuto-check passedMarketing & SEO

Install Klaviyo Common Errors

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-common-errors -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace klaviyo-common-errors --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/klaviyo-common-errors .claude/skills/klaviyo-common-errors && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
klaviyo-common-errors
GitHub stars
2.8k
Token cost
~1.5k tokens
SKILL.md length
627 words
Files
3 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Diagnose and fix common Klaviyo API errors and exceptions. An agent skill from jeremylongshore/tons-of-skills-marketplace.

  • Works in 2 steps: Identify the Error → Match and Fix
  • Encountering Klaviyo 4xx/5xx errors
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Calls npm; needs KLAVIYO_PRIVATE_KEY

What it does

Klaviyo Common Errors is an agent skill from jeremylongshore/tons-of-skills-marketplace. Diagnose and fix common Klaviyo API errors and exceptions. Use when encountering Klaviyo 4xx/5xx errors, debugging failed requests, or troubleshooting SDK integration issues. Trigger with phrases like "klaviyo error", "fix klaviyo", "klaviyo not working", "debug klaviyo", "klaviyo 400", "klaviyo 429".

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/diagnostics.md` and `references/error-catalog.md`). Compatibility notes: Designed for Claude Code

It sits in Marketing & SEO, covering Email marketing. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Encountering Klaviyo 4xx/5xx errors
  • Debugging failed requests
  • Troubleshooting SDK integration issues
  • With phrases like klaviyo error

Example prompts

  • “klaviyo error”
  • “fix klaviyo”
  • “klaviyo not working”
  • “/klaviyo-common-errors”

Requirements

  • Node.js
  • A credential in KLAVIYO_PRIVATE_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Grep, Bash(curl:*), Bash(npm:*)

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Identify the Error
  2. Match and Fix

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Bash(curl:*)
    • Bash(npm:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • status.klaviyo.com
    • developers.klaviyo.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • KLAVIYO_PRIVATE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Klaviyo Common Errors loads about 1.5k tokens when it runs, and up to ~3k if it reads all its reference files. Until then it costs about 81 tokens; SKILL.md has 627 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 627 words, ~1,516 tokens.

Download SKILL.mdSave it as .claude/skills/klaviyo-common-errors/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
klaviyo-common-errors
description
Diagnose and fix common Klaviyo API errors and exceptions. Use when encountering Klaviyo 4xx/5xx errors, debugging failed requests, or troubleshooting SDK integration issues. Trigger with phrases like "klaviyo error", "fix klaviyo", "klaviyo not working", "debug klaviyo", "klaviyo 400", "klaviyo 429".
allowed-tools
Read, Grep, Bash(curl:*), Bash(npm:*)
compatibility
Designed for Claude Code
version
1.7.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, klaviyo, email-marketing, cdp

Klaviyo Common Errors

Overview

Quick reference for the most common Klaviyo API errors with real error payloads, root causes, and solutions. Because Klaviyo returns JSON:API errors (a status code plus a structured errors[] array), this skill walks you from a raw exception to a targeted fix: extract the status code, match it against the catalog, apply the documented remedy.

The full per-status-code catalog and the SDK-level failure table live in references/ to keep this workflow scannable — drill in once you know which status code you are chasing.

Prerequisites

  • klaviyo-api SDK installed (npm install klaviyo-api — note: not @klaviyo/sdk)
  • A private API key (pk_*) exported as KLAVIYO_PRIVATE_KEY
  • Access to the application logs where the failed request was recorded, so you can Read the stack trace and Grep for the status code and error code

Instructions

Step 1: Identify the Error

Extract the status code and error detail from the caught exception. Read the log line or wrap the call so the structured payload is visible:

typescript
try {
  await profilesApi.createProfile(payload);
} catch (error: any) {
  console.error('Status:', error.status);
  console.error('Errors:', JSON.stringify(error.body?.errors, null, 2));
  // error.body.errors[] has: { id, code, title, detail, source }
}

If you only have raw logs, Grep for the status code (grep -E "40[0-9]|429|50[0-9]") and the code field to isolate the failing request.

Step 2: Match and Fix

Map the status code to its root cause and remedy. Each row links into the full catalog, which carries the actual response payload and the fix code block:

StatusMeaningMost common root cause
400Bad RequestMissing field, non-E.164 phone, or snake_case instead of camelCase
401UnauthorizedMissing KLAVIYO_PRIVATE_KEY, or a public key used as a private key
403ForbiddenAPI key lacks the required scope (e.g. profiles:write)
404Not FoundWrong resource ID or a dead /api/v2/ path
409ConflictDuplicate — use createOrUpdateProfile upsert
429Rate LimitedExceeded burst (75/s) or steady (700/min); honor Retry-After
500/503Server ErrorKlaviyo-side — check status page, retry with backoff

The most common one, 400, is almost always a casing mismatch (the SDK expects camelCase):

typescript
// Wrong: snake_case              // Right: camelCase (SDK convention)
{ first_name: 'Jane' }            { firstName: 'Jane' }

See the full error catalog for every status code's real payload, complete cause list, and fix. For client-side failures that never reach the network (wrong import, response.data vs response.body.data, bad filter syntax) plus copy-paste diagnostic commands, see diagnostics & SDK errors.

Show full SKILL.md (274 more words)Show less

Output

Working through this skill produces a diagnosis and a fix, not a generated artifact:

  • The status code and error code identifying the failure class
  • The root cause matched from the catalog
  • A concrete code or config change (casing fix, scope grant, upsert, backoff)
  • For 5xx: confirmation of whether the fault is Klaviyo-side (status page) or yours

Error Handling

  • Status code is missing from the exception — the failure is client-side, not an API response. Check the SDK-level errors table in diagnostics (module-not-found, wrong constructor).
  • 401 persists after setting the key — you are using a public key. Verify with echo $KLAVIYO_PRIVATE_KEY | head -c 3 (must print pk_).
  • 429 with no RateLimit-Remaining header — expected. On a 429 Klaviyo returns only Retry-After; do not depend on the reset headers, honor Retry-After.
  • Fix does not resolve the error — collect evidence with klaviyo-debug-bundle, check status.klaviyo.com, then open a support ticket with the request IDs from the error responses.

Examples

Example — 403 permission_denied on profile create. The exception shows status: 403, detail: "...required scope: profiles:write". Match to the 403 row: the key lacks a scope. Fix: mint a new key with profiles:write at Settings > API Keys. Full payload and the endpoint→scope table are in the error catalog under the 403 section.

Example — intermittent 429 under load. Requests fail once traffic exceeds 700/min. Honor the Retry-After header and back off instead of tight-retrying:

typescript
if (error.status === 429) {
  const retryAfter = parseInt(error.headers?.['retry-after'] || '10'); // seconds
  await new Promise(r => setTimeout(r, retryAfter * 1000));
  // then retry
}

More worked cases (400 casing, 404 stale ID, 409 upsert) are in the error catalog.

Resources

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/.curated/klaviyo-common-errors of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/diagnostics.md
  • references/error-catalog.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Klaviyo Common Errors next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Klaviyo Common Errors compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Klaviyo Common Errors this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.5kAutomated safety check: PassMIT
Email Sequencefreekmurze/dotfiles1k19 repos~2kAutomated safety check: PassNone
Emailscoreyhaines31/marketingskills54k1 repos~2.8kAutomated safety check: PassMIT
Email SequenceLeoYeAI/openclaw-marketing-skills1k2 repos~2.1kAutomated safety check: PassCustom licence
Onboarding Crofreekmurze/dotfiles1k16 repos~1.6kAutomated safety check: PassNone
Marketing OsYuzzyuk/marketing-os540—~2.5kAutomated safety check: PassMIT

Similar skills

  • Email Sequence

    freekmurze/dotfiles

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program.

    1k GitHub starsUsed in 19 repos~2k tokens
    Marketing & SEOAuto-check passed
  • Emails

    coreyhaines31/marketingskills

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program.

    54k GitHub starsUsed in 1 repo~2.8k tokens
    Marketing & SEOAuto-check passed
  • Email Sequence

    LeoYeAI/openclaw-marketing-skills

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program.

    1k GitHub starsUsed in 2 repos~2.1k tokens
    Marketing & SEOAuto-check passed
  • Onboarding Cro

    freekmurze/dotfiles

    When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value.

    1k GitHub starsUsed in 16 repos~1.6k tokens
    Marketing & SEOAuto-check passed
  • Marketing Os

    Yuzzyuk/marketing-os

    A complete marketing department in one skill. An agent skill from Yuzzyuk/marketing-os.

    540 GitHub stars~2.5k tokensUpdated 1 mo ago
    Marketing & SEOAuto-check passed
  • Onboarding

    Nexus-JPF/note-companion

    When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value.

    870 GitHub starsUsed in 4 repos~1.6k tokens
    Marketing & SEOAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated yesterday
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed

Questions about Klaviyo Common Errors

What does Klaviyo Common Errors do?

Diagnose and fix common Klaviyo API errors and exceptions. An agent skill from jeremylongshore/tons-of-skills-marketplace. Klaviyo Common Errors is an agent skill from jeremylongshore/tons-of-skills-marketplace. Diagnose and fix common Klaviyo API errors and exceptions.

When should I use Klaviyo Common Errors?

Klaviyo Common Errors fits situations like: encountering Klaviyo 4xx/5xx errors; debugging failed requests; troubleshooting SDK integration issues; with phrases like klaviyo error.

How do I install Klaviyo Common Errors in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-common-errors -a claude-code`. Or copy the skill folder (skills/.curated/klaviyo-common-errors in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/klaviyo-common-errors in your project. Claude Code loads it when a task matches its description.

How do I install Klaviyo Common Errors in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-common-errors -a codex`. Or copy the skill folder (skills/.curated/klaviyo-common-errors in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/klaviyo-common-errors in your project. Codex loads it when a task matches its description.

Can I use Klaviyo Common Errors in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill klaviyo-common-errors -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/klaviyo-common-errors, .gemini/skills/klaviyo-common-errors, .github/skills/klaviyo-common-errors and .opencode/skills/klaviyo-common-errors in your project.

What does Klaviyo Common Errors need to run?

Going by SKILL.md and its folder, Klaviyo Common Errors needs the command-line tools its instructions call (npm) and credentials named KLAVIYO_PRIVATE_KEY. Our summary lists: Node.js; A credential in KLAVIYO_PRIVATE_KEY. Its frontmatter pre-approves these tools: Read, Grep, Bash(curl:*), Bash(npm:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Klaviyo Common Errors access the network?

SKILL.md names 2 domains. As links in the text: status.klaviyo.com and developers.klaviyo.com. This is read from the text; nothing was executed.

Is Klaviyo Common Errors safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Klaviyo Common Errors use?

Klaviyo Common Errors is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Klaviyo Common Errors use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to Klaviyo Common Errors?

Skills that share tags, products or a category with Klaviyo Common Errors: Email Sequence (freekmurze/dotfiles, 1k stars), Emails (coreyhaines31/marketingskills, 54k stars), Email Sequence (LeoYeAI/openclaw-marketing-skills, 1k stars) and Onboarding Cro (freekmurze/dotfiles, 1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Klaviyo Common Errors?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.