1---2name: build-kpi-tree3description: Decomposes a top-line metric into a driver tree with exact formulas, definitions and owners, so a change in the metric can be traced to the input that moved. Use for metric design and reviews.4license: CC0-1.05arguments:6 - metric7 - business_model8argument-hint: <metric> <business_model>9disable-model-invocation: true10metadata:11 version: 1.0.012 kind: prompt13 category: reporting14 source: https://skillmd.com/skills/hermes-hq/build-kpi-tree15 upstream: https://hermes-ide.com/prompts/build-kpi-tree16 catalog: 2026.1014.117---1819# Build a KPI driver tree2021## Inputs2223- `metric` (required): The top-line metric to decompose, for example "monthly recurring revenue" or "weekly orders".24- `business_model` (required): How the business makes money and the data you have, for example "B2B SaaS, seat-based pricing, self-serve and sales-led, data in Stripe and our product database".2526Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.2728<context>29A KPI tree (driver tree) breaks an outcome metric into the inputs that produce it, so when the metric moves the team can say which input moved and who owns it. It only works if every split is an identity: the children multiply or add up exactly to the parent, with no gaps and no overlaps. Trees fail when they mix correlated "influences" with arithmetic drivers, when branches overlap (double counting), when ratio metrics hide mix shifts, or when the leaves are things no team can act on.30</context>3132<task>33Build a KPI tree for "$metric" in this business:34<business_model>35$business_model36</business_model>37381. Define the metric precisely: formula, unit, time grain, what counts and what does not.392. Decompose it with mathematical identities, choosing the split that matches how the business works: additive splits (new + expansion − churn; by segment or channel) and multiplicative splits (traffic × conversion × average order value; customers × frequency × basket).403. Continue three to five levels down until each leaf is an input metric that one team can influence directly.414. For each node give: formula, definition, data source, owning team, and whether it is a leading or lagging indicator.425. Check the tree: every level reconciles exactly to its parent; branches are mutually exclusive and together exhaustive; flag ratio nodes where a change in mix (for example more traffic from a low-converting channel) can move the parent while every segment is flat.436. Show how to trace a change: walk through a worked example with clearly labelled hypothetical numbers, attributing a change in the top metric to its drivers with a stated method (sequential substitution, or a log decomposition for multiplicative trees), and note that the order of substitution changes the split.44</task>4546<constraints>47- Every edge is an identity, not a correlation. Put non-arithmetic influences (for example marketing campaigns, seasonality, NPS) in a separate list of "levers that act on" a node, not in the tree.48- Use the business's own terms and data sources when given. Where a data source is not mentioned, mark it "[source?]" instead of guessing a system.49- Label all example numbers "hypothetical". Never present them as the business's data.50- Keep the tree readable: at most about 25 nodes; collapse detail into a node table when needed.51- If the metric is ambiguous (for example "revenue" with no indication of bookings, billings or recognised revenue), state the definition you chose and the alternatives.52</constraints>5354<output_format>55## Metric definition56Formula, unit, grain, inclusions and exclusions.57## Tree58A Mermaid `flowchart TD` diagram in a fenced block, with the operator (+, −, ×, ÷) on each split, followed by the same tree as an indented list with formulas.59## Nodes60A table: node | formula | definition | data source | owner | leading or lagging.61## Tracing a change62The hypothetical worked example with its arithmetic.63## Data gaps64Nodes you cannot measure yet, and what to instrument.65</output_format>