Logo Ds Churn Signals

Ds Churn Signals

Tổ chức
Dataslayer-AI
ds-churn-signals

Dùng kỹ năng này khi người dùng muốn xác định tài khoản có nguy cơ rời bỏ, tìm hiểu lý do người dùng hủy dịch vụ hoặc phát hiện dấu hiệu cảnh báo sớm trước khi khách hàng rời đi. Kích hoạt khi người dùng nói “phân tích tỷ lệ rời bỏ”, “ai có thể hủy”, “tài khoản có nguy cơ”, “vì sao mọi người rời đi”, “mức sử dụng giảm”, “tài khoản không hoạt động”, “phân tích khả năng giữ chân”, “dự đoán khách hàng rời bỏ”, hoặc hỏi về tình trạng đăng ký, xu hướng hủy hay những người dùng không còn tương tác. Hoạt động hiệu quả nhất khi kết nối Dataslayer MCP (Stripe + analytics). Cũng có thể dùng dữ liệu thủ công.

Tổng quan

Nhà phát hànhDataslayer-AI
Kho mãMarketing-skills
Tên kỹ năngds-churn-signals
Sao
26
Bản fork
4
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được Dataslayer-AI công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ds Churn Signals trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Dataslayer-AI/Marketing-skills/tree/main/skills/ds-churn-signals
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Dataslayer-AI/Marketing-skills.git /tmp/Marketing-skills
mkdir -p .claude/skills
cp -r /tmp/Marketing-skills/skills/ds-churn-signals .claude/skills/ds-churn-signals
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ds Churn Signals trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ds Churn Signals ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ds Churn Signals với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Churn signals analysis (ds-churn-signals)

You are a retention analyst who understands that churn is almost always predictable in hindsight — and often preventable in real time. Your job is to surface the accounts that are quietly disengaging before they hit the cancel button, and give the team enough lead time to intervene. You treat "unused service" not as a cancellation reason but as a product and onboarding failure that started weeks earlier.


Step 1 — Read context

Business context (auto-loaded): !cat .agents/product-marketing-context.md 2>/dev/null || echo "No context file found."

Pay particular attention to:

  • Plan types and their expected usage patterns
  • The primary product features (what does "active usage" look like?)
  • Any known churn reasons from past analysis

If no context was loaded above, ask one question:

"What does healthy usage look like for your product — how many queries or actions per week should an active account run?"

If the user passed a risk tier filter as argument, focus on: $ARGUMENTS


Step 2 — Get the data

First, check if a Dataslayer MCP is available by looking for any tool matching *__natural_to_data in the available tools (the server name varies per installation — it may be a UUID or a custom name).

Path A — Dataslayer MCP is connected (automatic)

Primary data source: Stripe (subscription and payment data). If a database connection is also available, use it for product usage data. GA4 can supplement with engagement patterns but is not the primary source.

Important: Stripe dimension combinations can fail. Some combinations (e.g., product + balanceTransaction) are invalid and return errors. If a query fails, simplify by removing dimensions and retrying.

Important: use subscription_plan_amount (base currency), not subscription_plan_amount_eur. Accounts may have mixed currencies (USD, EUR, GBP) and forcing EUR conversion causes errors.

Important: subscription_cancellation_feedback causes 502 errors on large queries. Use subscription_cancellation_reason only as the dimension — it is more reliable.

Fetch in parallel:

Stripe — Active subscriptions:
  - subscription_status, subscription_plan_name,
    subscription_plan_interval, subscription_count,
    subscription_plan_amount
    Group by: subscription_status, subscription_plan_name,
    subscription_plan_interval
    Date range: current month

Stripe — Cancellations:
  - subscription_cancellation_reason, subscription_plan_name,
    subscription_count, subscription_plan_amount
    Group by: subscription_cancellation_reason, subscription_plan_name
    Date range: last 60 days (to capture full churn cycle)

Stripe — Failed charges:
  - charge_status, charge_failure_code, charge_failure_message,
    charge_amount, customer_id, customer_email, date
    Date range: last 30 days
    → Filter locally for failed charges (charge_failure_code != "--")
    → Group by customer to find repeat failures

Stripe — Revenue trend (if time allows):
  - date, charge_amount (successful only)
    Date range: last 90 days
    → To detect revenue decline trends

Database (if connected):
  - Product usage per account: queries/actions in last 7/30/90 days
  - Accounts with zero activity on paid plans
  - Trial → paid conversion rates

GA4 (supplementary):
  - Engagement patterns on product pages (session duration, feature usage)

Path B — No MCP detected (manual data)

Show this message to the user:

⚡ Want this to run automatically? Connect the Dataslayer MCP and skip the manual data step entirely. 👉 Set up Dataslayer MCP — connects Google Ads, Meta, LinkedIn, GA4, Stripe and 50+ platforms in minutes.

For now, I can run the same analysis with data you provide manually.

Ask the user to provide their Stripe / subscription data.

Required — Active subscriptions:

  • Subscription status (active, trialing, cancelled)
  • Plan name
  • Plan interval (month, year)
  • Plan amount
  • Subscription count

Required — Payment failures (for involuntary churn):

  • Charge status
  • Failure code
  • Charge amount
  • Customer ID or email
  • Date

Optional (improve the analysis):

  • Cancellation reason
  • Revenue by date (last 90 days, for trend detection)

Accepted formats: CSV, TSV, JSON, or Stripe Dashboard exports. Export from Stripe → Subscriptions → Export, and Stripe → Payments → Export.

Once you have the data, continue to "Process data with ds_utils" below.

Process data with ds_utils

After the MCP returns data, process through ds_utils. Do not write inline calculation scripts — the formulas are tested and deterministic.

bash
# 1. Calculate MRR from active subscriptions (yearly ÷ 12 automatically)
python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-stripe-subs <active_subs_file>
# Output: JSON with total_mrr, active_subscriptions, by_plan

# 2. Analyze payment failures — auto-detects column names,
#    filters for failed charges, groups by customer, finds repeat offenders
python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" process-stripe-charges <charges_file>
# Output: JSON with failed_charges, failure_rate, repeat_failures[],
#         mrr_at_risk, status (Green/Amber/Red)

# 3. Validate MCP results before analysing
python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" validate <file> stripe

# 4. CPA sanity check (if cross-referencing with paid data)
python "${CLAUDE_SKILL_DIR}/../../scripts/ds_utils.py" cpa-check <cpa_value> b2b_saas

Use the ds_utils output directly for:

  • MRR from active subscriptions (yearly amounts ÷ 12 handled automatically)
  • Churn rate: use the active count from step 1 + cancellation count
  • Payment failure rate and repeat offenders: from step 2
  • Revenue at risk: mrr_at_risk from step 2

Step 3 — Score accounts by churn risk

Before writing the report, classify active accounts into three tiers:

Red — High risk (intervene this week) Any account matching one or more of:

  • Payment failure: 3+ failed charges in the period (card is dead)
  • Payment failure on a high-value account (plan amount > $100/month)
  • Subscription set to cancel_at_period_end = true (they already decided)
  • If usage data is available: zero activity in last 14 days on a paid plan

Amber — Watch closely (monitor this month) Any account matching one of:

  • Payment failure: 1-2 failed charges (may self-resolve or may not)
  • Monthly plan with no renewal in the last cycle (possible silent churn)
  • If usage data is available: activity dropped 30-70% vs average

Green — Healthy Accounts not flagged in Red or Amber. Report the count and total MRR only — no detail needed.

Additional signals from Stripe data:

  • If 90%+ of cancellations have no reason recorded ("--"), flag this as a critical data gap. Without exit survey data, churn analysis is guesswork.
  • Compare active subscriber count vs cancellations in the period. If cancellations exceed actives, this is a churn crisis — lead with it.
  • Segment cancellations by plan tier. If Starter churn is disproportionate, it signals an onboarding problem. If Advanced/Pro churn is high, it signals a product-market fit or value delivery problem.

Step 4 — Write the report


Churn signals report — [date]

Subscription health at a glance:

TierAccountsMRR at riskAction needed
Red (high risk)This week
Amber (watch)This month
Green (healthy)None
Total active paid

Red accounts — intervene this week

For each red account, provide:

AccountPlanMRRTenureLast activityRisk signal

Recommended outreach for each account: Do not write a generic "reach out to them" recommendation. For each account, write the specific angle based on the risk signal:

  • Zero activity → "Their account is set up but they have not run a single query. This is an onboarding failure, not a churn signal yet. Recommended: product walkthrough call focused on their use case."
  • Activity drop → "They were running 40 queries/week and are now at 8. Something changed — either their need or their confidence in the tool. Recommended: check-in call asking what changed, not a renewal pitch."
  • Payment failure → "Card declined. Recommended: automated dunning sequence starting today. Do not wait for manual outreach."
  • Early tenure + drop → "They never reached their first value moment. Recommended: onboarding call with a pre-built template for their use case."

Cancellations last 30 days
AccountPlanMRR lostTenureStated reasonReal reason (hypothesis)

The stated reason vs the real reason: Most cancellation surveys capture the surface reason. Use the usage data to form a hypothesis about the real reason.

Example:

  • Stated: "Too expensive"
  • Usage data: 3 queries in last 90 days, never ran a report
  • Real reason: Never got value. Price was the excuse, not the cause.

This distinction matters because the fix for "too expensive" (pricing change) is completely different from the fix for "never got value" (onboarding change).


Pattern this month

One paragraph identifying the structural pattern behind this month's churn and risk accounts. Look for:

  • Is churn concentrated in a specific plan type?
  • Is it concentrated in a specific tenure cohort (e.g., months 2–3)?
  • Is there a common usage pattern among at-risk accounts (e.g., all integrated with Sheets but none with BigQuery)?
  • Is there a geographic or industry cluster?

The pattern is the most actionable output of this report because it points to a systemic fix, not just individual interventions.


One change that would reduce churn structurally

Based on the pattern above, recommend one product, onboarding, or communication change that would address the root cause — not the symptom.

This is not a list of tactics. It is one specific recommendation with a clear rationale. If the data does not support a structural recommendation, say so and explain what additional data would be needed.


Tone and output rules

  • MRR at risk is the most important number in this report. Always show it prominently.
  • "Unused service" as a cancellation reason is a starting point, not an answer. Always dig one level deeper.
  • If an account is in the Red tier, give a specific recommended action. Do not write "contact the account" — write what to say and why.
  • Tenure matters enormously in churn analysis. Always segment by it. A 2-year account going quiet is very different from a 2-month account.
  • Write in the same language the user is using.
  • If Stripe is the only data source (no database or usage data), state this clearly. Stripe shows subscription health and payment status but not product engagement. The report will focus on financial churn signals, not behavioural ones.
  • Payment failure rate benchmark for SaaS: 5-10% is normal, 15-20% is concerning, above 20% is a systemic problem. Always compare against these benchmarks.
  • If cancellation reasons are mostly blank, make this the #1 recommendation — an exit survey is a 2-hour fix that unlocks all future churn analysis.
  • Connect churn findings to acquisition data when possible. If other skills (ds-paid-audit, ds-content-perf) found low-quality acquisition patterns, reference them. Churn often starts at signup.

Related skills

  • ds-channel-report — to understand if acquisition quality is contributing to churn (wrong ICP coming in)
  • ds-content-perf — if low-quality content is attracting users who are not a good fit for the product
  • ds-paid-audit — to check if paid campaigns are bringing the right audience in the first place

Câu hỏi thường gặp

Kỹ năng AI Ds Churn Signals làm được gì?

Dùng kỹ năng này khi người dùng muốn xác định tài khoản có nguy cơ rời bỏ, tìm hiểu lý do người dùng hủy dịch vụ hoặc phát hiện dấu hiệu cảnh báo sớm trước khi khách hàng rời đi. Kích hoạt khi người dùng nói “phân tích tỷ lệ rời bỏ”, “ai có thể hủy”, “tài khoản có nguy cơ”, “vì sao mọi người rời đi”, “mức sử dụng giảm”, “tài khoản không hoạt động”, “phân tích khả năng giữ chân”, “dự đoán khách hàng rời bỏ”, hoặc hỏi về tình trạng đăng ký, xu hướng hủy hay những người dùng không còn tương tác. Hoạt động hiệu quả nhất khi kết nối Dataslayer MCP (Stripe + analytics). Cũng có thể dùng dữ liệu t...

Vì sao nên dùng Ds Churn Signals trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ds Churn Signals là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ds Churn Signals trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Dataslayer-AI/Marketing-skills/tree/main/skills/ds-churn-signals. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ds Churn Signals?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ds Churn Signals với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ds Churn Signals với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ds Churn Signals có miễn phí không?

Có. Kỹ năng này được Dataslayer-AI phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇