Metrics framework

From FerroxLabs/wayland · View interactive version

Metrics framework is an AI agent skill from the GitHub repository FerroxLabs/wayland. Builds a product metrics hierarchy with north star metric, L1/L2 supporting metrics, guardrail metrics, and instrumentation guidance using product analytics methodology. Use when the user asks about product metrics, north star metrics, metrics frameworks, product analytics, KPI hierarchies, or measu

How to use this skill

Skill file

Metrics Framework

When to Use

Use this skill when:

Do NOT use this skill when:


Process

Step 1: Gather Product and Business Context

Before proposing any metric, establish a complete picture of the product and its strategic context. A metrics framework built on incomplete context will produce misaligned metrics that measure the wrong things with precision.

Step 2: Identify and Validate the North Star Metric

The North Star Metric (NSM) is the single metric that best represents the rate at which your product is delivering its core value to users. It is not the most important business metric -- that is revenue. It is the metric that, if consistently moving in the right direction, most reliably predicts long-term business health.

1. Does it measure user value, not just business extraction? (Revenue fails this test. "Tasks completed" passes.)

2. Is it a leading indicator of retention and revenue, not a lagging output of them?

3. Can product, engineering, and design teams directly influence it through their work?

4. Would the entire company, from CEO to support, understand what it means without explanation?

5. If this metric increases consistently while all guardrails hold, would the business be sustainably healthy in 12 months?

Step 3: Build the L1 Metrics Layer

L1 metrics are the direct drivers of the NSM. They decompose the NSM into components that different teams can own and optimize independently. The L1 layer should contain 3-5 metrics, not more.

Step 4: Build the L2 Metrics Layer

L2 metrics are the granular, feature-level drivers that explain changes in L1 metrics. They are what individual product squads track day-to-day. They should be more volatile, more specific, and more directly responsive to product changes than L1 metrics.

Step 5: Define Guardrail Metrics

Guardrail metrics are constraints, not goals. They define the boundaries within which optimization is safe. Every experiment and every product change must be evaluated against guardrails in addition to the target metric.

Step 6: Define the Metrics Map (Hierarchy Visualization)

A metrics framework that exists only in a spreadsheet will not be used. The map creates a shared mental model across the organization.

Step 7: Define Instrumentation and Data Infrastructure Plan

A metric without a defined instrumentation plan is a hypothesis, not a metric. This step makes the framework operationally real.

Step 8: Create the Framework Review Protocol

A metrics framework that is not reviewed and updated becomes cargo cult measurement -- teams report numbers without questioning whether those numbers still represent reality.


Output Format

## Product Metrics Framework: [Product Name]

**Product Type:** [SaaS / Marketplace / Consumer App / Developer Platform / E-commerce]
**Business Model:** [Subscription / Usage-based / Transactional / Ad-supported / Freemium]
**Lifecycle Stage:** [Pre-PMF / Growth / Maturity]
**Framework Version:** [v1.0] | **Last Updated:** [Date] | **Next Review:** [Date]

---

### North Star Metric

| Field              | Detail                                                                 |
|--------------------|------------------------------------------------------------------------|
| **Metric Name**    | [Short, memorable name]                                               |
| **Definition**     | [Exact definition: who counts, what action, what time window]         |
| **Formula**        | [Explicit calculation -- numerator, denominator, filters]             |
| **Data Source**    | [Tool and event name]                                                 |
| **Current Value**  | [Baseline with date]                                                  |
| **Target**         | [Target value and timeframe]                                          |
| **Rationale**      | [Why this metric proxies core user value delivery; what it excludes]  |
| **NSM Test**       | [Confirmation that all 5 NSM validation criteria are satisfied]       |

---

### L1 Metrics (Team-Level Drivers)

| L1 Metric        | Exact Definition                                           | Formula                              | Owner          | Current   | Target    | NSM Relationship        |
|------------------|------------------------------------------------------------|--------------------------------------|----------------|-----------|-----------|-------------------------|
| [Metric name]    | [Who, what action, what time window]                       | [Numerator / Denominator or count]   | [Team name]    | [Value]   | [Value]   | [Multiplicative/Additive/Correlative] |
| [Metric name]    | [Who, what action, what time window]                       | [Numerator / Denominator or count]   | [Team name]    | [Value]   | [Value]   | [Type]                  |
| [Metric name]    | [Who, what action, what time window]                       | [Numerator / Denominator or count]   | [Team name]    | [Value]   | [Value]   | [Type]                  |
| [Metric name]    | [Who, what action, what time window]                       | [Numerator / Denominator or count]   | [Team name]    | [Value]   | [Value]   | [Type]                  |

---

### L2 Metrics (Feature-Level Drivers)

**[L1 Metric: Activation]**
| L2 Metric                     | Exact Definition                                                 | Current   | Target    | Data Source         | Input/Output |
|-------------------------------|------------------------------------------------------------------|-----------|-----------|---------------------|--------------|
| [Metric name]                 | [Exact formula or query logic]                                   | [Value]   | [Value]   | [Tool/event name]   | [Input]      |
| [Metric name]                 | [Exact formula or query logic]                                   | [Value]   | [Value]   | [Tool/event name]   | [Output]     |

**[L1 Metric: Engagement]**
| L2 Metric                     | Exact Definition                                                 | Current   | Target    | Data Source         | Input/Output |
|-------------------------------|------------------------------------------------------------------|-----------|-----------|---------------------|--------------|
| [Metric name]                 | [Exact formula or query logic]                                   | [Value]   | [Value]   | [Tool/event name]   | [Input]      |

**[L1 Metric: Retention]**
| L2 Metric                     | Exact Definition                                                 | Current   | Target    | Data Source         | Input/Output |
|-------------------------------|------------------------------------------------------------------|-----------|-----------|---------------------|--------------|
| [Metric name]                 | [Exact formula or query logic]                                   | [Value]   | [Value]   | [Tool/event name]   | [Input]      |

*(Repeat section for each L1 metric)*

---

### Guardrail Metrics

| Category        | Guardrail Metric             | Exact Definition                                        | Threshold           | Measurement Window     | Owner          | Breach Response                                 |
|-----------------|------------------------------|---------------------------------------------------------|---------------------|------------------------|----------------|-------------------------------------------------|
| Performance     | [Metric name]                | [P95 latency / error rate / uptime definition]          | [< X or > Y]        | [Rolling 24h / 7d]     | [Team]         | [Specific action: halt release, alert, review]  |
| Quality         | [Metric name]                | [Support tickets per active user / NPS trend]           | [Threshold]         | [Window]               | [Team]         | [Action]                                        |
| Business        | [Metric name]                | [Gross margin / CAC payback]                            | [Floor/ceiling]     | [Monthly]              | [Team]         | [Action]                                        |
| Experience      | [Metric name]                | [Abandonment rate on core workflow]                     | [< X%]              | [Rolling 7d]           | [Team]         | [Action]                                        |

---

### Instrumentation Plan

| Metric           | Type     | Data Source           | Event / Query Definition                              | Freshness    | Dashboard       | Alert Condition                        | Instrumentation Status  |
|------------------|----------|-----------------------|-------------------------------------------------------|--------------|-----------------|----------------------------------------|-------------------------|
| [NSM]            | NSM      | [Tool]                | [Exact event + filter logic]                          | Daily        | [Link/name]     | [< -10% vs. prior 7d average]          | [Live / Needs build]    |
| [L1 metric]      | L1       | [Tool]                | [Exact definition]                                    | Daily        | [Location]      | [Condition]                            | [Status]                |
| [L2 metric]      | L2       | [Tool]                | [Exact definition]                                    | Daily/Weekly | [Location]      | [Condition]                            | [Status]                |
| [Guardrail]      | Guardrail| [Tool]                | [Exact definition]                                    | Real-time    | [Location]      | [Threshold breach]                     | [Status]                |

---

### Metrics Map

[NORTH STAR METRIC]

/ | \

[Acquisition] [Retention] [Engagement]

/ \ / \ / \

[L2-a] [L2-b] [L2-c] [L2-d] [L2-e] [L2-f]

NSM Relationship Type: [Acquisition × Activation Rate × Retention Rate ≈ NSM]

GUARDRAILS (Constraints -- not optimization targets):

┌────────────────────────────────────────────────────────────────┐

│ Performance: [Threshold] | Quality: [Threshold] │

│ Business: [Threshold] | Experience: [Threshold] │

└────────────────────────────────────────────────────────────────┘


---

### Diagnostic Protocol

**If NSM declines:**
1. Check [Retention first, or specify product-appropriate order] -- most common cause
2. If Retention is stable, check [Activation] -- is a recent cohort failing to activate?
3. If Activation is stable, check [Acquisition] -- is volume declining?
4. Cross-check guardrails -- is a technical or quality issue suppressing engagement?

**Review Schedule:**
- Weekly: NSM + L1 metrics in team review
- Monthly: Full L1 + L2 review with cohort breakdown
- Quarterly: Full framework review -- NSM validity, L1/L2 relevance, guardrail calibration

Rules

  1. Define exactly one North Star Metric. If someone insists on two NSMs -- "revenue AND engagement" -- explain that this means neither has been chosen. A framework with two NSMs forces teams to make trade-offs without clarity. All supporting metrics go into L1. Revenue belongs in L1 or guardrails, not as an NSM for a product team.
  1. Every metric must have an explicit formula with a defined time window, user scope, and denominator. "Engagement rate" is not a metric. "Teams with 3+ distinct members who performed the project_updated event at least once in a rolling 7-day window, as a percentage of all teams with 3+ members who have been active in the last 30 days" is a metric. Ambiguous metric definitions create phantom alignment -- teams think they agree on a number while calculating it differently.
  1. Never exceed 5 L1 metrics. More than 5 L1 metrics indicates that the team has not done the hard work of prioritization. Each additional L1 metric dilutes team attention. If more than 5 candidates exist, evaluate each against its causal relationship to the NSM and retain only the strongest drivers.
  1. Distinguish input metrics from output metrics and label them. Output metrics (retention rate, NSM) reflect results of team decisions. Input metrics (onboarding completion rate, template usage in first session) are things teams can directly change through product work. Teams should track both but hold themselves accountable primarily to input metrics in sprint-level work, and output metrics in quarterly planning. Conflating the two creates accountability gaps.
  1. Guardrails must have breach response protocols, not just thresholds. A guardrail metric without a defined response is a warning light with no action attached. Every guardrail must specify: who is notified, what is paused, and what investigation is triggered when the threshold is breached. For performance guardrails, this typically means a release freeze. For quality guardrails, it typically means a support escalation review.
  1. Never use rate metrics without specifying the denominator population precisely. Activation rate calculated as "activations / signups (all time)" produces a meaningless cumulative number. Activation rate as "teams who completed the core activation event within 14 days of signup / all teams who signed up in the same 14-day window" is a cohort-correct metric. Cohort-correct denominators are mandatory for all rate metrics.
  1. Segment L2 metrics by user cohort before drawing conclusions. An L2 metric like "time to first core action" has a median that may look acceptable while hiding a bimodal distribution: 60% of users convert in 5 minutes, 40% never convert. Always check P50, P75, and P90 for funnel and time-based L2 metrics before concluding the metric is healthy.
  1. Limit the total framework to 20 metrics maximum (1 NSM + 4-5 L1 + 8-12 L2 + 4-6 guardrails). Beyond 20, the framework is a data dictionary, not a decision tool. Organizations that track 60+ metrics cannot prioritize, cannot diagnose, and cannot act. If the user wants to track more, help them build a separate "diagnostic library" that supplements the core framework but is not part of the operational hierarchy.
  1. Validate that each L1 metric is independently owned. An L1 metric that is "everyone's responsibility" is no one's responsibility. If two L1 metrics would be owned by the same team, evaluate whether they should be collapsed into one more-precise metric or whether the team structure needs to reflect the metric separation.
  1. Require instrumentation confirmation before publishing a metric. A metric should not appear in a framework document as "current value: unknown." Either find a way to measure it and establish a baseline before the framework launch, or explicitly mark it as "Phase 2 -- requires instrumentation" with a timeline. Frameworks with unmeasured metrics create false confidence that the full picture is understood.
  1. Do not use vanity metrics as guardrails to make them feel important. App store rating, press mentions, and LinkedIn followers are not guardrail metrics. They are not actionable, not precise, and do not constrain product decisions in a meaningful way. Guardrails must be metrics that a product or engineering team can directly affect within a sprint cycle.
  1. When the product is pre-PMF, explicitly label the NSM as provisional. Pre-PMF NSMs are hypotheses about what will matter. They should be reviewed on a 60-day cycle, not quarterly, because the product's core value proposition may pivot. Mark the entire framework "provisional" until the product has demonstrated consistent retention in at least three consecutive cohorts.

Edge Cases

Pre-Launch or Pre-PMF Product

The NSM cannot be computed because there are no users. Do not fabricate a framework that implies measurement exists where it does not.

Two-Sided Marketplace with Misaligned Supply and Demand Growth

Marketplaces have two user populations whose health metrics can diverge. A single NSM (completed transactions) will drop even if only one side of the market has a problem.

Mature Product with Flat or Declining Growth

An NSM designed for a growth-stage product often stalls as the product matures. New user acquisition slows because the addressable market is partially penetrated, but that does not mean the product is unhealthy.

Developer Platform or API Product

Developer behavior metrics differ fundamentally from consumer or business user metrics. Developers evaluate products technically before committing, have long evaluation windows, and are extremely sensitive to reliability and documentation quality.

Product with Offline or Delayed Value Delivery (Health Tech, Education, Professional Certification)

The core value of the product -- improved health outcomes, learning achievement, professional advancement -- cannot be measured in-product on a weekly cadence. This creates a dangerous gap where teams optimize for in-product engagement proxies while the actual value delivery is unmeasured.

Post-Acquisition Integration of Two Products

After a merger or acquisition, two product teams often bring incompatible metrics frameworks. Teams fight about which NSM to use, whether to report combined or separate metrics, and how to attribute users who use both products.


Example

Input:

"I need a metrics framework for our B2B project management SaaS. We have 2,000 teams on the platform. Our north star is probably something about active teams, but we haven't defined it precisely. The big problem is that teams sign up -- we're getting 200 new teams a month -- but 60% of them don't come back after the first month. Our L1 metrics are basically just signups and monthly active users but nobody agrees on what 'active' means. We don't have guardrails at all."


Output:

Product Metrics Framework: ProjectFlow (B2B Project Management SaaS)

Product Type: B2B SaaS -- Team Collaboration Tool

Business Model: Per-seat subscription with freemium entry tier

Lifecycle Stage: Growth (post-PMF, scaling phase)

Framework Version: v1.0 | Last Updated: Current Quarter | Next Review: End of Next Quarter


North Star Metric

| Field | Detail |

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

| Metric Name | Weekly Engaged Teams (WET) |

| Definition | Teams in which at least 3 distinct members performed the task_updated or comment_posted event in a rolling 7-day window |

| Formula | COUNT(DISTINCT team_id WHERE member_event_count >= 3 AND event_date >= TODAY - 7 AND event_type IN ('task_updated', 'comment_posted')) |

| Data Source | Amplitude -- task_updated and comment_posted event stream, joined to teams table |

| Current Value | 820 teams (41% of 2,000 total teams) |

| Target | 1,300 teams (65% of current base) within 2 quarters |

| Rationale | Captures team-level value delivery (collaborative use, not solo use), requires recurring behavior (7-day window excludes one-time users), requires multi-member engagement (a team using the tool together is the core value proposition). Excludes single-user teams to prevent inflation from trial accounts. Revenue and seat count are excluded because they lag this metric by 30-90 days. |

| NSM Test | (1) Measures user value, not business extraction -- yes. (2) Leads retention and expansion -- yes: internal analysis shows 90-day retention rate for teams that reach WET status within 14 days of signup is 78% vs. 22% for teams that do not. (3) Influenced by product teams -- yes: onboarding, feature adoption, and engagement flows all directly affect it. (4) Universally understandable -- yes. (5) If it grows while guardrails hold, is the business sustainably healthy? -- yes. |


L1 Metrics

| L1 Metric | Exact Definition | Formula | Owner | Current | Target | NSM Relationship |

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

| New Team Acquisition | Teams completing account setup (team created + at least 1 non-admin member invited) per calendar month | COUNT(team_id WHERE setup_completed = TRUE AND month = reporting_month) | Growth/Product | 200 teams/mo | 250 teams/mo (Q3) | Additive input |

| Activation Rate | % of new teams (from same month cohort) that become WET within 14 days of signup | WET_within_14d / new_teams_in_cohort | Product (Onboarding squad) | 28% | 50% (Q3) | Multiplicative |

| Engagement Depth | Median tasks updated per WET team per rolling 7-day window | MEDIAN(task_updated_count WHERE team IS WET AND window = last 7d) | Product (Core squad) | 18 tasks/team/wk | 28 tasks/team/wk | Correlative |

| 90-Day Team Retention | % of teams that became WET in a given month cohort and are still WET 90 days later | WET_at_day90 / WET_at_day1 (same cohort) | Product + CS | 38% | 60% (Q4) | Multiplicative |

| Seat Expansion | Average seat count per team after 90 days on platform | AVG(seat_count WHERE team_age_days >= 90) | Revenue/Product | 4.1 seats | 6.5 seats (Q4) | Correlative |

Retention note: The stated 60% first-month churn (meaning 40% first-month retention) is confirmed by the 38% 90-day WET retention rate above. This is the primary lever. Acquisition is not the constraint -- 200 new teams/month is reasonable. The constraint is activation and retention.


L2 Metrics

Under Activation Rate (28% -- priority focus)

| L2 Metric | Exact Definition | Current | Target | Data Source | Type |

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

| Time to First Task Creation (P50) | Median minutes from account setup completion to first task_created event, new teams in last 30d | 22 min | 8 min | Amplitude -- task_created | Input |

| Time to First Task Creation (P90) | P90 minutes to first task_created -- reveals tail friction | 4.2 hrs | 45 min | Amplitude -- task_created | Input |

| Onboarding Flow Completion Rate | % of new teams who complete all 5 onboarding checklist steps within 48h of signup | 31% | 60% | Amplitude -- onboarding_step_completed | Input |

| Second Member Invited (72h) | % of new teams where a second member accepts an invite within 72h of signup | 29% | 55% | Backend event -- invite_accepted | Input |

| Template Adoption (First Session) | % of new teams who apply a project template during their first session | 12% | 35% | Amplitude -- template_applied | Input |

Diagnostic note on Activation: The P90 time to first task of 4.2 hours indicates a bimodal distribution. Fast activators (who likely understand project tools) convert quickly. Slow activators are likely hitting a comprehension or motivation barrier. The second-member invite rate (29%) is the likely root cause -- single users who sign up without immediately inviting colleagues have no social reinforcement to complete setup. Template adoption at 12% suggests users are starting from blank-canvas onboarding rather than guided starting points.

Under 90-Day Team Retention (38% -- critical problem)

| L2 Metric | Exact Definition | Current | Target | Data Source | Type |

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

| WET Status at Day 30 | % of newly activated teams (WET within 14d) that are still WET at Day 30 | 62% | 80% | Amplitude cohort analysis | Output |

| Feature Breadth Score | Average distinct feature modules used per WET team per month (out of 7 core modules) | 2.1 | 3.5 | Amplitude -- module-level events | Input |

| Core Action Streak (3-of-4 weeks) | % of WET teams that were WET in 3 or more of the last 4 rolling 7-day windows | 44% | 65% | Amplitude -- WET cohort query | Output |

| Churn by Team Size | 90-day retention rate segmented: teams with 2 members vs. 3-5 members vs. 6+ members | 2-member: 28% / 3-5: 51% / 6+: 74% | 6+ cohort maintained; grow 3-5 cohort to 65% | Backend teams table join | Output |

| Resurrection Rate (90d) | % of teams that became inactive (not WET for 30+ days) and became WET again within 90 days | 11% | 20% | Amplitude -- WET reactivation | Output |

Diagnostic note on Retention: The team-size segmentation reveals the retention problem clearly. 2-member teams retain at 28% -- these are effectively trial accounts where a manager signed up without organizational buy-in. 6+ member teams retain at 74% -- these are real organizational deployments. The fix is not retention campaigns targeting churned teams; it is preventing small teams from failing to expand past 2 members in the first 30 days. This reframes the problem as an expansion-within-activation problem, not a late-stage retention problem.

Under New Team Acquisition (200/mo -- healthy, but quality matters)

| L2 Metric | Exact Definition

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.