Skip to content
Skills Library
Data & analytics · Analysis

product-analytics

/product-analytics

Use this skill when the user says 'product analytics', 'tracking plan', 'event taxonomy', 'retention curve', 'cohort analysis', 'funnel', 'DAU/MAU', 'north star metric', 'activation metric', 'amplitude', 'mixpanel', 'posthog'. It defines metrics, a tracking plan and event schema, implements instrumentation, and analyzes funnels, retention and engagement. Do NOT use for: experiment design and significance (use product/ab-testing or data-science/experimentation), mobile SDK specifics (use mobile-analytics), warehouse modeling (use data-science-analytics-engineering).

Licence
MIT
Last repository change
10.11.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use this skill when the user says 'product analytics', 'tracking plan', 'event taxonomy', 'retention curve', 'cohort analysis', 'funnel', 'DAU/MAU', 'north star metric', 'activation metric', 'amplitude', 'mixpanel', 'posthog'. It defines metrics, a tracking plan and event schema, implements instrumentation, and analyzes funnels, retention and engagement. Do NOT use for: experiment design and significance (use product/ab-testing or data-science/experimentation), mobile SDK specifics (use mobile-analytics), warehouse modeling (use data-science-analytics-engineering).

Triggers from the description

product analyticstracking planevent taxonomyretention curvecohort analysisfunnelDAU/MAUnorth star metric
Original author description

Use this skill when the user says 'product analytics', 'tracking plan', 'event taxonomy', 'retention curve', 'cohort analysis', 'funnel', 'DAU/MAU', 'north star metric', 'activation metric', 'amplitude', 'mixpanel', 'posthog'. It defines metrics, a tracking plan and event schema, implements instrumentation, and analyzes funnels, retention and engagement. Do NOT use for: experiment design and significance (use product/ab-testing or data-science/experimentation), mobile SDK specifics (use mobile-analytics), warehouse modeling (use data-science-analytics-engineering).

How it works

  1. Purpose
  2. Agent Protocol
  3. Metric Design
  4. Core Definitions
  5. Tracking Plan
  6. Instrumentation
  7. Retention Query (warehouse SQL, weekly cohorts)
  8. Data Quality
  9. Anti-Patterns
  10. Checklist
Original SKILL.md headings · 126 lines, 829 words
SKILL.md preview
---
name: product-analytics
description: >
  Use this skill when the user says 'product analytics', 'tracking plan', 'event taxonomy', 'retention curve', 'cohort analysis', 'funnel', 'DAU/MAU', 'north star metric', 'activation metric', 'amplitude', 'mixpanel', 'posthog'. It defines metrics, a tracking plan and event schema, implements instrumentation, and analyzes funnels, retention and engagement. Do NOT use for: experiment design and significance (use product/ab-testing or data-science/experimentation), mobile SDK specifics (use mobile-analytics), warehouse modeling (use data-science-analytics-engineering).
version: "2.0.0"
author: "j4flmao"
license: "MIT"
tags: [product, analytics, metrics, retention, funnel, tracking-plan]
---

# Product Analytics

## Purpose
Turn user behaviour into decisions: pick a small set of metrics tied to value, instrument a consistent event taxonomy that answers them, and analyze funnels, cohorts and retention without the classic traps (vanity metrics, broken identity, unversioned events).

## Agent Protocol

### Trigger
"product analytics", "tracking plan", "event naming", "retention", "cohort", "funnel", "DAU/MAU", "stickiness", "north star", "activation", "amplitude", "mixpanel", "posthog", "segment".

### Input Context
- Product type (B2C app, B2B SaaS, marketplace) and value moment.
- Analytics stack (Amplitude, Mixpanel, PostHog, GA4, Segment/RudderStack, warehouse).
- Questions the team must answer this quarter.

### Output Artifact
Metric tree + tracking plan table; SQL or tool configuration on request.

### Response Format
```
North Star: {metric} — why it reflects delivered value
Inputs: {3-5 drivers}
Events: {event_name: required properties}
Analyses: {funnel/retention/cohort definitions}
Owner + review cadence: {team, weekly}
```

## Metric Design

| Layer | Example (B2B SaaS) | Example (consumer app) |
|-------|--------------------|------------------------|
| North Star | Weekly active teams completing ≥1 workflow | Weekly listeners with ≥3 sessions |
| Activation | Team invites 2+ members and completes first workflow within 7 days | Completes onboarding + first playlist |
| Engagement | Workflows per active team per week | Sessions per user per week |
| Retention | Week-4 team retention | D30 user retention |
| Monetization | Net revenue retention | Trial-to-paid conversion |

Rules: every metric has a precise definition (numerator, denominator, time window, filters), an owner, and a reason it predicts revenue or retention. Totals that only grow (cumulative signups) are vanity metrics.

## Core Definitions
- **DAU/MAU (stickiness)**: average DAU in the period ÷ MAU. Meaningful only for products meant for daily use; use WAU/MAU for weekly-use products.
- **N-day retention**: % of a cohort active on exactly day N. **Unbounded (rolling) retention**: % active on day N or later. State which one you report.
- **Cohort**: users grouped by first-action date (or signup), tracked over time — compare cohorts to see if product changes improve retention.
- **Funnel conversion**: ordered steps within a conversion window (e.g., 7 days); report step-to-step and overall.

## Tracking Plan

| Event | Trigger | Required properties | Owner |
|-------|---------|---------------------|-------|
| `signup_completed` | Account created (server) | `method`, `plan`, `referrer` | Growth |
| `project_created` | Project saved (server) | `project_id`, `template_used` | Core |
| `invite_sent` | Invite email queued | `invitee_role`, `team_size` | Collaboration |
| `checkout_completed` | Payment confirmed (server) | `order_id`, `value`, `currency` | Revenue |

Naming conventions (pick one, enforce everywhere): `object_action` in past tense, snake_case; properties snake_case; no PII (emails, names) in properties; IDs instead.

## Instrumentation

```typescript
import posthog from 'posthog-js';

posthog.init(import.meta.env.VITE_POSTHOG_KEY, { api_host: 'https://us.i.posthog.com' });

export function onLogin(user: { id: string; plan: string }) {
  posthog.identify(user.id, { plan: user.plan }); // link anonymous pre-login events to the user
}

export function trackProjectCreated(projectId: string, templateUsed: boolean) {
  posthog.capture('project_created', { project_id: projectId, template_used: templateUsed });
}
```
- Send business-critical events (signup, payment) from the server — ad blockers drop a sizable share of client events.
- Call `reset()` on logout so shared devices do not merge users.
- Group analytics (account/company level) is required for B2B metrics.

## Retention Query (warehouse SQL, weekly cohorts)

```sql
WITH firsts AS (
  SELECT user_id, DATE_TRUNC('week', MIN(event_time)) AS cohort_week
  FROM events WHERE event_name = 'signup_completed' GROUP BY user_id
), activity AS (
  SELECT DISTINCT user_id, DATE_TRUNC('week', event_time) AS active_week
  FROM events WHERE event_name IN ('project_created', 'workflow_completed')
)
SELECT f.cohort_week,
       DATE_DIFF('week', f.cohort_week, a.active_week) AS week_n,  -- dialect-specific: DATEDIFF / date_diff
       COUNT(DISTINCT a.user_id) AS active_users
FROM firsts f JOIN activity a ON a.user_id = f.user_id AND a.active_week >= f.cohort_week
GROUP BY 1, 2 ORDER BY 1, 2;
```
Divide by cohort size for the retention %. A curve that flattens indicates product-market fit for that segment; one that decays to zero does not.

## Data Quality
- Version the tracking plan in Git; review new events in PRs.
- Use schema validation (Segment Protocols, Amplitude Data, PostHog/warehouse tests) to block unplanned events.
- Monitor event volume anomalies; a sudden drop usually means a broken release, not users leaving.
- Respect consent: gate client tracking on consent where GDPR/ePrivacy applies.

## Anti-Patterns
| Anti-pattern | Fix |
|--------------|-----|
| Track everything "just in case" | Tracking plan driven by questions |
| Inconsistent names (`Signup`, `signed_up`) | One convention + validation |
| Averages hiding segments | Break down by cohort, plan, platform |
| Correlation read as causation | Run an experiment |
| Client-only revenue events | Server-side for money events |

## Checklist
- [ ] North Star + 3–5 input metrics defined precisely
- [ ] Tracking plan versioned and owned
- [ ] Identity: identify on login, reset on logout, group for B2B
- [ ] Critical events server-side
- [ ] Retention definition (N-day vs unbounded) stated

## References
- `references/metric-frameworks.md`
- `references/event-taxonomy.md`
- `references/event-tracking.md`
- `references/funnel-analysis.md`
- `references/product-analytics-framework.md`
- `references/product-analytics-tools-implementation.md`
- `references/analytics-fundamentals.md`
- `references/analytics-advanced.md`
Files in this package (9)
  • SKILL.md 7 KB
  • references/analytics-advanced.md 10 KB
  • references/analytics-fundamentals.md 8 KB
  • references/event-taxonomy.md 3 KB
  • references/event-tracking.md 4 KB
  • references/funnel-analysis.md 4 KB
  • references/metric-frameworks.md 3 KB
  • references/product-analytics-framework.md 25 KB
  • references/product-analytics-tools-implementation.md 24 KB

Versions

RepositoryScoreLicence
This page · j4flmao/agent-skills95MIT
travisjneuman/.claude100MIT
TerminalSkills/skills100Apache-2.0
yonatangross/orchestkit100MIT
yonatangross/orchestkit100MIT
majiayu000/spellbook100MIT
borghei/Claude-Skills100MIT
andreibesleaga/gabbe100CC-BY-4.0
alirezarezvani/claude-skills100MIT

Database snapshot: 13.11.2026 · package version 429d7041cedc (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100agent-product-analytics-specialist
    Specialist subagent: PostHog, Mixpanel, Amplitude event tracking, funnels, cohorts, and A/B testing specialist. Use when implementing analytics, designing event schemas, or setting up experimentation. Trigger phrases: analytics, tracking, PostHog, Mixpanel, Amplitude, Segment,…
  • 100product-analytics-setup
    How to actually instrument product analytics correctly. Event taxonomy, property design, naming conventions, schema versioning, identity stitching, funnel design, retention cohorts, North Star metric selection, dashboard hygiene, instrumentation debt, and the failure modes that…
  • 100sql-queries
    Translates a product question into clean, correct SQL against a described schema and explains it line by line. Covers the core product-analytics patterns — funnels, retention and cohorts, DAU/MAU stickiness, and event counts — plus how to sanity-check the output. Use when you…
  • 100analytics-interpretation
    Interpret app metrics and make data-driven decisions. Covers DAU/MAU, retention, LTV, ARPU, App Store Connect analytics, AARRR funnel analysis, cohort analysis, and diagnostic decision trees. Use when user wants to understand their metrics, diagnose problems, or build a data-driven growth plan.
  • 100mixpanelyst
    Analyzes Mixpanel data with Python, mixpanel_headless, and pandas. Use when the user asks about their Mixpanel data, such as event trends, DAU/WAU/MAU, funnels, retention and churn, user paths, user profiles, cohorts, a user's event history (activity feed), segment comparisons,…
  • 91local-mixpanelyst-a25105da
    This skill should be used when the user asks about Mixpanel product analytics, event data, funnel analysis, retention curves, cohort analysis, segmentation queries, user behavior, conversion rates, churn, DAU/MAU, ARPU, revenue metrics, feature adoption, A/B test results, user…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.