- Home
- Skills
- Research & Analysis
- RFM Customer Segmentation: Find Champions and At-Risk Buyers
Works with the AI Agents you already use
RFM Customer Segmentation: Find Champions and At-Risk Buyers
Score every customer on recency, frequency and spend from a sales file, group them into named segments, and get a plain-English action plan for each.
$9
RFM Customer Segmentation: Find Champions and At-Risk Buyers
Example session with this skill installed
Here is my sales_full.csv. Segment my customers with RFM and tell me who my best customers are and who I am about to lose.
- Read your context and instructions
- Compiled the rfm customer segmentation
- Generated the data export
Summary
As of 2024-12-30, scored 63 customers with total spend of 4,055,758.52.
Highlights
- Champions: 16 customers generate 45.9% of revenue.
- At Risk plus Can't Lose Them: 434,028.40 in revenue (10.7%) sits with customers who have gone quiet.
Segments and actions
| Segment | What to do |
|---|---|
| Champions | Reward them, ask for referrals, offer early access |
| Loyal | Upsell and build a loyalty tier |
| At Risk | Personal win-back offer before they lapse |
| Can't Lose Them | Direct outreach from the owner, review what changed |
| Hibernating | Low-cost reactivation campaign |
Files produced
rfm_scores.csv, segment_summary.csv, rfm_report.md and rfm_segments.png.
Next steps
- Contact the At Risk and Can't Lose Them customers this week.
- Protect the 16 Champions with a thank-you offer.
- Re-run monthly to watch customers move between segments.
rfm_scores.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Know your best customers, and the ones you are about to lose
RFM Customer Segmentation reads a sales or orders file (CSV or Excel) and scores each customer on three things: how recently they bought (Recency), how often (Frequency) and how much they spend (Monetary).
What it does
- Scores 1 to 5 on each of R, F and M using quintiles
- Assigns named segments such as Champions, Loyal, Potential Loyalists, New, Need Attention, At Risk, Can't Lose Them, Hibernating and Lost
- Shows revenue by segment, so you see how concentrated your income is
- Suggests an action for each segment, for example win-back offers for At Risk and rewards for Champions
What you get
- rfm_scores.csv with every customer, their R, F, M values and segment
- segment_summary.csv with customers and revenue per segment
- rfm_report.md, a readable report with the action plan
- rfm_segments.png, a chart of the segments
Adjustable
The as-of date, column names and customer key are flags. Column detection uses common names; if yours differ, pass --customer-col, --date-col and --amount-col.
Honest by design
Segments are rules on your own data, not predictions. Small customer bases make quintiles coarse, and the report warns you.
Requirements
Python 3.9+ and pip install pandas openpyxl matplotlib.
Works great with
Retail Data Cleaner (clean the sales file first) and Retail KPI Pack.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Research & Analysis.
Minimum 50 customers recommended for meaningful segments. Guest checkouts without IDs are excluded. Requires transaction date, amount, and customer ID columns.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 4 days ago