Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    RFM Customer Segmentation: Find Champions and At-Risk Buyers

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    RFM Customer Segmentation: Find Champions and At-Risk Buyers

    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

    SegmentWhat to do
    ChampionsReward them, ask for referrals, offer early access
    LoyalUpsell and build a loyalty tier
    At RiskPersonal win-back offer before they lapse
    Can't Lose ThemDirect outreach from the owner, review what changed
    HibernatingLow-cost reactivation campaign

    Files produced

    rfm_scores.csv, segment_summary.csv, rfm_report.md and rfm_segments.png.

    Next steps

    1. Contact the At Risk and Can't Lose Them customers this week.
    2. Protect the 16 Champions with a thank-you offer.
    3. Re-run monthly to watch customers move between segments.

    rfm_scores.csv

    CSV · data export

    Generated

    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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Permissions

    Terminal / Shell
    Write Files
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    You need a CSV file containing at least three columns: unique Customer IDs, Transaction Dates, and Order Values. The skill is designed to handle raw transaction logs without requiring pre-aggregation.

    Unlike simple prompts that often guess at tiers, this skill uses a dedicated Python engine to perform precise quintile-based ranking. This ensures your segments are mathematically accurate and account for the specific distribution of your store's data.

    You will receive the core RFM processing script, a standardized segment taxonomy guide, and a template for the marketing strategy report. These assets are yours to use across multiple datasets or client projects.

    While the skill is highly automated, it is designed for compatibility with any AI agent capable of executing Python scripts or data analysis tasks, such as ChatGPT Plus (Advanced Data Analysis) or Claude Analysis Tooling.

    The skill identifies 11 distinct tiers, including Champions (top spenders), At Risk (declining loyalty), and Hibernating (long-term inactive), providing a full 360-degree view of your customer lifecycle.

    Yes, the skill is designed to process your data locally within your AI agent's environment. Your raw transaction logs are analyzed in the session and are not transmitted to any external third-party servers.

    New in Research & Analysis