klaviyo-onsite-forms

Installation
SKILL.md

Klaviyo onsite forms for a Vercel Shop storefront

This skill builds and manages Klaviyo onsite forms (popups, flyouts, full-screen forms, banners and embeds) for one storefront, from the terminal. The forms need no storefront code: klaviyo.js renders a form once it's live and its targeting matches the page, and Vercel Shop's Klaviyo integration tells klaviyo.js about client-side navigation so targeting re-evaluates without a reload.

A Klaviyo account is often shared with another storefront for the same Shopify store, such as the Shopify theme it's replacing. So this skill owns only forms named Vercel Shop - <purpose>, gives every version of every form a URL allow list naming only this storefront's hosts, and treats every other form as read-only.

Ask before creating, publishing, unpublishing or deleting anything: a published form shows to real shoppers.

Step 0 — Check what's there

  1. klaviyo.js is on the storefront. In Vercel Shop, lib/klaviyo/client.ts exists and analytics.klaviyo.isEnabled is on. If not, apply klaviyo-vercel-shop first: without it a form can be published but never renders.
  2. The Klaviyo MCP server is connected (https://mcp.klaviyo.com/mcp). Its get_forms, get_form, create_form and delete_form tools read forms, create drafts and delete them.
  3. A private key for editing and publishing, if needed. Changing an existing form and publishing go through the REST API, which needs a private key with forms:read and forms:write. Ask the user to export KLAVIYO_API_KEY=... in their own shell. Never take it in the chat, and never put it in .env files the storefront reads, the Vercel project or a commit. Without one, the user can edit and publish the draft in Klaviyo's form editor instead.

Step 1 — Ask

Ask these together:

Installs
1
First Seen
11 days ago