Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Find Churning Customers & VIP Buyers from Raw Order CSVs

    1

    Local RFM segmentation and churn risk analysis for e-commerce CSV exports with HTML retention email generation.

    $10

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Find Churning Customers & VIP Buyers from Raw Order CSVs

    Find Churning Customers & VIP Buyers from Raw Order CSVs

    Example session with this skill installed

    Analyze the customers in data/orders_q3.csv and give me a retention plan for high-value customers at risk of churning.

    • Read your context and instructions
    • Compiled the find churning customers
    • Generated the UI component

    I have analyzed orders_q3.csv using the RFM engine. The analysis processed 1,420 unique customers and identified a significant segment of high-value buyers who have not purchased in over 60 days.

    RFM Segmentation Summary

    SegmentCustomer CountAvg. Monetary ValueChurn Risk
    Champions142$840.50Low
    Loyal Customers310$420.25Low
    At Risk (High Value)85$615.00High
    About to Sleep240$150.75Moderate
    Hibernating643$45.20Very High

    High-Value At-Risk Customers

    These customers have high frequency and monetary scores but haven't placed an order recently:

    • user_9921: Total Spend $1,240 | Last Order: 72 days ago
    • user_4430: Total Spend $980 | Last Order: 68 days ago
    • user_1102: Total Spend $855 | Last Order: 90 days ago

    Retention Campaign Template

    <div style="font-family: sans-serif; padding: 20px; border: 1px solid #eee;">
      <h2>We've Missed You!</h2>
      <p>As one of our valued customers, we noticed it has been a while since your last visit.</p>
      <p>Use code <strong>RECLAIM20</strong> for 20% off your next order.</p>
      <a href="https://store.com/shop" style="background: #000; color: #fff; padding: 10px 20px; text-decoration: none;">Shop Now</a>
    </div>
    

    Next steps

    1. Export the list of 85 "At Risk" IDs to a CSV for your email service provider.
    2. Update the HTML template with your specific store URL and branding.
    3. Schedule a follow-up analysis in 30 days to track segment movement.

    orders_q3.csv

    TSX · React component

    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

    Manual customer analysis takes hours and sensitive data often ends up in third-party clouds. This skill performs local RFM segmentation and churn prediction directly on your CSV exports without sending PII to external APIs.

    What it does

    • RFM segmentation Categorizes customers into groups like Champions, Loyal, and Hibernating based on purchase behavior.
    • Churn prediction Identifies high-value buyers at risk of leaving based on recency and frequency decay.
    • Local processing Runs analytics 100% locally to keep revenue and customer data on your machine.
    • Campaign generation Produces ready-to-use HTML retention email templates for specific segments.
    • Format detection Handles raw transaction logs or pre-aggregated customer tables automatically.

    How it works

    1. Identify source Point the agent to your customer or transaction CSV file.
    2. Execute engine The agent runs the zero-dependency Python analyzer script on your local file.
    3. Analyze report The tool parses the resulting JSON for segment distributions and churn risks.
    4. Present findings You receive an executive summary table and a customizable HTML retention offer.

    Frameworks & tools

    This skill uses a zero-dependency Python script compatible with any standard Python environment. It handles CSV parsing for comma or semicolon delimiters.

    Why this beats prompting it yourself

    Generic prompts often hallucinate math or struggle with large CSV structures. This skill uses a deterministic script to ensure RFM scores are calculated accurately while keeping sensitive data off-platform.

    Use cases

    • Identify top-tier customers who haven't purchased in the last 90 days.
    • Prepare a distribution report of buyer personas for a monthly business review.
    • Generate personalized discount code emails for the "At Risk" customer segment.
    • Audit raw transaction logs to find the highest-spending loyalists.

    Known limitations

    Requires a Python environment to execute the local script. Does not support direct database connections; data must be exported to CSV first.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for E-commerce.

    Requires local Python environment. Only supports CSV inputs. Does not connect directly to live databases.

    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 5 days ago

    Software
    Python 3.8+

    Permissions

    Terminal / Shell
    Read Files
    Listed5 days ago
    Updated1 day ago

    What's inside

    Frequently Asked Questions

    The skill performs all RFM (Recency, Frequency, Monetary) calculations locally on your machine, ensuring that sensitive customer PII and revenue data are never uploaded to cloud-based LLMs or external servers.

    You receive the core logic for the RFM engine, the Python-based analyzer script, and the pre-configured instructions to help your AI agent execute the local data processing and HTML generation.

    Yes, the engine is designed to handle raw transaction logs (one row per sale) or pre-aggregated customer files, automatically detecting and processing the data into segments like 'Champions' or 'At Risk.'

    This skill is compatible with any AI agent that supports local code execution and file system access, as it relies on a zero-dependency Python environment to ensure mathematical accuracy.

    The skill provides a summarized table of segment distributions and a fully-coded HTML email template featuring targeted offers tailored specifically for your 'Hibernating' or 'At Risk' customer groups.

    New in E-commerce