klaviyo

klaviyo is a skill for Claude Code from alinaqi/maggy. It costs 19 tokens per session (4,392 once invoked), scanned A, original, MIT.

An integration guide for Klaviyo, a service for sending email and text messages based on customer activity. It covers customer profiles, events, campaigns, flows, and audience groups.

In plain words
What is it for?
Use it to connect a store to Klaviyo, manage customer data, track events, build segments, and trigger marketing flows.
Why use it?
It gives an online store one place to connect customer actions with targeted email and text campaigns.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

not rated 713repo +1 3d ago A scan Socket: passSnyk: warnSkillSpector: warn 19 tokens original MIT

Good fit Use it to connect a store to Klaviyo, manage customer data, track events, build segments, and trigger marketing flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alinaqi/maggy/klaviyo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alinaqi/maggy --skill klaviyo
Clone the repo
git clone --depth 1 https://github.com/alinaqi/maggy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for klaviyo

README.md
[![agentmods](https://agentmods.dev/badge/skills/alinaqi/maggy/klaviyo/github.svg)](https://agentmods.dev/skills/alinaqi/maggy/klaviyo)
Your own site
<a href="https://agentmods.dev/skills/alinaqi/maggy/klaviyo"><img src="https://agentmods.dev/badge/skills/alinaqi/maggy/klaviyo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for klaviyo

Your own site · 80×15
<a href="https://agentmods.dev/skills/alinaqi/maggy/klaviyo"><img src="https://agentmods.dev/badge/skills/alinaqi/maggy/klaviyo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 14 Jul 2026
  • Snyk warn 14 Jul 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 760
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.04392
Opus 5.5 $0.00008 $0.01757
Sonnet 5.5 $0.00004 $0.00878
Haiku 4.5 $0.00002 $0.00439

Measured 2mo ago against content hash a600115b277d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

klaviyo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/klaviyo/SKILL.md · 810 lines

How it starts

The opening of the file, as written. The whole thing — 810 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Klaviyo E-Commerce Marketing Skill

For integrating Klaviyo email/SMS marketing - customer profiles, event tracking, campaigns, flows, and segmentation.

Sources: Klaviyo API Docs | API Reference


Why Klaviyo

Feature Benefit
E-commerce Native Built for online stores, deep integrations
Event-Based Trigger flows from any customer action
Segmentation Advanced filtering on behavior + properties
Email + SMS Unified platform for both channels
Analytics Revenue attribution per campaign

API Basics

Base URLs

Type URL
Server-side (Private) https://a.klaviyo.com/api
Client-side (Public) https://a.klaviyo.com/client

Authentication

// Server-side: Private API Key
const headers = {
  "Authorization": "Klaviyo-API-Key pk_xxxxxxxxxxxxxxxxxxxxxxxx",
  "Content-Type": "application/json",
  "revision": "2024-10-15",  // API version
};

// Client-side: Public API Key (6 characters)
const publicKey = "XXXXXX";  // Company ID
// Use as query param: ?company_id=XXXXXX

API Key Scopes

Scope Access
Read-only View data only
Full Read + write (default)
Custom Specific permissions

Installation

Node.js

npm install klaviyo-api
// lib/klaviyo.ts
import { ApiClient, EventsApi, ProfilesApi, ListsApi } from "klaviyo-api";

const client = new ApiClient();
client.setApiKey(process.env.KLAVIYO_PRIVATE_KEY!);

export const eventsApi = new EventsApi(client);
export const profilesApi = new ProfilesApi(client);
export const listsApi = new ListsApi(client);

Python

pip install klaviyo-api
# lib/klaviyo.py
from klaviyo_api import KlaviyoAPI

klaviyo = KlaviyoAPI(
    api_key=os.environ["KLAVIYO_PRIVATE_KEY"],
    max_delay=60,
    max_retries=3
)

Read the full file on GitHub · 810 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 810 lines · 19 tokens per session scan A a600115b277d

Subscribe to this mod's changes

klaviyo is a skill published in the GitHub repository alinaqi/maggy (713 stars, last pushed 3d ago), licensed MIT. It adds 19 tokens to every session and 4,392 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

klaviyo compared with skills from other repositories

klaviyo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
klaviyoalinaqi/maggySkill7133d agoMITA19Claude Code
kunze-ad-setuphashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A53Claude Code, Codex
launchfast-full-research-loophashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A69Claude Code
wilco-ad-setuphashgraph-online/awesome-codex-pluginsSkill1.6ktodayApache-2.0A48Claude Code, Codex
stripe-bfcm-dashboardstripe/aiSkill2.1k6d agoMITA120Claude Code, Codex
inventoryericrisco/rsc-harnessSkill6915d agoMITA66Claude Code, Codex
agent-payment-billing-specialisttravisjneuman/.claudeSkill115yesterdayMITA67Claude Code