/metrics-track
Set up a metrics tracking plan for a project. Defines PostHog event funnel, KPI benchmarks, and kill/iterate/scale decision thresholds based on lean startup principles.
MCP Tools (use if available)
kb_search(query) — find PostHog methodology, analytics patterns
If MCP tools are not available, fall back to Grep + Read.
Methodology Reference
This skill implements metrics tracking based on lean startup principles:
- Relative metrics vs niche benchmarks — compare against your own trajectory, not vanity averages
- Kill/iterate/scale decision rules — data-driven thresholds for product decisions (see step 7 below)
Steps
Parse project from $ARGUMENTS.
- Read PRD for features, ICP, monetization model.
- Read CLAUDE.md for stack (iOS/Web/both).
- If empty: ask via AskUserQuestion.
Detect platform:
- iOS app → PostHog iOS SDK events
- Web app → PostHog JS SDK events
- Both → cross-platform identity (shared user ID across platforms)
Load PostHog methodology:
- If MCP available:
kb_search("PostHog analytics events funnel identity")
- Otherwise: check project docs for existing analytics configuration
- Extract: event naming conventions, identity resolution, funnel pattern
Define event funnel based on PRD features:
Standard funnel stages (adapt per product):
Awareness → Acquisition → Activation → Revenue → Retention → Referral
Map to concrete events:
| Stage |
Event Name |
Trigger |
Properties |
| Awareness |
page_viewed |
Landing page visit |
source, utm_* |
| Acquisition |
app_installed or signed_up |
First install/signup |
platform, source |
| Activation |
core_action_completed |
First key action |
feature, duration_ms |
| Revenue |
purchase_completed |
First payment |
plan, amount, currency |
| Retention |
session_started |
Return visit (D1/D7/D30) |
session_number, days_since_install |
| Referral |
invite_sent |
Shared or referred |
channel, referral_code |
Forced reasoning — metrics selection:
Before defining KPIs, write out:
- North Star Metric: The ONE number that matters most (e.g., "weekly active users who completed core action")
- Leading indicators: What predicts the North Star? (e.g., "activation rate D1")
- Lagging indicators: What confirms success? (e.g., "MRR", "retention D30")
- Vanity metrics to AVOID: (e.g., total downloads without activation)
Set KPI benchmarks per stage:
| KPI |
Target |
Kill Threshold |
Scale Threshold |
Source |
| Landing → Signup |
3-5% |
< 1% |
> 8% |
Industry avg |
| Signup → Activation |
20-40% |
< 10% |
> 50% |
Product benchmark |
| D1 Retention |
25-40% |
< 15% |
> 50% |
Mobile avg |
| D7 Retention |
10-20% |
< 5% |
> 25% |
Mobile avg |
| D30 Retention |
5-10% |
< 2% |
> 15% |
Mobile avg |
| Trial → Paid |
2-5% |
< 1% |
> 8% |
SaaS avg |
Adjust based on product type (B2C vs B2B, free vs paid, mobile vs web).
Define decision rules (lean startup kill/iterate/scale):
## Decision Framework
**Review cadence:** Weekly (Fridays)
### KILL signals (any 2 = kill)
- [ ] Activation rate < {kill_threshold} after 2 weeks
- [ ] D7 retention < {kill_threshold} after 1 month
- [ ] Zero organic signups after 2 weeks of distribution
- [ ] CAC > 3x LTV estimate
### ITERATE signals
- [ ] Metrics between kill and scale thresholds
- [ ] Qualitative feedback suggests product-market fit issues
- [ ] One stage of funnel is dramatically worse than others
### SCALE signals (all 3 = scale)
- [ ] Activation rate > {scale_threshold}
- [ ] D7 retention > {scale_threshold}
- [ ] Organic growth > 10% week-over-week
Generate PostHog implementation snippets:
For iOS (Swift):
// Event tracking examples
PostHogSDK.shared.capture("core_action_completed", properties: [
"feature": "scan_receipt",
"duration_ms": elapsed
])
For Web (TypeScript):
// Event tracking examples
posthog.capture('signed_up', {
source: searchParams.get('utm_source') ?? 'direct',
plan: 'free'
})
Write metrics plan to docs/metrics-plan.md:
# Metrics Plan: {Project Name}
**Generated:** {YYYY-MM-DD}
**Platform:** {iOS / Web / Both}
**North Star:** {north star metric}
## Event Funnel
| Stage | Event | Properties |
|-------|-------|------------|
{event table from step 4}
## KPIs & Thresholds
| KPI | Target | Kill | Scale |
|-----|--------|------|-------|
{benchmark table from step 6}
## Decision Rules
{framework from step 7}
## Implementation
### PostHog Setup
- Project: {project name} (EU region)
- SDK: {posthog-ios / posthog-js}
- Identity: {anonymous → identified on signup}
### Code Snippets
{snippets from step 8}
## Dashboard Template
- Funnel: {stage1} → {stage2} → ... → {stageN}
- Retention: D1 / D7 / D30 cohort chart
- Revenue: MRR trend + trial conversion
---
*Generated by /metrics-track. Implement events, then review weekly.*
Output summary — North Star metric, key thresholds, first event to implement.
Notes
- PostHog EU hosting for privacy compliance
- Use
$set for user properties, capture for events
- Identity: start anonymous,
identify() on signup with user ID
- Cross-platform: same PostHog project, same user ID → unified journey
- Review dashboard weekly, make kill/iterate/scale decision monthly
Common Issues
Wrong platform detected
Cause: Project has both web and iOS indicators.
Fix: Skill checks package manifests. If both exist, it generates cross-platform identity setup. Verify the detected platform in the output.
KPI thresholds too aggressive
Cause: Default thresholds are industry averages.
Fix: Adjust thresholds in docs/metrics-plan.md based on your niche. B2B typically has lower volume but higher conversion.
PostHog SDK not in project
Cause: Metrics plan generated but SDK not installed.
Fix: This skill generates the PLAN only. Install PostHog SDK separately: pnpm add posthog-js (web) or add posthog-ios via SPM (iOS).
1---
2name: solo-metrics-track
3description: Set up PostHog metrics plan with event funnel, KPI benchmarks, and kill/iterate/scale decision thresholds. Use when user says "set up metrics", "track KPIs", "PostHog events", "funnel analysis", "when to kill or scale", or "success metrics". Do NOT use for SEO metrics (use /seo-audit).
4license: MIT
5metadata:
6 source: https://skillmd.com/skills/modbender/solo-metrics-track
7 author: fortunto2
8 version: "1.1.1"
9 openclaw:
10 emoji: "📈"
11allowed-tools: Read, Grep, Glob, Write, AskUserQuestion, mcp__solograph__kb_search
12argument-hint: "<project-name>"
13---
14
15# /metrics-track
16
17Set up a metrics tracking plan for a project. Defines PostHog event funnel, KPI benchmarks, and kill/iterate/scale decision thresholds based on lean startup principles.
18
19## MCP Tools (use if available)
20
21- `kb_search(query)` — find PostHog methodology, analytics patterns
22
23If MCP tools are not available, fall back to Grep + Read.
24
25## Methodology Reference
26
27This skill implements metrics tracking based on lean startup principles:
28- **Relative metrics vs niche benchmarks** — compare against your own trajectory, not vanity averages
29- **Kill/iterate/scale decision rules** — data-driven thresholds for product decisions (see step 7 below)
30
31## Steps
32
331. **Parse project** from `$ARGUMENTS`.
34 - Read PRD for features, ICP, monetization model.
35 - Read CLAUDE.md for stack (iOS/Web/both).
36 - If empty: ask via AskUserQuestion.
37
382. **Detect platform:**
39 - iOS app → PostHog iOS SDK events
40 - Web app → PostHog JS SDK events
41 - Both → cross-platform identity (shared user ID across platforms)
42
433. **Load PostHog methodology:**
44 - If MCP available: `kb_search("PostHog analytics events funnel identity")`
45 - Otherwise: check project docs for existing analytics configuration
46 - Extract: event naming conventions, identity resolution, funnel pattern
47
484. **Define event funnel** based on PRD features:
49
50 Standard funnel stages (adapt per product):
51 ```
52 Awareness → Acquisition → Activation → Revenue → Retention → Referral
53 ```
54
55 Map to concrete events:
56
57 | Stage | Event Name | Trigger | Properties |
58 |-------|-----------|---------|------------|
59 | Awareness | `page_viewed` | Landing page visit | `source`, `utm_*` |
60 | Acquisition | `app_installed` or `signed_up` | First install/signup | `platform`, `source` |
61 | Activation | `core_action_completed` | First key action | `feature`, `duration_ms` |
62 | Revenue | `purchase_completed` | First payment | `plan`, `amount`, `currency` |
63 | Retention | `session_started` | Return visit (D1/D7/D30) | `session_number`, `days_since_install` |
64 | Referral | `invite_sent` | Shared or referred | `channel`, `referral_code` |
65
665. **Forced reasoning — metrics selection:**
67 Before defining KPIs, write out:
68 - **North Star Metric:** The ONE number that matters most (e.g., "weekly active users who completed core action")
69 - **Leading indicators:** What predicts the North Star? (e.g., "activation rate D1")
70 - **Lagging indicators:** What confirms success? (e.g., "MRR", "retention D30")
71 - **Vanity metrics to AVOID:** (e.g., total downloads without activation)
72
736. **Set KPI benchmarks** per stage:
74
75 | KPI | Target | Kill Threshold | Scale Threshold | Source |
76 |-----|--------|---------------|-----------------|--------|
77 | Landing → Signup | 3-5% | < 1% | > 8% | Industry avg |
78 | Signup → Activation | 20-40% | < 10% | > 50% | Product benchmark |
79 | D1 Retention | 25-40% | < 15% | > 50% | Mobile avg |
80 | D7 Retention | 10-20% | < 5% | > 25% | Mobile avg |
81 | D30 Retention | 5-10% | < 2% | > 15% | Mobile avg |
82 | Trial → Paid | 2-5% | < 1% | > 8% | SaaS avg |
83
84 Adjust based on product type (B2C vs B2B, free vs paid, mobile vs web).
85
867. **Define decision rules** (lean startup kill/iterate/scale):
87
88 ```markdown
89 ## Decision Framework
90
91 **Review cadence:** Weekly (Fridays)
92
93 ### KILL signals (any 2 = kill)
94 - [ ] Activation rate < {kill_threshold} after 2 weeks
95 - [ ] D7 retention < {kill_threshold} after 1 month
96 - [ ] Zero organic signups after 2 weeks of distribution
97 - [ ] CAC > 3x LTV estimate
98
99 ### ITERATE signals
100 - [ ] Metrics between kill and scale thresholds
101 - [ ] Qualitative feedback suggests product-market fit issues
102 - [ ] One stage of funnel is dramatically worse than others
103
104 ### SCALE signals (all 3 = scale)
105 - [ ] Activation rate > {scale_threshold}
106 - [ ] D7 retention > {scale_threshold}
107 - [ ] Organic growth > 10% week-over-week
108 ```
109
1108. **Generate PostHog implementation snippets:**
111
112 ### For iOS (Swift):
113 ```swift
114 // Event tracking examples
115 PostHogSDK.shared.capture("core_action_completed", properties: [
116 "feature": "scan_receipt",
117 "duration_ms": elapsed
118 ])
119 ```
120
121 ### For Web (TypeScript):
122 ```typescript
123 // Event tracking examples
124 posthog.capture('signed_up', {
125 source: searchParams.get('utm_source') ?? 'direct',
126 plan: 'free'
127 })
128 ```
129
1309. **Write metrics plan** to `docs/metrics-plan.md`:
131
132 ```markdown
133 # Metrics Plan: {Project Name}
134
135 **Generated:** {YYYY-MM-DD}
136 **Platform:** {iOS / Web / Both}
137 **North Star:** {north star metric}
138
139 ## Event Funnel
140
141 | Stage | Event | Properties |
142 |-------|-------|------------|
143 {event table from step 4}
144
145 ## KPIs & Thresholds
146
147 | KPI | Target | Kill | Scale |
148 |-----|--------|------|-------|
149 {benchmark table from step 6}
150
151 ## Decision Rules
152
153 {framework from step 7}
154
155 ## Implementation
156
157 ### PostHog Setup
158 - Project: {project name} (EU region)
159 - SDK: {posthog-ios / posthog-js}
160 - Identity: {anonymous → identified on signup}
161
162 ### Code Snippets
163 {snippets from step 8}
164
165 ## Dashboard Template
166 - Funnel: {stage1} → {stage2} → ... → {stageN}
167 - Retention: D1 / D7 / D30 cohort chart
168 - Revenue: MRR trend + trial conversion
169
170 ---
171 *Generated by /metrics-track. Implement events, then review weekly.*
172 ```
173
17410. **Output summary** — North Star metric, key thresholds, first event to implement.
175
176## Notes
177
178- PostHog EU hosting for privacy compliance
179- Use `$set` for user properties, `capture` for events
180- Identity: start anonymous, `identify()` on signup with user ID
181- Cross-platform: same PostHog project, same user ID → unified journey
182- Review dashboard weekly, make kill/iterate/scale decision monthly
183
184## Common Issues
185
186### Wrong platform detected
187**Cause:** Project has both web and iOS indicators.
188**Fix:** Skill checks package manifests. If both exist, it generates cross-platform identity setup. Verify the detected platform in the output.
189
190### KPI thresholds too aggressive
191**Cause:** Default thresholds are industry averages.
192**Fix:** Adjust thresholds in `docs/metrics-plan.md` based on your niche. B2B typically has lower volume but higher conversion.
193
194### PostHog SDK not in project
195**Cause:** Metrics plan generated but SDK not installed.
196**Fix:** This skill generates the PLAN only. Install PostHog SDK separately: `pnpm add posthog-js` (web) or add `posthog-ios` via SPM (iOS).