customer-segmentation

customer-segmentation is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 38 tokens per session (2,623 once invoked), scanned A, original, MIT.

A way to divide customers into groups based on when they bought, how often they buy, and how much they spend.

In plain words
What is it for?
It helps target new, active, at-risk, or inactive customers; find high-value customers; compare retention by acquisition group; and send groups to Meta or Google advertising.
Why use it?
It prevents one marketing message from being sent to everyone and helps avoid spending money on customers who have already converted.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Good fit It helps target new, active, at-risk, or inactive customers; find high-value customers; compare retention by acquisition group; and send groups to Meta or Google advertising.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/customer-segmentation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add finsilabs/awesome-ecommerce-skills --skill customer-segmentation
Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for customer-segmentation

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-segmentation/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-segmentation)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-segmentation"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-segmentation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for customer-segmentation

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-segmentation"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-segmentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,623 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00038 $0.02623
Opus 5 $0.00019 $0.01311
Sonnet 5 $0.00008 $0.00525
Haiku 4.5 $0.00004 $0.00262

Measured 11d ago against content hash 02dbeaa609b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

customer-segmentation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/customer-crm/customer-segmentation/SKILL.md · 257 lines

How it starts

The opening of the file, as written. The whole thing — 257 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Customer Segmentation

Overview

Customer segmentation divides your customer base into groups with similar purchase behavior so marketing campaigns, promotions, and product recommendations can be precisely targeted. Klaviyo, Omnisend, and Metorik all provide RFM-style segmentation out of the box for Shopify and WooCommerce without custom SQL. Only build a custom segmentation system if your platform's tools don't support the segment logic you need.

When to Use This Skill

  • When personalizing email campaigns by lifecycle stage (new, active, at-risk, lapsed)
  • When building suppression lists to avoid wasting ad spend on already-converted customers
  • When identifying "champion" customers for VIP programs and early access campaigns
  • When analyzing which acquisition cohort has the best 90-day retention
  • When syncing behavioral segments to advertising platforms (Meta, Google)

Core Instructions

Step 1: Determine platform and choose the right segmentation tool

Platform Built-in Segmentation Recommended Tool
Shopify Basic: Admin → Customers → Filters; Advanced: Klaviyo or Omnisend Klaviyo for email + SMS; Lifetimely for cohort analysis
WooCommerce WooCommerce Analytics → Customers (basic filters) Klaviyo + WooCommerce plugin; or Metorik for analytics
BigCommerce Customer Groups (tier-based); Analytics → Customers Klaviyo for behavioral segmentation
Custom / Headless Build RFM scoring in SQL; sync to Klaviyo for activation Required when platform has no segmentation tools

Step 2: Platform-specific setup


Shopify

Option A: Shopify Admin segments (basic, free)

  1. Go to Admin → Customers
  2. Use the filter bar to create segments based on:
    • Order count, total spent, last order date
    • Email subscription status, tags, location
    • Product purchased
  3. Save the filter as a customer segment
  4. Export the segment to CSV for use in ads or email campaigns

Read the full file on GitHub · 257 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 257 lines · 38 tokens per session scan A 02dbeaa609b2

Subscribe to this mod's changes

customer-segmentation is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 38 tokens to every session and 2,623 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

newsletter-audience-segmenter

Produces a practical audience segmentation brief for a newsletter, identifying 3-5 distinct subscriber groups with tailored content recommendations and messaging strategies for each segment.

ur-grue/autopunk-media-skills · 36 tokens

Audience Segmenter

Segment audiences for targeted marketing and personalized messaging.

eddiebelaval/squire · 12 tokens

Audience Segmenter

Segment audiences for targeted marketing and personalized messaging.

jmsktm/claude-settings · 12 tokens

background

Use when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs. Read/manage .hyperflow/background/registry.json and the per-agent output buffers at .hyperflow/background/ .md. Standalone — never auto-invoked. Trigger with /hyperflow:background, "list background agents"…

jeremylongshore/tons-of-skills-marketplace · 89 tokens

flush

Use when the user wants to manually flush a deferred-commit queue from a prior or interrupted chain. Reads .hyperflow/commits-queue/manifest.json, fast-forwards the staging branch onto the user's branch, deletes staging, clears the queue. Recovery interface when a chain crashed before its Step 4 auto-flush ran.…

jeremylongshore/tons-of-skills-marketplace · 97 tokens

nextcrm

Connect to NextCRM MCP server to manage CRM data — accounts, contacts, leads, opportunities, targets, products, contracts, activities, documents, target lists, enrichment, email accounts, campaigns, projects, and reports.

pdovhomilja/nextcrm-app · 47 tokens