Agent skill

Afa Retain

by afadtc in afadtc/afa-dtc-skills

DTC 留存与 LTV 增长——留存体检、RFM+LTV 分层、微诚度、订阅防流失、召回。触发词: 留存, retention, 复购, LTV, 流失, churn, 会员, 订阅, win-back, RFM分层, repeat purchase, loyalty program, subscription retention。复杂问题先经 afa。

Custom licenceAuto-check passedMarketing & SEO

Install Afa Retain

skills CLI
$ npx skills add afadtc/afa-dtc-skills --skill afa-retain -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install afadtc/afa-dtc-skills afa-retain --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/afadtc/afa-dtc-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/afa-retain .claude/skills/afa-retain && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
afa-retain
GitHub stars
168
Token cost
~2.2k tokens
SKILL.md length
490 words
Files
12 (incl. references)
Skills in repo
31
Repo updated
First seen
Licence
Custom licence

At a glance

DTC 留存与 LTV 增长——留存体检、RFM+LTV 分层、微诚度、订阅防流失、召回。触发词: 留存, retention, 复购, LTV, 流失, churn, 会员, 订阅, win-back, RFM分层, repeat purchase, loyalty program, subscription retention。复杂问题先经 afa。

  • Works in 5 steps: Context Matrix (上下文矩阵) → Preamble & Visible Loading (启动协议) → Core Workflow → …
  • Tasks that involve Referral and retention marketing
  • SKILL.md covers 1. Context Matrix (上下文矩阵), 2. Preamble & Visible Loading…, 3. Core Workflow and 4. Completion Protocol, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Afa Retain is an agent skill from afadtc/afa-dtc-skills. DTC 留存与 LTV 增长——留存体检、RFM+LTV 分层、微诚度、订阅防流失、召回。触发词: 留存, retention, 复购, LTV, 流失, churn, 会员, 订阅, win-back, RFM分层, repeat purchase, loyalty program, subscription retention。复杂问题先经 afa。

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including reference files (for example `references/anti-patterns.md`, `references/benchmark-data.md` and `references/cohort-analysis-guide.md`).

It sits in Marketing & SEO, covering Referral and retention marketing. The repository describes itself as: 做了十年独立站,操盘超1亿美金预算,我把我自己蒸馏成了31 个独立站AI顾问。这是一套面向独立站与 DTC 品牌的全链路增长顾问 Skill 系统,覆盖诊断、选品、品牌、广告投放、CRO、留存、运营与规模化增长等模块。【作者:1亿美刀站长阿发】.

When your agent uses it

  • Tasks that involve Referral and retention marketing

Example prompts

  • “/afa-retain”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Context Matrix (上下文矩阵)
  2. Preamble & Visible Loading (启动协议)
  3. Core Workflow
  4. Completion Protocol
  5. 边界与越界处理

What it can do on your machine

Read from SKILL.md and the folder at commit e4edb28. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Afa Retain loads about 2.2k tokens when it runs, and up to ~34k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 490 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~34k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 490 words (~2,233 tokens).

name
afa-retain

Read the full SKILL.md on GitHub

Files

SKILL.md and 11 other files (references) in skills/afa-retain of afadtc/afa-dtc-skills.

  • SKILL.md
  • references/anti-patterns.md
  • references/benchmark-data.md
  • references/cohort-analysis-guide.md
  • references/core-frameworks.md
  • references/diagnostic-system.md
  • references/loyalty-program-playbook.md
  • references/report-templates.md
  • references/rfm-ltv-framework.md
  • references/subscription-management.md
  • references/win-back-workflows.md
  • references/work-modes-and-templates.md

Open the folder on GitHubat commit e4edb28

Compare with similar skills

Afa Retain next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Afa Retain compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Afa Retain this skillafadtc/afa-dtc-skills168—~2.2kAutomated safety check: PassCustom licence
Referralscoreyhaines31/marketingskills54k2 repos~2.6kAutomated safety check: PassMIT
Referral Programfreekmurze/dotfiles1k17 repos~1.8kAutomated safety check: PassNone
Churn Preventionrongxinzy/RongxinAI1543 repos~2.6kAutomated safety check: PassMIT
100m Leadsgetagentseal/founder-playbook729—~2.3kAutomated safety check: PassMIT
Churn Preventionfreekmurze/dotfiles1k13 repos~4.4kAutomated safety check: PassNone

Similar skills

  • Referrals

    coreyhaines31/marketingskills

    When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy.

    54k GitHub starsUsed in 2 repos~2.6k tokens
    Marketing & SEOAuto-check passed
  • Referral Program

    freekmurze/dotfiles

    When the user wants to create, optimize, or analyze a referral program, affiliate program, or word-of-mouth strategy.

    1k GitHub starsUsed in 17 repos~1.8k tokens
    Marketing & SEOAuto-check passed
  • Churn Prevention

    rongxinzy/RongxinAI

    Reduce voluntary and involuntary churn through cancel flow design, save offers, exit surveys, and dunning sequences.

    154 GitHub starsUsed in 3 repos~2.6k tokens
    Marketing & SEOAuto-check passed
  • 100m Leads

    getagentseal/founder-playbook

    Builds lead generation systems using Alex Hormozi's Core Four framework (warm outreach, content, cold outreach, paid ads), lead magnets, and Rule of 100.

    729 GitHub stars~2.3k tokensUpdated 3 days ago
    Marketing & SEOAuto-check passed
  • Churn Prevention

    freekmurze/dotfiles

    When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies.

    1k GitHub starsUsed in 13 repos~4.4k tokens
    Marketing & SEOAuto-check passed
  • Sms

    coreyhaines31/marketingskills

    When the user wants to plan, build, or optimize SMS, MMS, or WhatsApp marketing — including welcome flows, abandoned cart texts, post-purchase, win-back, promotional sends, or transactional/auth SMS.

    54k GitHub starsUsed in 1 repo~4.6k tokens
    Marketing & SEOAuto-check passed

More from afadtc/afa-dtc-skills

All 31 skills in this repo
  • Afa Aov

    afadtc/afa-dtc-skills

    DTC 客单价与利润优化——捆绑、Upsell/Cross-sell、定价心理学、免邮门槛。触发词: 客单价, AOV, upsell, cross-sell, 捆绑, bundle, 定价, 免邮门槛, average order value, free shipping threshold。复杂问题先经 afa。

    168 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • Afa Convert

    afadtc/afa-dtc-skills

    DTC 转化率优化——结账优化、弃单挽回、落地页、A/B测试、信任与无障碍。触发词: 转化率, CRO, 加购, 结账, 弃单, 落地页, A/B测试, 转化漏斗, conversion rate, abandoned cart, checkout optimization, landing page, a/b test, add to cart。复杂问题先经 afa。

    168 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Afa Dashboard

    afadtc/afa-dtc-skills

    DTC 数据仪表盘与体检——三层看板、KPI 追踪、北极星、异常预警。触发词: 数据体检, 仪表盘, dashboard, KPI, 指标追踪, 基准线, 营收报表, 异常预警, metrics, benchmark, data health check, revenue report。复杂问题先经 afa。

    168 GitHub stars~2.2k tokensUpdated 2 days ago
    Auto-check passed
  • Afa Expand

    afadtc/afa-dtc-skills

    DTC 渠道扩张与多元化——多市场、亚马逊、批发、国际化合规、关税落地成本。触发词: 扩张, expansion, 新市场, 亚马逊, 多渠道, 国际化, wholesale, 批发, MEURO, new market, amazon expansion, international expansion, tariffs, landed cost。复杂问题先经 afa。

    168 GitHub stars~2.5k tokensUpdated 2 days ago
    Auto-check passed
  • Afa Ops

    afadtc/afa-dtc-skills

    DTC 运营与供应链——仓储物流、库存、3PL、发货时效、供应商、关税成本。触发词: 运营, operations, 供应链, 仓储, 物流, 库存, 3PL, 履约, 供应商, supply chain, fulfillment, inventory management, shipping times。复杂问题先经 afa。

    168 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Afa Payments

    afadtc/afa-dtc-skills

    DTC 支付风控与争议率——VAMP 自查、chargeback 反驳、Stripe/PayPal 冻结应对、支付组合、欺诈过滤。触发词: 争议率, chargeback, 拒付, VAMP, Stripe 冻结, PayPal 冻结, Rolling Reserve, 3DS, BNPL, dispute rate, frozen account, Stripe, PayPal。复杂问题先经…

    168 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Afa Retain

What does Afa Retain do?

DTC 留存与 LTV 增长——留存体检、RFM+LTV 分层、微诚度、订阅防流失、召回。触发词: 留存, retention, 复购, LTV, 流失, churn, 会员, 订阅, win-back, RFM分层, repeat purchase, loyalty program, subscription retention。复杂问题先经 afa。. Afa Retain is an agent skill from afadtc/afa-dtc-skills.

When should I use Afa Retain?

Afa Retain fits situations like: tasks that involve Referral and retention marketing.

How do I install Afa Retain in Claude Code?

Run `npx skills add afadtc/afa-dtc-skills --skill afa-retain -a claude-code`. Or copy the skill folder (skills/afa-retain in afadtc/afa-dtc-skills) into .claude/skills/afa-retain in your project. Claude Code loads it when a task matches its description.

How do I install Afa Retain in Codex?

Run `npx skills add afadtc/afa-dtc-skills --skill afa-retain -a codex`. Or copy the skill folder (skills/afa-retain in afadtc/afa-dtc-skills) into .agents/skills/afa-retain in your project. Codex loads it when a task matches its description.

Can I use Afa Retain in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add afadtc/afa-dtc-skills --skill afa-retain -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/afa-retain, .gemini/skills/afa-retain, .github/skills/afa-retain and .opencode/skills/afa-retain in your project.

What does Afa Retain need to run?

SKILL.md names no scripts, command-line tools or credentials: Afa Retain is instructions for the agent only.

Does Afa Retain access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Afa Retain safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Afa Retain use?

Afa Retain has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Afa Retain use?

About 2.2k tokens (SKILL.md is roughly 8.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 32k tokens, read only when the agent opens those files.

What are the alternatives to Afa Retain?

Skills that share tags, products or a category with Afa Retain: Referrals (coreyhaines31/marketingskills, 54k stars), Referral Program (freekmurze/dotfiles, 1k stars), Churn Prevention (rongxinzy/RongxinAI, 154 stars) and 100m Leads (getagentseal/founder-playbook, 729 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Afa Retain?

afadtc (a GitHub user) maintains it in afadtc/afa-dtc-skills, which has 168 GitHub stars. The repository holds 31 skills in this directory. The repository was last updated on October 8, 2026.

Source: afadtc/afa-dtc-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.