Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

customer-retention-engine客户保留引擎

Agent Skill

customer-retention-engine 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

480

周安装

20

GitHub Stars

19

下载量

160
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:customer-retention-engine(客户保留引擎)
来源仓库:https://github.com/finsilabs/awesome-ecommerce-skills
仓库路径:skills/customer-retention-engine
安装命令:
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill customer-retention-engine
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/finsilabs/awesome-ecommerce-skills --skill customer-retention-engine

简介

客户保留引擎主动识别即将流失的高价值客户,实施个性化干预防止流失。

  • 适用于电商平台或 SaaS 产品,聚焦于预防性留存而非事后挽回已流失用户。
  • 基于购买频率下降、订单金额减少等行为信号建立预警机制。
  • 输出可执行的客户名单与推荐触达策略,集成 Klaviyo 等平台实现自动化工作流。
  • 需接入订单与用户行为数据源以确保信号准确性,避免误判正常波动。

SKILL.md

Customer Retention Engine

Overview

Acquiring a new customer costs 5–7x more than retaining an existing one. A retention engine identifies customers who show declining engagement — reduced purchase frequency, decreasing order values, browsing without buying — and intervenes with personalized campaigns before they lapse. Klaviyo and AutomateWoo can build these workflows with no custom code using predictive analytics built into the platform.

Note: For reactivating already-lapsed customers, see @win-back-reactivation. This skill focuses on proactive churn prevention before customers lapse.

When to Use This Skill

  • When repeat purchase rate is declining month-over-month
  • When a significant percentage of customers only ever purchase once
  • When you want to proactively contact customers before they go fully dormant
  • When building a post-purchase nurture program beyond the first 30 days
  • When needing to identify which customers are worth offering a discount vs. which will repurchase anyway

Core Instructions

Step 1: Choose the right tool for your platform

PlatformRecommended ToolWhy
ShopifyKlaviyoKlaviyo's predictive analytics automatically calculates expected next purchase date and churn risk for every customer; no manual scoring needed
WooCommerceAutomateWoo ($99/yr)Deep WooCommerce integration, "Customer win-back" workflow type, RFM segmentation built in
BigCommerceKlaviyo or OmnisendBoth integrate natively with BigCommerce order events and offer predictive churn scoring
Custom / HeadlessKlaviyo (via API)Send order events to Klaviyo; use their predictive analytics to identify at-risk customers

Step 2: Define your churn threshold

Churn timing depends on your product's natural repurchase cycle:

Product CategoryExpected Repurchase CycleAt-Risk ThresholdChurned Threshold
Consumables (skincare, supplements)30–60 days60+ days since last order120+ days
Apparel/fashion60–90 days90+ days180+ days
Home goods90–180 days180+ days365+ days
Electronics accessories120–365 days180+ days365+ days

In Klaviyo, go to Analytics → Predictive Analytics to see Klaviyo's automatically calculated churn risk for your customer base. Klaviyo uses your actual order history to set these thresholds — no manual calculation needed.

Step 3: Build retention flows


Shopify with Klaviyo

Flow 1: Early warning — customers approaching their expected repurchase date

  1. Go to Klaviyo → Flows → Create Flow → Start from Scratch
  2. Set trigger: Metric → Expected Date of Next Order is in 7 days

- Klaviyo calculates this automatically using predictive analytics

  1. Add an email action with subject line: "Your favorites are waiting for you"

- Include: personalized product recommendations based on past purchases - Use the {{person.predicted_next_purchase_date}} variable to acknowledge timing

  1. Wait 3 days → Add a conditional: "Has placed an order since flow start?" → If No: send a follow-up email

Flow 2: High-value at-risk customers — personalized offer

  1. Create a new flow triggered by: Segment → "High-Value At-Risk" segment (configure segment below)
  2. Email: personalized exclusive offer (free shipping or 15% off for top-tier; no discount for mid-tier)
  3. Wait 5 days → If no purchase: SMS follow-up (for SMS-consented customers)

Create the "High-Value At-Risk" segment in Klaviyo:

  1. Go to Klaviyo → Segments → Create Segment
  2. Conditions:

- Predicted Churn Risk equals High OR Mid - AND Total Customer Value (Historic CLV) greater than $150 - AND Has not placed order in last 60 days

  1. Save as "High-Value At-Risk"

Flow 3: One-time buyer reminder

  1. Create a flow triggered by: Metric → Placed Order
  2. Wait 45 days
  3. Check: "Total number of orders equals 1" → If yes:
  4. Email: "Based on your [product name] purchase, you might love these..." with 3–4 complementary product recommendations
  5. Wait 14 days → If still only 1 order: send final email with 10% welcome-back discount

WooCommerce with AutomateWoo

  1. Go to AutomateWoo → Workflows → Add Workflow
  2. Set trigger: Customer → Win Back

- AutomateWoo has a built-in "Customer Win Back" trigger that fires at configurable intervals after last purchase

  1. Set timing rules:

- Workflow A: 45 days since last purchase — send personalized recommendations email - Workflow B: 75 days since last purchase — send exclusive offer email with discount

  1. Add a rule to each workflow: "Customer has not purchased since workflow was created" — auto-cancels on conversion
  2. For VIP customers: add a rule "Customer total spend > $500" to route to a separate workflow with better offers

AutomateWoo also includes built-in RFM segmentation — go to AutomateWoo → Reports → RFM Analysis to see your customer segments visually.


BigCommerce

  1. Install Klaviyo from the BigCommerce App Marketplace
  2. Klaviyo automatically syncs all BigCommerce order history
  3. Follow the same Klaviyo flow setup described in the Shopify section above
  4. BigCommerce order events trigger Klaviyo flows in real-time after the integration is connected

Custom / Headless

Send order events to Klaviyo's API to trigger retention flows:

// Send order event to Klaviyo when an order is completed
async function trackKlaviyoOrder(order: Order) {
  await fetch('https://a.klaviyo.com/api/events/', {
    method: 'POST',
    headers: {
      'Authorization': `Klaviyo-API-Key ${process.env.KLAVIYO_PRIVATE_KEY}`,
      'Content-Type': 'application/json',
      'revision': '2024-10-15',
    },
    body: JSON.stringify({
      data: {
        type: 'event',
        attributes: {
          metric: { data: { type: 'metric', attributes: { name: 'Placed Order' } } },
          profile: { data: { type: 'profile', attributes: { email: order.customerEmail } } },
          properties: {
            $value: order.subtotal,
            OrderId: order.id,
            Items: order.lineItems.map(i => ({ ProductName: i.name, ItemPrice: i.price })),
          },
        },
      },
    }),
  });
}

Klaviyo's predictive analytics then automatically calculates churn risk and expected next purchase date based on these events.

Step 4: Configure intervention timing and incentives

Match interventions to customer value tier:

Customer TierInterventionIncentive
VIP (6+ orders, $500+ LTV)Personalized email from "founder"No discount — just recognition and early access
High-value (3–5 orders)Email + SMS follow-upFree shipping (protects margin)
Standard (1–2 orders)Email sequence10% discount at final step only
One-time buyerEmail at 45 days10% off second order

Step 5: Measure retention lift

Track these in Klaviyo or AutomateWoo dashboards:

MetricTargetWhere to Find
Flow revenueGrowing month-over-monthKlaviyo → Flows → Analytics
Repeat purchase rate> 25% of customersShopify: Analytics → Customer cohorts. Klaviyo: Segment analytics
At-risk segment shrinkingDecrease vs. prior monthKlaviyo → Segments → Size history
Churn rateDecliningCompare lapsed customer count month-over-month

Best Practices

  • Never discount VIP customers reflexively — high-LTV customers who are slightly overdue may just be busy; a soft nudge without discount often works and protects margin
  • Personalize based on actual purchase history — Klaviyo's dynamic product blocks automatically show recommendations based on what the customer has bought
  • Set a contact frequency cap — in Klaviyo, use Smart Sending and set a daily message limit; at-risk customers should not receive more than one touchpoint per week
  • Use Klaviyo's predictive analytics — do not manually calculate churn scores; Klaviyo computes expected next purchase date and churn risk automatically from your order data
  • Close the loop with CS for high-value customers — for accounts over $1,000 LTV showing high churn risk, route to a customer success rep via Gorgias or Zendesk for personal outreach

Common Pitfalls

ProblemSolution
Sending retention emails to customers who just boughtAdd a flow filter in Klaviyo: "Has placed an order in last 7 days → skip"; AutomateWoo's "Customer has not purchased since workflow was created" rule handles this
Discounts eroding margin on customers who would have repurchased anywayUse Klaviyo's predictive analytics: only offer discounts when predicted churn risk is "High"; skip for "Mid" and "Low"
Single-purchase customers receiving win-back messaging too earlySet a minimum 45-day window before treating a one-time buyer as at-risk
Flows sending to unsubscribed contactsKlaviyo respects unsubscribes automatically; ensure your Shopify/WooCommerce unsubscribe events sync to Klaviyo in real-time

Related Skills

  • @lifecycle-marketing-automation
  • @win-back-reactivation
  • @loyalty-program-optimization
  • @email-marketing-automation
  • @email-list-segmentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.81%
按下载量换算56

Claude

31.54%
按下载量换算50

Cursor

20.52%
按下载量换算33

Gemini CLI

10.48%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills