/polymath-data:metrics-treefrom polymath-data
Decompose a North Star metric into a tree of input metrics so each team can see the lever they own; output is a tree, not a dashboard.
Ships in polymath-data. 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.
Decompose a North Star into the input metrics that move it. Each leaf is a lever a team owns.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
[TBD: query not yet run]; never an invented number.North Star: Weekly Active Buyers
Definition: distinct users with ≥1 paid purchase in the trailing 7 days.
Decomposition (multiplicative):
WAB = Reach × Activation × Repeat
Reach
└ Sessions / week
└ Marketing-driven sessions (owner: Growth)
└ Organic sessions (owner: SEO)
└ Returning-user sessions (owner: Engagement)
Activation
└ Sessions → first purchase rate
└ PDP load → add-to-cart rate (owner: Catalog)
└ Add-to-cart → checkout completion rate (owner: Checkout)
Repeat
└ Buyers (W) → buyers (W+1) retention
└ Post-purchase email open rate (owner: Lifecycle)
└ Reorder-flow completion rate (owner: Lifecycle)
Each leaf:
Sessions / week (organic):
SQL: count distinct session_id where source='organic' and ts >= now() - 7d
Baseline: 320k
Direction: ↑
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-data4 skills in this plugin
/run-experimentPlan an A/B (or A/B/n) experiment — hypothesis, primary + guardrail metrics, MDE + sample size + duration, randomization, stop conditions./sql-optimizeRead EXPLAIN ANALYZE output and propose targeted optimizations — index, predicate, join order, or query shape changes./sql-writeWrite a SQL query that answers a specific question; parameterized, dialect-aware, readable, with the assumed schema documented inline.Other plugins' skills for the same job