Skills · Sales and offers · Customer Segments (RFM)

Claude Code Skill for RFM Customer Segmentation

A Claude Code skill that turns your sales history into 8 customer segments, scoring every customer on recency, frequency and spend, with a suggested next move for each group. Built for retail, clinics, restaurants, e-commerce and the agencies that serve them.

Coming soon. Join the waitlist and we will tell you the day it is live.

Revenue tells you how much, not who

Every business with a register already has a customer history sitting in its POS, booking system or online store. Very few use it to answer the questions that drive next month: which customers carry the revenue, which ones are drifting away, and which ones just arrived and could grow.

When the question comes up, someone exports the data, builds a pivot table and delivers an answer that depends on how they felt that afternoon. Refunds sneak into the totals, one customer shows up under two records, and nobody fully trusts the result. Next quarter the work starts over with a different approach.

Agencies feel this even more. Every client runs a different system with a different export, so a customer base review becomes a custom project each time, and the client gets reports that cannot be compared from one period to the next.

How to do RFM customer segmentation with Claude Code

The workflow is built for decision makers, not programmers. Your team touches it at three points.

01

Your team sends the export

An xlsx or csv straight from your system. Column names in English or Portuguese are detected, and the skill asks the essentials in one round.

02

Someone approves the plan

Before anything runs, Claude shows what it read from the file and waits for a go. Unclear data becomes a question, never a guess.

03

You get the deliverables

A working spreadsheet for the sales or front desk team and a short summary of where revenue sits and what to do first.

Example: a coffee roaster with an online shop

A small specialty coffee roaster sells bags and subscriptions through its online store. The owner exports two years of orders: customer email, order date and order total, a few thousand rows with refunds mixed in. She wants to know who gets the early invite to a limited release and who should hear from her before they quietly stop ordering.

She points Claude Code at the file, answers the opening questions and approves the plan. What comes back:

What you get
  • a spreadsheet with every customer scored and segmented, ready to filter;
  • the size and revenue of each of the 8 segments;
  • a suggested next move for each segment;
  • a plain-text summary she can read in a few minutes.

Who this skill is built for

A good fit if...
  • customers buy from you more than once and every sale is tied to a customer record;
  • your base has at least a few dozen distinct customers;
  • you want a review you can rerun every quarter and compare;
  • you run an agency and need the same customer analysis for several clients.
Not a fit if...
  • your system only records daily totals with no customer attached;
  • you sell one-time purchases, like real estate or weddings, where repeat buying does not apply;
  • you want a promised return. The suggested moves are hypotheses to test on a small group first.

What is in the package and how to start

The package includes the skill instructions, a Python script that does the math, reference material and a sample data generator so your team can see the output before touching real customer data. The skill was tested on a 1,500-row sample before release.

It is not on sale in English yet. This page has a waitlist (Join the waitlist), and when it launches you will receive a zip with the skill folder. Install it the same way as any skill: unzip, copy the folder into .claude/skills/ in your project or user folder, and reopen Claude Code. Then just ask in plain English, like "segment the customers in this export".

Technical requirement: Python 3 with pandas and openpyxl on the machine that runs the analysis. Claude Code can walk you through installing them.

Manual spreadsheet work vs. automating customer segmentation with AI

The difference shows up in operations: less rework, one standard across clients and results you can compare over time.

By handWith the skill
Effort per reviewHours of pivot tablesOne request and one approval
ConsistencyChanges with whoever does itSame logic every time, comparable results
Messy dataErrors slip throughCleaned up and reported
Multiple agency clientsA new project each timeOne process for all of them
Next stepLeft for another meetingA suggested move per segment

Questions about Claude skills

What is a Claude Code skill for RFM customer segmentation?

It is a set of instructions plus a script that Claude Code uses whenever someone asks to analyze the customer base. Instead of improvising each time, it follows the same process, runs the math as code and returns the spreadsheet and summary in the same format.

Can I automate customer segmentation with AI without a data analyst?

Yes. Your team sends the export, answers the opening questions and approves the plan. The script does the calculation and Claude explains the result in business language. Deciding what to do with each group stays with you.

What do I need installed?

Your own Claude account with Claude Code, or the Claude app with skills enabled, plus Python 3 with pandas and openpyxl on the computer that runs the analysis. The Claude subscription is not part of the package.

What happens to my customer data?

The calculation runs locally on your machine. The skill reminds you to keep names, emails and IDs inside your project folder and out of public repositories. The conversation itself follows the policy of your own Claude account.

What are the limits?

It does not send campaigns, connect to your CRM or promise any return. A very small base only gives a first read, and the skill says so. A customer stored under two identifiers counts as two people, and the skill flags that risk.

How often should I rerun it?

Quarterly works well for most repeat-purchase businesses. Since the logic never changes, you can see customers moving between segments and judge whether last quarter's actions made a difference.

Customer Segments (RFM)

Know who your best customers are

Join the waitlist