Skip to content
Back to skills

Product Analytics

ASecurity

Product analytics checks for metric trees, event taxonomies and retention cohorts. Use when reviewing a North Star and its input metrics, auditing an event inventory for naming, PII and gaps, or reading cohort retention tables for curve shape and trend. Reads your JSON, exits 0/1/2.

  • 1,271 stars
  • 0 votes
  • 1 copy
  • 10 views
  • Added May 30, 2026
ai-agentspythongobashrailsdocumentation

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill product-analytics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Product Analytics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Product Analytics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-product-analytics/badge)](https://www.skillsdirectory.com/skills/borghei-product-analytics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: product-analytics
description: >
  Product analytics checks for metric trees, event taxonomies and retention
  cohorts. Use when reviewing a North Star and its input metrics, auditing an
  event inventory for naming, PII and gaps, or reading cohort retention tables
  for curve shape and trend. Reads your JSON, exits 0/1/2.
license: MIT + Commons Clause
metadata:
  version: 1.0.0
  author: borghei
  category: product-team
  domain: product-analytics
  updated: 2026-05-27
  tags: [analytics, metrics, north-star, retention, activation, funnel, cohort, instrumentation]
---

# 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

- Designing the **North Star metric** and its tree of input metrics
- Auditing **product instrumentation** (events, properties, gaps)
- Building or refreshing an **activation funnel** for a new product or feature
- Designing or analyzing **retention cohorts** (D1/D7/D30/W1/W4/M1/M3)
- Building or refining the **PM analytics dashboard**
- Translating product data into **decisions and roadmap inputs**
- Auditing **dashboards for actionability** (kill the vanity)

## Inputs the advisor expects

- Product type (B2B SaaS, consumer, marketplace, etc.)
- Current analytics stack (Amplitude / Mixpanel / GA4 / Segment / Snowflake + dbt + Looker)
- Existing North Star + input metrics
- Current event taxonomy + instrumentation gaps
- Top product questions you can't answer today
- Org expectations: who consumes analytics, at what cadence

## 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.

- **Product type:** B2B SaaS, consumer, marketplace, etc. (drives the North Star pattern and input metrics).
- **The value moment:** what "delivered value" looks like for a user (defines the North Star and activation event).
- **Current analytics stack and event taxonomy:** Amplitude/Mixpanel/GA4/Segment plus existing events (drives the instrumentation audit and gap list).

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 the reviewer on your candidate tree. It quotes each weak metric and gives a fix; it does not score the tree.

```bash
python3 scripts/metric_tree_designer.py assets/sample_metric_tree.json
python3 scripts/metric_tree_designer.py metric_tree.json --format json
```

### Workflow 2 - Audit instrumentation

1. Pull the current event taxonomy and properties (JSON, schema in `--help`).
2. Run the auditor: naming, PII-risk property names, duplicates, missing docs, gaps, client-only critical events.
3. Hand the remediation backlog table it prints to owners.

```bash
python3 scripts/event_taxonomy_auditor.py assets/flawed_events.json
```

### Workflow 3 - Analyze retention cohorts

1. Pull retained-user counts per cohort and offset.
2. Run the analyzer for retention rates, curve shape, trend at an anchor offset and below-median cohorts.

```bash
python3 scripts/retention_cohort_analyzer.py assets/flawed_retention.json --anchor 4
```

Real output (excerpt, `retention_cohort_analyzer.py assets/flawed_retention.json`):

```
Curve shape: steep_to_zero (cohort 2026-03-23): almost everyone leaves; no durable value found
Trend: deteriorating
2. [warn] cohort 2026-03-23: 2.0% at W8 vs median 10.5%
   rule: cohort retains well below the median (more than 5pp below median (internal heuristic))
   fix: check what changed for cohort 2026-03-23 (channel mix, release, pricing) and segment it
FIX 3 issues
```

### Exit codes and options

| Code | Meaning |
|------|---------|
| 0 | no findings (`PASS`) |
| 1 | findings to act on (`FIX n issues`) |
| 2 | unusable input: missing, empty, invalid JSON, wrong shape (`BLOCKED: reason` on stderr) |

All three tools take the JSON file as a positional argument or `--input` (`-` reads stdin), `--format text|json` (`markdown` and `--json` are aliases), and `--output FILE`. Samples live in `assets/` (`sample_*` exit 0, `flawed_*` exit 1, `malformed_*` exit 2). Thresholds (3-5 inputs, 5pp below median, 3pp trend) are internal heuristics, not published benchmarks.

## Decision frameworks

### North Star metric — what makes one good

A good North Star metric:
- **Measures value delivered to the user** (not just usage)
- **Aligns to business outcome** indirectly via clear chain
- **Is a leading indicator** of long-term success
- **Can move week-over-week** (so it can be acted on)
- **Is hard to game** without delivering real value

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:
- Onboarding design — clearer
- Funnel analysis — possible
- Eval of marketing channels — sharper
- Customer success interventions — better-timed

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

- **More dashboards = more insight.** Usually inverse. Cull aggressively.
- **Confusing event volume for insight.** Tracking everything badly is worse than tracking a few things well.
- **PII in event properties.** Privacy + compliance nightmare.
- **Custom event names per developer.** Naming convention or chaos.
- **No event documentation.** Future you and the next analyst will hate present you.
- **One metric for the whole product.** Different surfaces need different metrics.
- **Vanity North Star.** "Total signups" tells you nothing about value.

## Scope & Limitations

**In Scope:**
- North Star and metric tree design (North Star, inputs, drivers, guardrails), checked by `metric_tree_designer.py` for imbalance, unowned metrics, vanity North Stars and missing guardrails
- Event taxonomy audits with `event_taxonomy_auditor.py` for naming consistency, PII risk, duplication, undocumented events and gaps, with a remediation backlog
- Retention cohort analysis with `retention_cohort_analyzer.py`: retention rates, trend and curve shape (smile, slow decay, leaky bucket, steep, rising)
- Activation definition, vanity versus actionable metric tests, and the reference guides on instrumentation and funnel analysis

**Out of Scope:**
- Building data pipelines, warehouse models or dbt projects (see `data-analytics/analytics-engineer/`)
- Designing and analyzing A/B tests (see `product-team/ab-test-setup/`)
- Building BI dashboards in a specific tool (see `data-analytics/business-intelligence/`)
- Ongoing data quality monitoring (see `engineering/data-quality-auditor/`)
- Legal review of personal data in events (see `ra-qm-team/gdpr-dsgvo-expert/`)

**Important Caveats:**
- The tools have no connection to Amplitude, Mixpanel, GA4, Segment or a warehouse. Event inventories, metric trees and cohort counts are supplied as JSON.
- PII detection matches property names against a keyword list and the declared PII tier. It can miss personal data stored under neutral names.
- Curve-shape and trend labels come from fixed thresholds. They point to where to look and do not prove product-market fit or its absence.

## References

- `references/metric-tree-and-north-star.md` — patterns by product type, tree structure, anti-patterns
- `references/instrumentation-and-event-design.md` — event taxonomy, naming, PII, schema discipline
- `references/cohort-retention-and-funnel-analysis.md` — analysis techniques, segmentation, anti-patterns

## Related skills

- `product-team/ab-test-setup` — experimentation (paired with metrics)
- `product-team/product-strategist` — strategy upstream of metrics
- `data-analytics/` skills — for the data engineering side
- `engineering/data-quality-auditor` — for instrumentation data quality
- `c-level-advisor/chief-data-officer-advisor` — for platform decisions

Files in this skill

  • SKILL.md7.8 KB
  • references/cohort-retention-and-funnel-analysis.md8 KB
  • references/instrumentation-and-event-design.md7.4 KB
  • references/metric-tree-and-north-star.md6.5 KB
  • scripts/event_taxonomy_auditor.py12.1 KB
  • scripts/metric_tree_designer.py10.6 KB
  • scripts/retention_cohort_analyzer.py8.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.