cohort-analysis

cohort-analysis is a skill for Claude Code, Codex from NachoLafuente/5050-gtm. It costs 110 tokens per session (2,281 once invoked), scanned A, original, MIT.

A SaaS cohort-analysis tool that groups customers by when they signed up and compares their retention, revenue, churn, and customer-acquisition payback over time. SaaS means software sold as a service, usually through recurring payments.

In plain words
What is it for?
Use it to analyze customer churn, monthly recurring revenue churn, and—if you provide acquisition-cost data—how long cohorts take to recover that cost.
Why use it?
It combines customer and revenue data into tables and an Excel workbook, making it easier to see how different signup groups perform.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to analyze customer churn, monthly recurring revenue churn, and—if you provide acquisition-cost data—how long cohorts take to recover that cost.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nacholafuente/5050-gtm/cohort-analysis
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 NachoLafuente/5050-gtm --skill cohort-analysis
Clone the repo
git clone --depth 1 https://github.com/NachoLafuente/5050-gtm

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 cohort-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/nacholafuente/5050-gtm/cohort-analysis/github.svg)](https://agentmods.dev/skills/nacholafuente/5050-gtm/cohort-analysis)
Your own site
<a href="https://agentmods.dev/skills/nacholafuente/5050-gtm/cohort-analysis"><img src="https://agentmods.dev/badge/skills/nacholafuente/5050-gtm/cohort-analysis/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 cohort-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/nacholafuente/5050-gtm/cohort-analysis"><img src="https://agentmods.dev/badge/skills/nacholafuente/5050-gtm/cohort-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,281 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.00110 $0.02281
Opus 5 $0.00055 $0.01141
Sonnet 5 $0.00022 $0.00456
Haiku 4.5 $0.00011 $0.00228

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

Security

Grade A, and why

cohort-analysis 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.

The scan reads SKILL.md. This mod also ships 8 executable files (cohort.py, output.py, pullers/__init__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/cohort-analysis/SKILL.md · 168 lines

How it starts

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

Cohort Analysis

Builds the full SaaS cohort suite from a CRM + money source: 11 sub-tables across 3 sections (Customer Churn, MRR Churn, CAC Payback) in a single Excel workbook with green→red conditional formatting, plus per-section CSVs for SQL/raw consumption.

Step 1: Ask the user 3 questions (5 if they want CAC payback)

Ask in order. Don't skip. Don't pick defaults silently.

  1. Where do your clients live? (CRM source)

    • attio, Attio Persons or Companies, created_at is the cohort key
    • stripe, Stripe Customers themselves (no separate CRM)
    • csv, paste a path to a CSV with columns customer_id, email, signup_date
  2. Where's the money? (revenue source)

    • stripe, Stripe Invoices (paid)
    • attio, currency attribute on a CRM record (requires extra info, see Step 1b)
    • csv, path to CSV with columns customer_id (or email), event_date, amount
  3. Want CAC payback analysis? (optional)

    • yes, they paste a path to a cohort,cac_amount CSV. Section 3 of the workbook will show cumulative gross profit vs CAC and flag the lifetime month each cohort breaks even.
    • no / skip, workbook will only include the first two sections.
  4. Gross margin? (only if they said yes to #3)

    • Default is 0.8 (80%). Most SaaS companies are 70-85%.
  5. Output format?

    • all (default, xlsx workbook + per-section CSVs)
    • xlsx, workbook only
    • csv, per-section CSVs only
    • sql, also dump SQL DDL+inserts
    • evidence, also bootstrap a DuckDB+Evidence project

Step 1b: Attio money source disclaimer (IMPORTANT)

If they picked Attio for money, STOP and show this verbatim before going further:

⚠️ Heads up, Attio doesn't store revenue history natively. It only holds current attribute values, so we have to reconstruct the timeline from date attributes on each customer record. To do that I need three attribute slugs:

  1. Amount per period: the recurring amount (e.g. mrr, arr, subscription_amount, monthly_value)
  2. Date paid / first invoice: when they started paying (e.g. date_paid, subscription_start, first_invoice_date)
  3. Date churned: optional. When they stopped paying. Leave blank and we'll assume they're still active today.

Each customer becomes one event per month between date-paid and date-churned at the amount you give. This works for steady-state subscriptions but won't capture mid-cycle upgrades, downgrades, partial refunds, or one-off charges. For real revenue accuracy, point me at Stripe instead, or export your billing data to CSV.

What are the three Attio attribute slugs? (paste them as amount=mrr date_paid=date_paid date_churned=date_churned)

Read the full file on GitHub · 168 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 · 168 lines · 110 tokens per session scan A 209cf1a2a09a

Subscribe to this mod's changes

cohort-analysis is a skill published in the GitHub repository NachoLafuente/5050-gtm (3 stars, last pushed 2mo ago), licensed MIT. It adds 110 tokens to every session and 2,281 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

xlsx

Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for…

K-Dense-AI/scientific-agent-skills · 94 tokens

google-sheets

Read and write Google Sheets spreadsheets - get content, update cells, append rows, fetch specific ranges, search for spreadsheets, and view metadata. Use when user asks to: read a spreadsheet, update cells, add data to Google Sheets, find a spreadsheet, check sheet contents, export spreadsheet data, or get cell…

sanjay3290/ai-skills · 81 tokens

dgn-to-excel

Convert DGN files (v7-v8) to Excel databases. Extract elements, levels, and properties from infrastructure CAD files.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 32 tokens

dwg-to-excel

Convert AutoCAD DWG files (1983-2026) to Excel databases using DwgExporter CLI. Extract layers, blocks, attributes, and geometry data without Autodesk licenses.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 42 tokens

ifc-to-excel

Convert IFC files (2x3, 4x1, 4x3) to Excel databases using IfcExporter CLI. Extract BIM data, properties, and geometry without proprietary software.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 45 tokens

historical-data-manager

Extract, clean, and organize legacy construction data from archives. Migrate historical project data, cost records, and schedules into modern formats.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 32 tokens