cohort-compass
Skill36 starsChanged 15 days agoMITView on GitHub
Advanced cohort management — build, compare, and track user cohorts over time. Use when working with persistent user groups (enterprise vs free, new vs returning, by country or plan) across multiple analyses.
In this repository45 other files it gives its agents.
- a11y-analyzerSkill
- annotation-opsSkill
- anomaly-detectorSkill
- api-monitorSkill
- benchmark-analyzerSkill
- campaign-trackerSkill
- changelog-detectiveSkill
- comparisonsSkill
- customer-360Skill
- dashboard-builderSkill
- deploy-radarSkill
- error-forensicsSkill
- experiment-analyzerSkill
- feature-adoptionSkill
- form-analyzerSkill
- frustration-hunterSkill
- funnel-doctorSkill
- general-analysisSkill
- heatmap-generatorSkill
- incident-responderSkill
- jira-bug-reporterSkill
- journey-builderSkill
- lifecycle-analyzerSkill
- metric-auditorSkill
- mobile-analyzerSkill
- nps-proxySkill
- onboarding-tutorSkill
- page-performanceSkill
- persona-builderSkill
- predictive-alertsSkill
- privacy-auditorSkill
- query-translatorSkill
- quick-statsSkill
- report-deckSkill
- retention-analyzerSkill
- revenue-impactSkill
- scroll-depth-analyzerSkill
- segment-wizardSkill
- session-playlistSkill
- session-reviewSkill
- session-searchSkill
- slack-reporterSkill
- user-journeySkill
- webhook-healthSkill
- weekly-digestSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
When a skill needs a cohort (e.g., "compare enterprise vs free users"):
- Distinctive: line 41
Keep a running list of segments built in the conversation:
- Very specific: line 46
When a later question needs the same cohort, reuse the segment_id.
- Distinctive: line 68
Always show both the percentage AND the raw numbers.
- Distinctive: line 72
If the user questions whether the cohort is correct:
- Distinctive: line 86
If the user needs historical cohort snapshots, tell them honestly that segments use current property values and can't look back in time.
- Distinctive: line 91
When presenting cohort comparisons, always show raw counts alongside percentages.
- Very specific: line 92
If the user asks for a cohort that's a slight variation of an existing one, use fullstory:update_segment rather than building from scratch.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cohort Compass
Build, manage, and compare user cohorts. Keeps segments consistent across multiple analyses so you don't rebuild the same cohort five times in one conversation.
When This Runs
Invoked automatically by general-analysis, comparisons, funnel-doctor, and weekly-digest when they need cohort-level analysis. Not user-invocable directly — it's a supporting skill that keeps the other skills consistent.
What Cohorts Are
A cohort is a segment that persists across analyses. Examples:
- Enterprise users (plan = enterprise)
- New users (first_seen in last 30 days)
- Power users (total_sessions > 20)
- German users (country = DE)
- Mobile-only users (device = mobile, no desktop sessions)
The key difference from one-off segments: cohorts get reused. You build the "enterprise users" segment once, then attach it to multiple metrics — error rate, conversion, page views, frustration signals — without rebuilding.
Workflow
Step 1: Build the cohort
When a skill needs a cohort (e.g., "compare enterprise vs free users"):
fullstory:build_segment("users on enterprise plan")
→ returns segment_idName it clearly in the query so the segment is findable later. "enterprise plan users" not "segment 1".
Step 2: Track it
Keep a running list of segments built in the conversation:
seg_ent: enterprise usersseg_free: free usersseg_new: users with first_seen in last 30 days
When a later question needs the same cohort, reuse the segment_id. Don't rebuild.
Step 3: Compute per cohort
For each cohort, attach the segment, compute, store the result:
fullstory:update_metric(metric_id, segment_id=seg_ent)
fullstory:compute_metric(metric_id) → store result
fullstory:update_metric(metric_id, segment_id=seg_free)
fullstory:compute_metric(metric_id) → store resultStep 4: Compare
Present results side by side:
Checkout completion rate (last 30 days)
Enterprise: 31% (3,100 / 10,000)
Free: 18% (5,400 / 30,000)Always show both the percentage AND the raw numbers. A 31% rate with 100 users is different from 31% with 10,000.
Step 5: Verify cohort membership
If the user questions whether the cohort is correct:
fullstory:get_sessions(segment_id=seg_ent, limit=3)
→ spot-check the sessions to confirm they match the cohort criteriaCohort Freshness
User properties change over time — a user moves from free to enterprise, or from Germany to France. Fullstory resolves user properties to the last known value, so segments are always current.
But this means:
- A cohort built today will not produce the same results as the same cohort built a month ago (users moved buckets).
- For "snapshot in time" comparisons (what was the conversion rate at that point in time), you'd need point-in-time segments, which aren't supported in the current MCP.
If the user needs historical cohort snapshots, tell them honestly that segments use current property values and can't look back in time. Offer to use dimensionality (top_n grouped by the property) instead — but note the split-value caveat from the comparisons skill.
Guidelines
- Reuse segment IDs within a conversation. Don't rebuild.
- When presenting cohort comparisons, always show raw counts alongside percentages.
- If the user asks for a cohort that's a slight variation of an existing one, use
fullstory:update_segmentrather than building from scratch. - For time-based cohorts (new users, users who signed up in Q3), the segment filters by
first_seendate — make sure the date range is explicit in the query. - Cohorts are per-conversation, not persistent across sessions. If the user comes back tomorrow, they'll need to rebuild.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

