← ClaudeAtlas

how-to-rfmlisted

Run a decision-first RFM customer segmentation with Claude + Python on any transaction history. Use when handed customer/order data and asked to "segment customers", "run RFM", "who are our best customers", "who is churning", "where should we spend retention/CRM budget", "find high-value customers", or before designing any lifecycle/loyalty/win-back campaign. Walks the 6-step pipeline - input, sample data (if none yet), objective, find-skills, code with real executed charts, expert review - and outputs segments ranked by dollar at stake with a budget recommendation.
phoebefu6/phoebe-data-skills · ★ 1 · Data & Documents · score 72
Install: claude install-skill phoebefu6/phoebe-data-skills
# how-to-RFM-using-claude-python Decision-first RFM: the output is a ranked budget recommendation - which segments to protect and which to win back, each with a dollar figure - not a table of scores. Showcase walkthrough (Everrest retail case, real executed charts): https://github.com/phoebefu6/phoebe-data-skills - `docs/how-to-rfm-using-claude-python/` ## The 6 steps ### 1. Input Collect the transaction tables (customers, orders, order_items or equivalent) and the business context - specifically the decision on the table (retention budget, win-back campaign, VIP program). RFM needs only: a customer key, an order timestamp, and an order value. Confirm the grain and pick the analysis reference date ("today"). ### 2. Sample data (only when real data isn't available yet) Write a seeded generator that draws each customer from a lifecycle archetype (champion, loyal, at-risk, can't-lose-them, hibernating, one-and-done...) so the segmentation has structure to recover. Plant patterns on purpose - whale concentration, high-value lapsers, a one-and-done acquisition channel, a promo cohort that never reactivated, a returns-heavy group - and keep a ground-truth label column to validate against. With real data, skip this. ### 3. Objective Frame ONE budget decision ("where should the CRM team spend Q3 retention budget, and who is quietly most valuable?") plus 3-5 sub-questions (value concentration, lapsing high-value customers, low-value channels, segment sizes, best next dollar). Ev