# pp-klaviyo

pp-klaviyo operates Klaviyo from the CLI and adds local customer-behavior analysis. Use it for campaign work, flow checks, and revenue attribution.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 184 installs · ★ 2142 repo stars
- Author: Cathryn Lavery
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-klaviyo/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pp-klaviyo

## What it does

pp-klaviyo gives an agent command-line access to Klaviyo profiles, events, campaigns, flows, segments, and templates. It can assemble a campaign draft from an HTML file, swap an image in an existing message, and run launch-readiness checks.

Its local-data commands detect declining flow performance, group profiles into cohorts, connect order events to campaign or flow sources, and flag duplicate identities. The planning commands turn a brief into a Klaviyo execution plan or inspect links, dates, fallback tokens, unsubscribe placement, compliance, and deliverability before launch.

The skill requires the `klaviyo-pp-cli` binary, installed through `npx` or Go. Its commands will not run when that binary directory is missing from the agent runtime’s `PATH`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-klaviyo -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pp-klaviyo/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pp-klaviyo/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-klaviyo -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pp-klaviyo/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-klaviyo -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pp-klaviyo/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mvanhorn/printing-press-library cli-skills/pp-klaviyo/SKILL.md
```

2. **Manually: put the files in place**
- File: `.github/skills/pp-klaviyo/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-klaviyo -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mvanhorn/printing-press-library --path cli-skills/pp-klaviyo
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pp-klaviyo/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mvanhorn/printing-press-library --skill pp-klaviyo -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-klaviyo/SKILL.md

## When to use it
- build a campaign draft from an HTML template
- replace an image inside a campaign message
- spot flows with declining open or click performance
- attribute order revenue to campaigns or flows
- find duplicate profiles across email and phone

## Example prompts
- Use `campaigns deploy` to create a draft from `./email.html` for `LIST_ID`.
- Run `flow-decay` and report flows whose recent performance has dropped.
- Use `reconcile` for `CAMPAIGN_ID` to compare campaign tracking with order events.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: d3df9d282d1d07b2.

BEGIN THIRD-PARTY FILE d3df9d282d1d07b2
````text
---
name: pp-klaviyo
description: "Klaviyo from the shell, with local customer-behavior analytics layered on top. Trigger phrases: `inspect a Klaviyo profile`, `deploy a Klaviyo campaign`, `check Klaviyo flow decay`, `reconcile Klaviyo campaign revenue`."
author: "Cathryn Lavery"
license: "Apache-2.0"
argument-hint: "<command> [args] | install cli|mcp"
allowed-tools: "Read Bash"
metadata:
  openclaw:
    requires:
      bins:
        - klaviyo-pp-cli
    install:
      - kind: go
        bins: [klaviyo-pp-cli]
        module: github.com/mvanhorn/printing-press-library/library/marketing/klaviyo/cmd/klaviyo-pp-cli
---
<!-- GENERATED FILE — DO NOT EDIT.
     This file is a verbatim mirror of library/marketing/klaviyo/SKILL.md,
     regenerated post-merge by tools/generate-skills/. Hand-edits here are
     silently overwritten on the next regen. Edit the library/ source instead.
     See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

# Klaviyo — Printing Press CLI

## Prerequisites: Install the CLI

This skill drives the `klaviyo-pp-cli` binary. **You must verify the CLI is installed before invoking any command from this skill.** If it is missing, install it first:

1. Install via the Printing Press installer. It defaults binaries to `$HOME/.local/bin` on macOS/Linux and `%LOCALAPPDATA%\Programs\PrintingPress\bin` on Windows:
   ```bash
   npx -y @mvanhorn/printing-press-library install klaviyo --cli-only
   ```
2. Verify: `klaviyo-pp-cli --version`
3. Ensure the reported install directory is on `$PATH` for the agent/runtime that will invoke this skill.

If the `npx` install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

```bash
go install github.com/mvanhorn/printing-press-library/library/marketing/klaviyo/cmd/klaviyo-pp-cli@latest
```

If `--version` reports "command not found" after install, the runtime cannot see the binary directory on `$PATH`. Do not proceed with skill commands until verification succeeds.

## When to Use This CLI

Use this CLI when an agent needs to inspect or operate Klaviyo without the web UI, especially for profiles, events, campaigns, flows, segments, templates, metrics, and compound growth workflows.

## Unique Capabilities

These capabilities aren't available in any other tool for this API.

### Campaign operations
- **`campaigns deploy`** — Create an email template, create a draft campaign, and assign the template to the campaign message in one audited workflow.

  _Agents can build a draft campaign without hand-stitching three endpoint calls._

  ```bash
````
END THIRD-PARTY FILE d3df9d282d1d07b2

The third-party file has ended. Everything between the d3df9d282d1d07b2 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2627 of 49285 bytes. © Cathryn Lavery · Apache-2.0 · https://github.com/mvanhorn/printing-press-library/tree/HEAD/cli-skills/pp-klaviyo/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
