Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/klaviyo-upgrade-migration

@0d57af8
Run it yourself

Upgrade Klaviyo SDK versions and migrate between API revisions. Use when upgrading the klaviyo-api package, migrating from v1/v2 legacy APIs to the current REST API, or handling breaking changes between revisions. Trigger with phrases like "upgrade klaviyo", "klaviyo migration", "klaviyo breaking changes", "update klaviyo SDK", "klaviyo API revision".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/klaviyo-upgrade-migration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesupgrade-procedure.md

≈405 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Klaviyo Upgrade & Rollback Procedure

The exact command sequence for a safe, reversible SDK upgrade. Pin the version with --save-exact so a floating range can't drag in another breaking major during CI.

Upgrade Procedure

# 1. Create upgrade branch
git checkout -b upgrade/klaviyo-api-v21

# 2. Install new version
npm install klaviyo-api@21.0.0 --save-exact

# 3. Run TypeScript compiler to find breaking changes
npx tsc --noEmit 2>&1 | grep -i "klaviyo\|error TS"

# 4. Fix all type errors, then run tests
npm test

# 5. Run integration tests against staging
KLAVIYO_TEST=1 npm run test:integration

# 6. Commit and deploy to staging first
git add package.json package-lock.json src/
git commit -m "upgrade: klaviyo-api to v21.0.0"

Rollback Procedure

If error rates rise after the upgrade, reinstall the previous exact version and revert the lockfile. Because the upgrade branch pinned versions, the rollback is a clean reinstall — no dependency-resolution guesswork.

# If issues found after upgrade
npm install klaviyo-api@15.0.0 --save-exact
npm test
git add package.json package-lock.json
git commit -m "revert: rollback klaviyo-api to v15.0.0"

Migration Checklist

  • Backup current package-lock.json
  • Read SDK changelog for target version
  • Update ApiKeySession import (if changed)
  • Fix property casing (camelCase in v21+)
  • Update response access pattern (response.body.data)
  • Verify all filter syntax still works
  • Run full test suite
  • Deploy to staging first
  • Monitor error rates for 24 hours after production deploy

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a secure workflow for upgrading the Klaviyo SDK, utilizing standard package management tools and following best practices for credential security.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 months ago
What it can do
Reads files Edits files Runs commands
version
1.7.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "klaviyo",
  "email-marketing",
  "cdp"
]
All 4 allowed tools
ReadEditBash(npm:*)Bash(git:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/klaviyo-upgrade-migration