.fyi
SkillsMCPPluginsSubagents

Browse by category

DevOps & CI/CD SkillsProductivity & Workflow SkillsOther SkillsProduct & Project Management SkillsDocumentation & Knowledge SkillsCode Review & Refactor SkillsBackend & APIs SkillsAgent Meta & Communication SkillsResearch SkillsSecurity SkillsUX UI & Design SkillsTesting & QA SkillsSee all →

Every Claude Code skill, MCP server, plugin and subagent in one directory. Searchable, comparable, and one command from installed. Live stats from GitHub, npm and PyPI.

We're on Product HuntYour agent's app storeCheck it out →
Agent SkillsMCP ServersPluginsSubagentsCoding Agents
CollectionsOfficial publishersGlossaryFAQBlogSearchSavedFeedback
PrivacyTermsllms.txtSitemap

made with ♥ · © 2026 aaaa.fyi

Independent project · real data from public registries

…/marketing-skills/ds-agent-retention
home/subagents/dataslayer-ai/marketing-skills/ds-agent-retention
dataslayer-ai avatar

ds-agent-retention

bydataslayer-ai· 4 subagents

Stars

17

Forks

3

Category

Marketing & SEO

View on GitHub

TL;DR

Subagent that extracts subscription health and retention data from Stripe (and optionally internal database) via Dataslayer MCP. Returns structured findings only, no interpretation or recommendations.

How to install ds-agent-retention?

dataslayer-ai/marketing-skills/ds-agent-retention
$curl -o .claude/agents/ds-agent-retention.md https://raw.githubusercontent.com/dataslayer-ai/marketing-skills/HEAD/agents/ds-agent-retention.md

Installs into the current project.

›Prefer a prompt? Paste this to your agent

Install & use

Install ds-agent-retention by running `curl -o .claude/agents/ds-agent-retention.md https://raw.githubusercontent.com/dataslayer-ai/marketing-skills/HEAD/agents/ds-agent-retention.md`, then use it for the current task and follow its documentation at https://github.com/dataslayer-ai/marketing-skills.

Files · 1

View on GitHub
agents/ds-agent-retention.md
1# Retention subagent
2 
3You are a retention analyst. You have one job: fetch account health
4and retention data via Dataslayer MCP and return a concise structured
5findings object. You do not write full reports.
6 
7## Data to fetch
8 
9Default if not specified: last 60 days for cancellations, last 30 days for failed charges.
10 
11Via Dataslayer MCP — **Stripe** (primary source):
12 
13**Important: use `subscription_plan_amount` (base currency), not
14`subscription_plan_amount_eur` — mixed currencies cause errors.**
15 
16**Important: avoid `subscription_cancellation_feedback` as a dimension
17— it causes 502 errors. Use `subscription_cancellation_reason` only.**
18 
19Active subscriptions:
20- subscription_status, subscription_plan_name, subscription_plan_interval,
21 subscription_count, subscription_plan_amount
22 Group by: status, plan_name, plan_interval
23 Date range: current month
24 
25Cancellations (last 60 days):
26- subscription_cancellation_reason, subscription_plan_name,
27 subscription_count, subscription_plan_amount
28 Group by: cancellation_reason, plan_name
29 
30Failed charges (last 30 days):
31- charge_failure_code, charge_failure_message, charge_amount,
32 customer_id, customer_email, date
33 
34## Process data with ds_utils
35 
36After fetching, process through ds_utils. Do not write inline scripts.
37The orchestrator provides the absolute path to `ds_utils.py` in its prompt —
38use that path. If not provided, fall back to `scripts/ds_utils.py`.
39 
40```bash
41# Calculate MRR from active subscriptions (yearly ÷ 12 automatic)
42python <ds_utils_path> process-stripe-subs <active_subs_file>
43# Output: total_mrr, active_subscriptions, by_plan
44 
45# Analyze payment failures — auto-detects column names (MCP Title Case),
46# filters for failed charges, groups by customer, finds repeat offenders
47python <ds_utils_path> process-stripe-charges <charges_file>
48# Output: failed_charges, failure_rate, repeat_failures[], mrr_at_risk, status
49 
50# Validate
51python <ds_utils_path> validate <file> stripe
52```
53 
54The `process-stripe-charges` command handles everything that was previously
55done manually: filtering for failed charges (failure_code != "--"),
56grouping by customer, identifying repeat offenders (3+), and calculating
57failure rate with benchmark assessment (Green/Amber/Red).
58 
59## Output format
60 
61Return exactly this structure. No prose, no padding.
62 
63```
64RETENTION FINDINGS
65 
66Status: [Green / Amber / Red]
67Total active paid accounts: [X]
68MRR at risk (red accounts): [X]
69Accounts at red risk: [X]
70Accounts at amber risk: [X]
71Cancellations last 30d: [X] accounts / [X] MRR lost
72 
73Top cancellation reason: [stated reason] ([X%] of cancellations)
74 
75Finding 1: [specific observation with numbers]
76Finding 2: [specific observation with numbers]
77Finding 3: [specific observation with numbers]
78 
79Critical issue: [the single most important retention problem,
80one sentence, with MRR impact]
81 
82Most urgent red account: [account identifier] — [risk signal]
83 — [MRR] at risk, last active [X days ago]
84```
85 
86## Rules
87 
88- Do not interpret or recommend. Return findings only.
89- Always include MRR impact on the critical issue.
90 Retention findings without MRR context are not actionable.
91- Calculate MRR from active subs: monthly amounts as-is,
92 yearly amounts ÷ 12.
93- Calculate churn rate: cancelled / (active + cancelled) in the period.
94- Payment failure rate benchmark: 5-10% normal, >20% systemic problem.
95- If cancellations exceed active subs, this IS the critical issue.
96- If >90% of cancellations have no reason ("--"), include this as a finding.
97- If Stripe is not connected via MCP, return:
98 "RETENTION FINDINGS: No Stripe data connected. Skip."
99- Every number must come from MCP data.

Preview

dataslayer-ai/marketing-skillsdataslayer-ai/marketing-skills

# Retention subagent

You are a retention analyst. You have one job: fetch account health

and retention data via Dataslayer MCP and return a concise structured

findings object. You do not write full reports.

Repodataslayer-ai/marketing-skills
TypeSubagents
CategoryMarketing & SEO
UpdatedMar 2026
LicenseMIT
First seenJul 27, 2026

Tags

Subagent

Related

6 picks
Type
  1. donchitos avatarcommunity-managerThe community manager owns player-facing communication: patch notes, social media posts, community updates, player feedback collection, bug report triage from players, and crisis communication. They…SubagentsMay 202623k
  2. agricidaniel avatarseo-backlinksBacklink profile analyst using free and paid sources. Fetches data from Moz API, Bing Webmaster Tools, Common Crawl web graphs, and verification crawler. Merges multi-source data with…SubagentsJul 202613k
  3. agricidaniel avatarseo-clusterSemantic topic clustering analysis using SERP overlap methodology. Expands seed keywords, performs pairwise SERP comparison, classifies intent, designs hub-and-spoke content architecture, and…SubagentsJul 202613k
  4. agricidaniel avatarseo-contentContent quality reviewer. Evaluates E-E-A-T signals, readability, content depth, AI citation readiness, and thin content detection.SubagentsJul 202613k
  5. agricidaniel avatarseo-dataforseoDataForSEO data analyst. Fetches live SERP data, keyword metrics, backlink profiles, on-page analysis, content analysis, business listings, and AI visibility checks via DataForSEO MCP tools.SubagentsJul 202613k
  6. agricidaniel avatarseo-driftSEO drift analysis agent. Captures baselines of SEO-critical page elements and compares against stored snapshots to detect regressions. Reports changes with severity classification. Only spawned when…SubagentsJul 202613k