lumen-recon
Analytics reconnaissance — scan event tracking, metric definitions, dashboards and analytics config to see what is currently measured. Use when asked "what are we tracking", "audit our analytics", "what metrics exist", "analytics inventory", or before designing new metrics or instrumentation.
- License 许可
- MIT
- 所属仓库
- tonone-ai/tonone
- 最近更新
- 2026-11-11
- Stars
- ★ 77
- Forks
- 11
01 前言 Front Matter
- name
- lumen-recon
- tags
- [ "product", "analytics", "recon" ]
- author
- tonone-ai <hello@tonone.ai>
- license
- MIT
- version
- 0.6.4
- description
- Analytics reconnaissance — scan event tracking, metric definitions, dashboards and analytics config to see what is currently measured. Use when asked "what are we tracking", "audit our analytics", "what metrics exist", "analytics inventory", or before designing new metrics or instrumentation.
- allowed-tools
- Read, Bash, Glob, Grep, WebFetch, WebSearch, AskUserQuestion
- compatibility
- Designed for Claude Code
02 资源文件 1
- 其他SKILL.md.tmpl3.9 KB
03 SKILL.md 正文
<!-- GENERATED from SKILL.md.tmpl by scripts/gen-skill-docs.py — edit the .tmpl or skills/_sections/*.md, not this file -->
Analytics Reconnaissance
You are Lumen — the product analyst on the Product Team. Map what is being measured before designing new metrics.
Steps
Step 0: Detect Environment
Scan for analytics and tracking indicators:
# Analytics libraries
find . -name "package.json" | xargs grep -l "posthog\|mixpanel\|segment\|amplitude\|heap\|analytics\|gtag\|ga4" 2>/dev/null | head -5
find . -name "requirements*.txt" -o -name "pyproject.toml" | xargs grep -l "posthog\|mixpanel\|segment\|amplitude" 2>/dev/null | head -5
# Tracking calls
find . -name "*.ts" -o -name "*.tsx" -o -name "*.js" -o -name "*.py" 2>/dev/null | xargs grep -l "track\|identify\|capture\|logEvent\|analytics\." 2>/dev/null | head -20
# Analytics docs
find . -name "*.md" | xargs grep -l "metrics\|funnel\|retention\|event\|dashboard\|OKR\|north star" 2>/dev/null | head -10
Step 1: Inventory Analytics Stack
Identify:
- Analytics platform — PostHog, Mixpanel, Amplitude, Segment, GA4, custom, or none
- Backend tracking — server-side events sent (Python/Node/Go SDKs)
- Frontend tracking — client-side events (JS/TS SDKs, autocapture)
- Data warehouse — BigQuery, Snowflake, Redshift, or none
- BI tool — Metabase, Looker, Grafana, Superset, or none
Step 2: Inventory Events Being Tracked
Read tracking code and list:
| Event Name | Where Fired | Properties | Notes |
|---|---|---|---|
| [event] | [page/service] | [props] | [any gaps] |
Note: missing events for key user actions (sign up, activation, first value, churn signals).
Step 3: Inventory Metric Definitions
Look for:
- North Star metric — single metric representing core value delivery
- Input metrics — leading indicators driving North Star
- OKR key results — specific, measurable targets for this period
- Dashboard definitions — what's on main product dashboard
Flag metrics defined but not instrumented, or instrumented but not displayed.
Step 4: Assess Analytics Health
| Dimension | Status | Note |
|---|---|---|
| North Star defined | [✓/✗/~] | |
| Activation event tracked | [✓/✗/~] | |
| Retention tracked (D7/D30) | [✓/✗/~] | |
| Funnel steps instrumented | [✓/✗/~] | |
| User identity stitched | [✓/✗/~] | |
| Revenue events tracked | [✓/✗/~] |
Step 5: Present Assessment
Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
## Analytics Reconnaissance
**Platform:** [tool] | **Backend tracking:** [✓/✗] | **Frontend tracking:** [✓/✗]
**Total events tracked:** [N or unknown] | **North Star:** [metric or UNDEFINED]
### Events Inventory
| Lifecycle Stage | Events | Gap |
|----------------|--------|-----|
| Acquisition | [N] | [gap or none] |
| Activation | [N] | [gap or none] |
| Retention | [N] | [gap or none] |
| Revenue | [N] | [gap or none] |
| Referral | [N] | [gap or none] |
### Metric Definitions
- **Defined and tracked:** [list]
- **Defined but not tracked:** [list]
- **Not defined:** [key metrics that should exist]
### Critical Gaps
- [RED] [missing event that blocks product understanding]
- [YELLOW] [incomplete tracking or inconsistent naming]
### Recommended Next Step
[Which instrumentation gap to close first]
Delivery
If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
04 同仓库更多 Skills
tonone-doctor
Read-only health report for tonone state — corrupt .tonone/ files, hook wiring, drift between skills, mirror, bundles and index. Use when asked to "run tonone doctor", "check tonone health", "why is tonone broken", or "diagnose my setup".
prism-harden
Make UI survive real data — overflow, i18n, empty/error/loading states, extreme values. Use when asked to "harden this UI", "handle edge cases", or "make it production-ready".
prism-extract
Extract repeated values and markup into design tokens and components. Use when asked to "extract tokens", "dedupe components", "consolidate styles", or "clean up repeated UI".
apex-skillify
Turn a flow that just worked in this session into a reusable skill. Use when asked to "skillify this", "make this a skill", or "save this workflow".
apex-retro
Weekly engineering retrospective from git history. Use when asked to "retro", "what did we ship this week", or "weekly retrospective".
prism-redesign
Fix an existing UI in a bounded scan, diagnose, fix, re-lint loop. Use when asked to "redesign this UI", "clean up this screen", "fix the AI slop", or "make this look less generic". Lint-driven, max 3 loops, never changes brand direction silently.