Skip to main content
AnalysisOfficialCertifiedAI reviewed Jul 21, 2026

Cart Recovery

Generate a multi-channel abandoned cart recovery sequence — SMS at 15 min (98% open rate, 25-40% conversion) followed by email cadence at 1hr / 24hr / 72hr, plus optional push and retargeting touchpoints..

v1.0.1New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install cart-recovery
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/cart-recovery/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Abandoned Cart Recovery Sequence Generator

You generate a complete multi-channel cart abandonment recovery flow. Industry benchmark: 20-35% of abandoned carts recoverable with a disciplined multi-channel sequence. SMS-led sequences convert 25-40% (98% open rate); email-only converts 5-15%.


=== PRE-FLIGHT ===


Verify:

  • Commerce platform: Shopify, WooCommerce, BigCommerce, Stripe Checkout, custom.
  • ESP / SMS provider: Klaviyo (most common DTC), Postscript, Attentive, Sendlane, Omnisend, Drip, Mailchimp.
  • Consent compliance: confirm SMS opt-in language matches TCPA + state laws (FL, NY especially strict in 2026). Email needs CAN-SPAM unsubscribe + physical address.
  • Discount strategy decided: when can you give a discount, and how much? (Brand-protection caps matter.)
  • Average order value (AOV) known: drives the segmentation tiers and incentive thresholds.

Recovery:

  • If SMS provider absent, generate email-only sequence and note the 2-3× recovery gap explicitly.
  • If no opt-in compliance language present in current site, output the required snippet — refusing to publish without it.

=== PHASE 2: SEQUENCE TIMING ===


Default sequence (mid-tier $50-$150 cart):

StepChannelDelay from abandonPurpose
1SMS15 minReminder, no incentive — intent still hot
2Email 11 hourReminder + cart preview + reviews
3Email 224 hoursFree shipping (if not already free) + urgency
4Email 372 hoursFinal touch, time-bound discount
(5)Retargetinghours 1-72Meta + Google dynamic product ads

For low-value carts (< $50): drop SMS (cost > expected return), use Email 1 + Email 3 only, no discount.

For high-value carts (> $150): add Email 4 at 5 days, SMS 2 at 48 hr, free shipping in Email 1, full discount Email 4.

VALIDATION: Sequence config matches the user's AOV tier. Frequency cap honored (no double-send on same day).


=== PHASE 3: TEMPLATE COPY ===


Generate each touchpoint with platform-native dynamic tags.

SMS @ 15min (≤ 160 chars, single segment to control cost):

Hey {first_name}, your {top_item_name} is waiting. Grab it before it sells out: {short_url}
Reply STOP to opt out.

Email 1 @ 1hr — subject: "You left something behind 👀"

  • Hook line, cart preview (image + name + price), reviews snippet under each item, primary CTA "Complete checkout", secondary "Save for later", footer with reply-to + physical address + unsubscribe.

Email 2 @ 24hr — subject: "Still thinking? Free shipping is on us"

  • Different hero (lifestyle, not product), free shipping callout, customer photo from reviews, inventory urgency line only if stock < 10.

Email 3 @ 72hr — subject: "Last chance: 10% off your cart"

  • Time-bound code (expires in 24 hr, single-use, tied to email), large CTA, cross-sell to similar items as fallback.

VALIDATION: Every template uses dynamic tags compatible with the chosen ESP. No hardcoded product names. Unsubscribe + opt-out present.


=== PHASE 4: WEBHOOK HANDLERS ===


Generate checkout/abandoned.handler.{ts|py} that fires on:

  • Shopify: checkouts/create + checkouts/update + orders/create (to suppress sequence on purchase).
  • WooCommerce: woocommerce_cart_updated action + woocommerce_thankyou.
  • Stripe Checkout: webhook checkout.session.async_payment_succeeded, expired, completed.

The handler MUST:

  1. Capture: cart items[], cart total, customer email/phone (if available), AOV tier, abandon time.
  2. Suppress if order placed (look up Customer + Order tables for matching email/phone within 7 days).
  3. Honor unsubscribe / STOP lists.
  4. Push event to ESP/SMS provider via API (Klaviyo Track, Postscript Subscriber, etc.).

VALIDATION: Suppression test — if order placed during sequence, remaining steps don't fire. Test fixture covers this.


=== PHASE 5: DYNAMIC PRODUCT BLOCKS ===


Don't send "you left stuff behind" — show the actual items.

Generate a server-rendered (or ESP-templated) block per template that pulls:

  • Item image (CDN-optimized, fixed aspect ratio so email renders cleanly).
  • Item name + variant + price.
  • Cart line subtotal.
  • One-click "Restore cart" link with hashed token (HMAC-signed URL that re-hydrates the cart on landing — no login required).

VALIDATION: Email renders correctly in Litmus/Email-on-Acid for Gmail/Apple Mail/Outlook (desktop + mobile). Restore link tested.


=== PHASE 6: REVENUE ATTRIBUTION ===


Tag every recovery touchpoint with UTM + custom click ID so revenue attribution can roll up to the sequence step.

  • ?utm_source=cart_recovery&utm_medium={sms|email}&utm_campaign=abandoned_v1&utm_content=step_{1|2|3}&cid={hashed_user_id}

Output an attribution reporting view that joins:

  • Sends per step
  • CTR per step
  • Cart restores per step
  • Orders per step (within 7-day attribution window)
  • Revenue per step
  • Recovery rate (orders / abandons)

VALIDATION: Reporting query runs against the platform's analytics DB or built-in ESP reports.


=== PHASE 7: COMPLIANCE & ANTI-DARK-PATTERNS ===


Generate compliance_checklist.md:

  • SMS opt-in language explicit ("Reply YES to receive cart reminders. Msg/data rates apply. Reply STOP to opt out.")
  • STOP keyword auto-suppression wired
  • Email unsubscribe one-click (RFC 8058)
  • Physical mailing address in every email footer (CAN-SPAM)
  • No fake countdown timers
  • No fake inventory urgency
  • Discount code expirations are real (not extended silently)
  • State-specific: CA SB 657 (subscription disclosures), FL TCPA strict liability awareness

VALIDATION: Compliance checklist is checked off per generated sequence before publishing.


=== SELF-REVIEW ===


Score 1–5:

  • Complete: SMS + email sequence + webhook + attribution + compliance all delivered?
  • Robust: Suppression on purchase works? Cart restore URL re-hydrates? Frequency cap honored?
  • Clean: Templates render across major clients? Subject lines under spam-trigger limits?
  • Lifecycle-credible: Would a Klaviyo / Postscript power-user accept this as production-ready?

Most common gap: forgetting purchase suppression → sending step 3 to someone who completed at step 2. Verify the suppression test passes.


=== LEARNINGS CAPTURE ===


Append to ~/.claude/skills/cart-recovery/LEARNINGS.md:

— <platform, ESP, AOV tier>

  • What worked:
  • What was awkward: <retry/manual fix needed>
  • Suggested patch:
  • Verdict: [Smooth / Minor friction / Major friction]

=== STRICT RULES ===


  • Never send SMS without explicit opt-in. TCPA penalties are $500-$1,500 per text in the US.
  • Never use fake urgency or fake inventory counts. FTC enforces.
  • Never skip the purchase suppression. Sending "complete checkout" to a customer who paid 30 minutes ago is the fastest way to spike complaints.
  • Never discount in Step 1. You'll train customers to abandon for the coupon.
  • Always include unsubscribe / STOP. Compliance is non-negotiable.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion to interfaces using modern CSS — scroll-driven animations, view transitions, @starting-style, and GPU-accelerated transforms. Triggers: 'add animation', 'animate', 'add motion', 'transitions', 'scroll animation'.79 installsdesign-auditComprehensive autonomous design quality audit across accessibility (WCAG 2.2), performance, theming, responsive/adaptive design, and anti-pattern detection. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.62 installssecureFull-stack security posture assessment with 0-100 risk scoring. Scans dependency vulnerabilities (npm audit, pip-audit, cargo audit, govulncheck), dangerous code patterns (SQL injection, eval, command injection, ReDoS, innerHTML, XSS vectors), authentication gaps (missing auth middleware.57 installsdiagramGenerate Mermaid architecture diagrams from your codebase. Produces C4 context and container diagrams, sequence diagrams for key flows, ER diagrams from database schemas, and module dependency graphs. Use when you need architecture diagrams, system diagrams, database ERD, sequence diagrams, dependency visualization, or C4 model diagrams.57 installsdesign-polishFinal autonomous quality pass before shipping. Fixes alignment, spacing, consistency, typography hierarchy, color harmony, motion timing, and every micro-detail that separates good from great..56 installsresponsiveAudit and fix responsive design issues across all breakpoints. Scans for fixed widths that cause mobile overflow, missing media query variants, non-responsive images, undersized touch targets below 48px, unreadable typography, and horizontal scroll violations..50 installs

More from Skills Hub

View source →
security-reviewSecurity audit and vulnerability assessment for any codebase. Scans for authentication bypasses, missing auth middleware, broken JWT validation (algorithm confusion, weak secrets, missing expiry), OAuth state and PKCE flaws, IDOR and horizontal privilege escalation.198 installsunit-testGenerate comprehensive unit tests with edge cases, error paths, and boundary values. Triggers: you need to add unit tests, increase code coverage, test edge cases, or verify error handling paths.167 installsweb-gameScaffolds a browser-based game with Phaser 3, PixiJS, or Three.js including game loop, asset pipeline, responsive canvas, input handling, audio, save/load, and deployment to itch.io or web. Triggers: on: "web game", "browser game", "html5 game", "phaser game", "pixi game".134 installshumanizerMulti-pass editor that removes AI-writing tells from drafted content — eliminates filler phrases, balances sentence length, restores opinion and voice, and strips em-dash overuse so posts sound human and opinionated rather than ChatGPT-generic..134 installsflutterBuilds Flutter applications from videos, screenshots, descriptions, or app clone requests. Triggers on: flutter app, build a mobile app, replicate this app in Flutter, build from video, build from screenshots, clone this app, build an app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production-quality frontend code: extract a design system with tokens and components, make layouts responsive across breakpoints, add dark mode with WCAG-compliant theming, then run a UX audit to validate everything..126 installs

More Analysis skills

Browse category →
web-research-agentA comprehensive autonomous web research agent that performs targeted searches, fetches and parses web content, summarizes findings, and generates structured reports, adhering to industry best practices for accuracy, security, and robustness.238 installsrecallReconstructs the development cycle from git history, distills sequential/parallel patterns, and produces actionable insights for improving future iterations. Triggers: recall, retrospective, development analysis, what happened, dev cycle analysis.20 installsseoAutonomous SEO + AI-search optimization agent for 2026. Audits and fixes technical SEO, on-page metadata, structured data, Core Web Vitals (LCP/INP/CLS), llms.txt, Generative Engine Optimization (GEO) for ChatGPT/Perplexity/AI Overviews, E-E-A-T author signals.10 installsapp-size-optimizerAnalyzes mobile app binary size -- asset audit for unused images and font subsetting, code stripping with ProGuard and tree-shaking, on-demand resources, dynamic feature modules, and app thinning strategies..6 installsbilibili-comment-insights当用户需要做 B站评论分析、B站评论洞察、B站用户反馈分析、B站需求挖掘、痛点总结、购买顾虑整理、FAQ 提炼、口碑分析、评论回复观察或内容讨论复盘时使用。基于用户提供的 B站视频、专栏、动态链接或对应内容 ID 下的评论结果,面向内容运营、产品调研、品牌调研和创作者。由社媒数据助手 SocialDataX 提供。5 installsbundle-analysisAnalyze frontend bundle size, detect heavy dependencies, find duplicates, evaluate tree-shaking, recommend code splitting, and generate size budget configs. Triggers: phrases: "analyze bundle size", "why is my bundle so big", "find heavy dependencies", "reduce bundle size".5 installs

Frequently asked questions about cart-recovery

What does the cart-recovery skill do?

Generate a multi-channel abandoned cart recovery sequence — SMS at 15 min (98% open rate, 25-40% conversion) followed by email cadence at 1hr / 24hr / 72hr, plus optional push and retargeting touchpoints.. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the cart-recovery skill?

Run `npx @skills-hub-ai/cli install cart-recovery` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cart-recovery/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does cart-recovery work with?

cart-recovery runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the cart-recovery skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use cart-recovery after installing it?

In Claude Code, type `/cart-recovery` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the cart-recovery skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.