customer-analytics

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

An analysis of customer buying patterns using RFM scoring, purchase frequency, customer groups over time, and churn prediction. RFM means recency, frequency, and monetary value: how recently and often someone bought, and how much they spent.

In plain words
What is it for?
Use it to measure retention, find customers likely to stop buying, assess loyalty programs, compare acquisition channels, and create customer health or VIP reports.
Why use it?
It reveals which customers are loyal, at risk of leaving, or valuable over the long term. This supports more useful customer segments than basic demographic filters.

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 Use it to measure retention, find customers likely to stop buying, assess loyalty programs, compare acquisition channels, and create customer health or VIP reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/customer-analytics
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-analytics
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-analytics

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-analytics/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-analytics)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-analytics"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-analytics/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-analytics

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-analytics"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,465 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.00026 $0.02465
Opus 5 $0.00013 $0.01233
Sonnet 5 $0.00005 $0.00493
Haiku 4.5 $0.00003 $0.00247

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

Security

Grade A, and why

customer-analytics 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 12d 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/data-analytics/customer-analytics/SKILL.md · 191 lines

How it starts

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

Customer Analytics

Overview

Customer analytics transforms raw order data into actionable insights about purchase patterns, lifecycle stages, and churn risk. The core analyses — RFM scoring, cohort retention, purchase frequency, and churn prediction — reveal which customers are loyal, which are at risk, and which channels produce the best long-term customers.

This skill guides you through running these analyses using your platform's built-in tools and dedicated analytics apps, with data warehouse approaches for stores that need deeper segmentation.

When to Use This Skill

  • When the marketing team needs data-driven segments beyond simple demographic filters
  • When calculating at-risk customer counts for quarterly business reviews
  • When measuring the impact of loyalty programs on purchase frequency
  • When identifying the acquisition channels that produce the highest-LTV customers
  • When preparing customer health dashboards for account management or VIP programs
  • When building cohort retention analysis to understand customer lifetime value trends

Core Instructions

Step 1: Choose the right tool for your platform

Platform Recommended Tool What It Provides
Shopify Klaviyo + Shopify's built-in customer segments RFM-style segments, purchase frequency, CLV prediction, cohort reports
Shopify (advanced) Lifetimely or Triple Whale True cohort LTV, CLV by acquisition channel, retention curves
WooCommerce Metorik Customer segmentation, RFM analysis, cohort retention, churn identification
WooCommerce (email) Klaviyo for WooCommerce Behavioral segments + automated flows based on customer lifecycle stage
BigCommerce Klaviyo for BigCommerce + Glew.io Glew provides cohort analysis and CLV tracking natively for BigCommerce
All platforms (data-first) Export to Google Looker Studio + BigQuery via Fivetran Full SQL-based analysis; required for advanced RFM and cohort modeling

Read the full file on GitHub · 191 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. 12d ago First seen · 191 lines · 26 tokens per session scan A 800815d11482

Subscribe to this mod's changes

customer-analytics is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 26 tokens to every session and 2,465 once invoked, about $0.0001 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.