Product analytics

From borghei/Claude-Skills · View interactive version

Product analytics is an AI agent skill from the GitHub repository borghei/Claude-Skills. Product analytics for instrumenting products, defining metrics, and building retention funnels. Use when designing a metric tree, instrumenting a feature, auditing instrumentation, defining a North Star, or building an analytics roadmap.

How to use this skill

Skill file

Product Analytics

A product analytics skill focused on decisions from data, not dashboards.

Covers the metric tree, instrumentation patterns, funnel + retention +

cohort analysis, and the operational rituals that turn measurement into

product changes.

When to use this skill

Inputs the advisor expects

Clarify First

Before designing the metric tree or audit, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

Workflows

Workflow 1 — Design the metric tree

  1. Define the North Star (one number that summarizes value delivered).
  2. Decompose into inputs (drivers of the NS).
  3. Add guardrails / counter-metrics that catch unintended consequences.
  4. Run metric_tree_designer.py against your candidate tree to surface

imbalance, missing layers, anti-patterns.

python3 product-analytics/scripts/metric_tree_designer.py \
  --input metric_tree.json --format markdown

Workflow 2 — Audit instrumentation

  1. Pull the current event taxonomy + properties.
  2. Run event_taxonomy_auditor.py to flag PII risk, schema drift,

naming inconsistency, duplication, undocumented events, and gaps.

  1. Generate the remediation backlog and assign owners.
python3 product-analytics/scripts/event_taxonomy_auditor.py \
  --input event_inventory.json --format markdown

Workflow 3 — Analyze retention cohorts

  1. Pull cohort retention data (raw counts by cohort week and offset).
  2. Run retention_cohort_analyzer.py to compute retention rates, identify

patterns (smile curve, leaky bucket), and surface cohort-level alerts.

python3 product-analytics/scripts/retention_cohort_analyzer.py \
  --input retention.json --format markdown

Decision frameworks

North Star metric — what makes one good

A good North Star metric:

Common patterns by product type:

| Product type | Common North Star |

|--------------|-------------------|

| Communication / messaging | Messages sent per WAU |

| Marketplace | Successful transactions per MAU |

| Content | Hours of meaningful content consumed |

| Productivity SaaS | Activated workspaces × engagement depth |

| Consumer payments | Active payment senders per week |

| Developer tool | Weekly active developers performing core action |

Don't pick "DAU" or "Revenue" as North Star — they're outputs, not value drivers.

Metric tree structure

A clean metric tree has three layers:

  1. North Star (1 metric)
  2. Input metrics (3–5 that combine to produce the NS)
  3. Driver metrics (per input, 3–5 that move the input)

Plus a guardrails / counter-metrics sidebar (3–5 that catch

unintended consequences).

If you have 30 KPIs at the top level, you have no top level.

The activation question

For any new product or feature, ask: "What does it look like when a user

realizes value from this?"

That's the activation event. A clear definition makes:

Common mistake: defining activation as "completed signup." Signup is

table stakes; activation is the moment of value.

Retention curve shapes

| Shape | Diagnosis | Action |

|-------|-----------|--------|

| Power-law smile | Healthy product-market fit | Invest in scale |

| Slow decay then flat | Product-market fit | Investigate the flatline cohort segment |

| Steep then zero | Novelty product | Re-evaluate the value proposition |

| Linear decline | Leaky bucket | Improve retention features |

| Inverted (rising) | Network effects kicking in | Acquire harder |

Read shape before reading numbers.

Vanity vs actionable metrics

| Metric | Vanity if | Actionable if |

|--------|-----------|---------------|

| DAU / MAU | Tracked alone | Decomposed by segment, action |

| Pageviews | Tracked alone | Tied to conversion funnel |

| Total revenue | Tracked alone | Decomposed by cohort, channel, segment |

| App downloads | Tracked alone | Paired with activation rate |

| Total accounts | Tracked alone | Paired with active accounts |

The test: "If this metric goes up 10% next week, what do we change?"

If you don't have an answer, it's vanity.

Common engagements

"Help me design our analytics for the launch"

  1. Define activation event and 3–5 input metrics.
  2. Spec event taxonomy (event names, properties, user/account context).
  3. Pilot dashboards (one for the team, one for execs).
  4. Set the review cadence; don't let dashboards rot.

"Our funnel rate is dropping. What's wrong?"

  1. Decompose: which step's conversion dropped?
  2. Segment: which user segment is driving it?
  3. Cross-check: is the dropping segment newly acquired?
  4. Test hypotheses against the data; don't guess.

"Help me audit our instrumentation"

  1. Pull the event inventory (last 30 days, all events fired ≥10x).
  2. Tag PII risk, naming inconsistency, gaps.
  3. Identify the events that should be fired but aren't.
  4. Build the remediation backlog with owners.

Anti-patterns to avoid

Scope & Limitations

In Scope:

Out of Scope:

Important Caveats:

References

Related skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.