Kai Retention logo

Kai Retention

Community
cgallic
kai-retention

Customer retention system — churn analysis, retention tactics, loyalty programs, and engagement scoring. Use when "retention", "reduce churn", "keep customers", "loyalty program", "customer retention", "churn prevention", "churn analysis", "engagement scoring", "win-back", "customer lifetime value", or any request to analyze, prevent, or reduce customer churn.

Overview

Publishercgallic
Repositorykai-cmo-harness
Skill namekai-retention
Stars
61
Forks
8
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by cgallic on GitHub. Read the source before you install it.

Installation

Install the Kai Retention AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cgallic/kai-cmo-harness/tree/main/harness/skills-v2/kai-retention
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cgallic/kai-cmo-harness.git /tmp/kai-cmo-harness
mkdir -p .claude/skills
cp -r /tmp/kai-cmo-harness/harness/skills-v2/kai-retention .claude/skills/kai-retention
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kai Retention in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kai Retention on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kai Retention is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Objective

A retention system the business can run: a churn diagnosis that names which churn type is actually costing money, an engagement health score with defined signals and thresholds, intervention playbooks per risk tier, a win-back sequence, involuntary-churn prevention, and a 90-day implementation roadmap with the metrics to watch.

Diagnose before prescribing. A loyalty program aimed at voluntary churn does nothing when the real leak is failed payments, and a dunning sequence does nothing when customers leave in week three because onboarding never delivered value.

Done when

Work type strategy-plan — floor E3/C3/O1 (harness/eco-floors.yaml). The system is a plan; nothing leaves the workspace until a human sends it.

  • E3 — a named human approved the retention playbook, the engagement scoring spec, and the email sequences.
  • C3 — banned_word_check clean on all customer-facing copy, every email sequence at 10+/16 on Four U's, and a non-author read the system end to end. Max 2 auto-retry cycles on gate failures for email content.
  • O1 — the plan names its metric with baseline, threshold, window, and owner: monthly churn rate, cohort retention curve, health score distribution, NPS trend, and expansion versus contraction revenue.

Sending any sequence is separate work under email-lifecycle (E5/C3/O3), where unsubscribe and sender-identity compliance is a C4 field-standard item, not a lint.

Constraints

  • Read MARKETING.md from the project root first. If it does not exist, build it from the codebase — CLAUDE.md, README.md, PROJECT.md, package.json, landing pages, email/ad/analytics config — using the template from /kai-email-system, and confirm the draft. Do not ask the user what the product is.
  • Seven things must be known before diagnosis: business model (SaaS, ecommerce, services, marketplace); current churn rate; customer count and average revenue per customer; retention efforts already running; known churn reasons from exit surveys, support tickets, or the cancellation flow; whether product usage and feature adoption are tracked; and customer segments (free vs. paid, plan tiers, cohorts).
  • No banned Tier 1 words in any customer-facing copy.
  • Win-back emails comply with CAN-SPAM — see harness/references/cold-email-rules.md.
  • Loyalty rewards must not erode margins below profitability. Redemption options drive retention, not margin destruction.
  • Discounts in rescue plays cap at 20% unless the user approves higher, and all email sequences target 10+/16 on Four U's before they count as deliverable.
  • Match the prescription to the maturity level. Predictive churn scoring proposed to a Level 0 business is a plan that never gets built.
LevelCurrent state
0No retention effort beyond the product itself
1Basic cancellation flow plus occasional check-in emails
2Lifecycle emails, usage tracking, support triggers
3Predictive churn scoring, proactive intervention, loyalty program

Context

NeedLoad
Retention mechanics, churn tactics, loyalty designknowledge/playbooks/customer-retention.md
Retention as a growth loopknowledge/playbooks/growth-loops-applied.md
Lifecycle email structure and triggersknowledge/channels/email-lifecycle.md
Which persona is churningknowledge/personas/_persona-index.md
CAN-SPAM compliance for win-back sendsharness/references/cold-email-rules.md
Lifecycle email format contract and gate minimumsharness/skill-contracts/email-lifecycle.yaml
Product, ICP, voice, current channelsMARKETING.md (project root)

Churn types — separate them before proposing anything. Voluntary: the customer actively cancels (dissatisfaction, budget, switched). Involuntary: payment failure, expired card, billing issue. Passive: stops using without cancelling (ghost users).

Churn timeline — most exits cluster: first 30 days (onboarding failure), 60–90 days (value not realized), at renewal (annual decision point), or after a price increase or feature change. Leading indicators: login frequency decline, feature usage drop, support ticket spike, NPS/CSAT decline, billing page visits.

Engagement score (0–100) — the rubric:

SignalWeightScoring
Login frequency (last 14 days)25%Daily=100, Weekly=60, Monthly=20, None=0
Core feature usage25%Used all=100, Used some=50, Used none=0
Support interactions15%Positive=80, Neutral=50, Negative=20
Account expansion signals15%Upgraded=100, Stable=50, Downgraded=10
Referral/advocacy10%Referred=100, NPS promoter=60, Passive=30
Billing health10%Current=100, Late=30, Failed=0

Risk tiers and the play for each:

TierScorePlay
Red0–39Immediate rescue: personal outreach within 24 hours, a concession (discount, extended trial, premium support), escalation to customer success, win-back sequence
Yellow40–69Proactive nurture: usage tips for unused features, office hours or webinar invite, relevant case study, a short feedback survey (not NPS)
Green70–100Expansion and advocacy: referral or testimonial request, early access, advisory board or beta invite, relevant cross-sell or upsell

Win-back for already-churned customers: a 3-email sequence at Day 1, Day 7, Day 30, each addressing a different churn reason, each carrying a specific offer or product update.

Involuntary churn prevention: a dunning sequence of 3–5 emails over 14 days, smart retry logic for failed payments, and a card-update reminder before expiration.

Loyalty program, where the model supports one: reward mechanics (points, tiers, milestones, or referral credits), earning actions mapped to business goals, redemption options that drive retention, and a launch communication plan.

Gates, on every email file:

bash
python scripts/quality_gates/banned_word_check.py <file>
python scripts/quality_gates/four_us_score.py <file>

Escalate when

  • Churn rate, cohort data, or usage data is unavailable and the diagnosis would be guesswork.
  • The stated churn reason from the user conflicts with what exit surveys or support tickets show.
  • A rescue play needs a discount above 20%.
  • The proposed loyalty mechanics would push unit economics negative.
  • Churn is driven by the product rather than by marketing — say so; a retention campaign cannot fix broken onboarding.
  • Win-back targets contacts whose consent basis or suppression status is unclear.

Frequently asked questions

What does the Kai Retention AI skill do?

Customer retention system — churn analysis, retention tactics, loyalty programs, and engagement scoring. Use when "retention", "reduce churn", "keep customers", "loyalty program", "customer retention", "churn prevention", "churn analysis", "engagement scoring", "win-back", "customer lifetime value", or any request to analyze, prevent, or reduce customer churn.

Why use Kai Retention on TypingMind?

Because you install it once and use it with any model. Kai Retention is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kai Retention in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cgallic/kai-cmo-harness/tree/main/harness/skills-v2/kai-retention. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kai Retention?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kai Retention?

As many as you like. As long as a model supports skills, you can use Kai Retention with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kai Retention AI skill free?

It is published on GitHub by cgallic. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇