customer-lifetime-value

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

A method for estimating the total net profit a customer is expected to generate during their relationship with an online store. Customer Lifetime Value, or CLV, helps compare customers by more than their purchases so far.

In plain words
What is it for?
It is for calculating historical or predicted customer value, setting VIP thresholds, measuring retention-program results, and triggering win-back actions for customers at risk of leaving.
Why use it?
It helps set sensible customer-acquisition budgets, find valuable customer groups, and identify customers who may stop buying.

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 is for calculating historical or predicted customer value, setting VIP thresholds, measuring retention-program results, and triggering win-back actions for customers at risk of leaving.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/customer-lifetime-value"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/customer-lifetime-value.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,928 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.00028 $0.02928
Opus 5 $0.00014 $0.01464
Sonnet 5 $0.00006 $0.00586
Haiku 4.5 $0.00003 $0.00293

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

Security

Grade A, and why

customer-lifetime-value 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/customer-crm/customer-lifetime-value/SKILL.md · 244 lines

How it starts

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

Customer Lifetime Value

Overview

Customer Lifetime Value (CLV) tells you the total net revenue expected from a customer over their relationship with your store, enabling smarter decisions on acquisition spend, retention investment, and customer tier management. Most platforms calculate historical CLV (total spent to date) natively. For predictive CLV and churn risk scoring, use a dedicated analytics app (Klaviyo, Metorik, Triple Whale) or build a custom model for stores with 10k+ customers.

When to Use This Skill

  • When setting CAC targets for acquisition channels based on expected return
  • When building a VIP tier program that needs a quantitative threshold
  • When predicting which customers are likely to churn and triggering win-back automation
  • When calculating the ROI of retention programs (loyalty points, VIP benefits)
  • When segmenting customers by predicted future value rather than historical spend alone

Core Instructions

Step 1: Determine platform and choose the right CLV tool

Platform Historical CLV Predictive CLV
Shopify Built-in: Admin → Analytics → Customers (shows lifetime spend) Triple Whale, Lifetimely, or Klaviyo for predictive scoring
WooCommerce Metorik or WooCommerce Analytics → Customers report Metorik Pro for churn prediction; Klaviyo integration for CLV-based flows
BigCommerce Built-in customer analytics; Google Analytics 4 for cohort analysis Klaviyo or Metorik for predictive CLV
Custom / Headless Build SQL queries against your order database Build a parametric or BG/NBD model against your historical data

Step 2: Access and track historical CLV

Historical CLV is the sum of all revenue from a customer. Platforms show this natively.

Shopify
  1. Go to Admin → Analytics → Reports → Customers over time — shows total customers, orders, and revenue by cohort
  2. Go to Admin → Customers → [Customer] — each customer profile shows total spent, order count, and last order date
  3. For bulk export: go to Customers → Export — the CSV includes Total Spent and Number of Orders per customer

Read the full file on GitHub · 244 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 · 244 lines · 28 tokens per session scan A e84420fed303

Subscribe to this mod's changes

customer-lifetime-value is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 28 tokens to every session and 2,928 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.