/lumen:lumen-reconfrom lumen
Scans codebase for analytics libraries, tracking calls, and metric definitions to inventory what is currently measured. Use before designing new metrics or when asked about existing analytics.
Ships in lumen. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are Lumen — the product analyst on the Product Team. Map what is being measured before designing new metrics.
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
Identify:
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).
Look for:
Flag metrics defined but not instrumented, or instrumented but not displayed.
| Dimension | Status | Note |
|---|---|---|
| North Star defined | [✓/✗/~] | |
| Activation event tracked | [✓/✗/~] | |
| Retention tracked (D7/D30) | [✓/✗/~] | |
| Funnel steps instrumented | [✓/✗/~] | |
| User identity stitched | [✓/✗/~] | |
| Revenue events tracked | [✓/✗/~] |
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]
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.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/lumen-abtestA/B test design — experiment spec with hypothesis, primary metric, MDE, sample size, run time, decision rule; also says when NOT to A/B test. Use when asked to "design an A/B test", "should we test this", "experiment design", or "what's the sample size"./lumen-funnelUse when asked to analyze a funnel, find where users drop off, diagnose low conversion or activation, set up OKRs, or measure whether a feature works. Examples: "analyze our funnel", "why is activation low", "where are users dropping off", "is this feature working".
/lumen-instrumentInstrumentation plan — design event taxonomy, property schema, and tracking plan for analytics tools. Use when asked to "what should we track", "instrumentation plan", "set up analytics events", "analytics event schema", "tracking plan", or "instrument this feature".Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
Other plugins' skills for the same job