Agent skill

Kpi Tree Builder

by revfactory in revfactory/harness-100

Methodology for systematically designing KPI trees (metric hierarchy) and defining drill-down structures.

Apache-2.0Auto-check passedProduct & Project Management

Install Kpi Tree Builder

skills CLI
$ npx skills add revfactory/harness-100 --skill kpi-tree-builder -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install revfactory/harness-100 kpi-tree-builder --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/42-bi-dashboard/.claude/skills/kpi-tree-builder .claude/skills/kpi-tree-builder && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kpi-tree-builder
GitHub stars
1.3k
Token cost
~1.1k tokens
SKILL.md length
60 words
Files
1
Skills in repo
96
Repo updated
First seen
Licence
Apache-2.0

At a glance

Methodology for systematically designing KPI trees (metric hierarchy) and defining drill-down structures.

  • Build a KPI tree
  • SKILL.md covers Target Agents, KPI Tree Decomposition…, Domain-Specific KPI Tree… and KPI Definition Standard Form, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Metric hierarchy design

What it does

Kpi Tree Builder is an agent skill from revfactory/harness-100. Methodology for systematically designing KPI trees (metric hierarchy) and defining drill-down structures. Use this skill for 'build a KPI tree', 'metric hierarchy design', 'drill-down structure', 'KPI decomposition', 'performance metrics framework', 'revenue decomposition tree', and other KPI system design tasks. Note: actual database query optimization and real-time monitoring infrastructure construction are outside the scope of this skill.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Product & Project Management, covering Product metrics and OKRs and executive reporting. The licence is Apache-2.0.

When your agent uses it

  • Build a KPI tree
  • Metric hierarchy design
  • Drill-down structure
  • KPI decomposition

Example prompts

  • “build a KPI tree”
  • “metric hierarchy design”
  • “drill-down structure”
  • “/kpi-tree-builder”

What it can do on your machine

Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kpi Tree Builder loads about 1.1k tokens when it runs. Until then it costs about 116 tokens; SKILL.md has 60 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~116
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 60 words, ~1,115 tokens.

Download SKILL.mdSave it as .claude/skills/kpi-tree-builder/SKILL.md (or your agent's skills folder).
name
kpi-tree-builder
description
Methodology for systematically designing KPI trees (metric hierarchy) and defining drill-down structures. Use this skill for 'build a KPI tree', 'metric hierarchy design', 'drill-down structure', 'KPI decomposition', 'performance metrics framework', 'revenue decomposition tree', and other KPI system design tasks. Note: actual database query optimization and real-time monitoring infrastructure construction are outside the scope of this skill.

KPI Tree Builder — KPI Tree Design Methodology

A skill that enhances metric design for the kpi-designer and dashboard-builder.

Target Agents

  • kpi-designer — Systematically designs KPI hierarchies
  • dashboard-builder — Implements drill-down navigation

KPI Tree Decomposition Methodology

Multiplicative Decomposition
Revenue = Order Count x Average Order Value
       = (Visitors x Conversion Rate) x (Product Price x Items per Order)

Visitors = Organic Traffic + Paid Traffic + Direct Traffic
Conversion Rate = Cart Conversion x Checkout Conversion
Additive Decomposition
Total Cost = Personnel + Marketing + Server + Other Operating
Total Revenue = Product A Revenue + Product B Revenue + Service Revenue
Ratio Decomposition
Customer Lifetime Value (LTV) = ARPU x Average Subscription Duration
CAC Payback Period = CAC / Monthly ARPU
ROI = (Profit - Investment) / Investment x 100

Domain-Specific KPI Tree Templates

E-Commerce
Revenue
├── GMV (Gross Merchandise Value)
│   ├── Order Count
│   │   ├── Unique Visitors (UV)
│   │   │   ├── Organic Traffic
│   │   │   ├── Paid Traffic (CPC, CPA)
│   │   │   └── Referral Traffic
│   │   └── Purchase Conversion Rate (CVR)
│   │       ├── Cart Conversion Rate
│   │       └── Checkout Completion Rate
│   └── Average Order Value (AOV)
│       ├── Product Unit Price
│       └── Items per Order
├── Commission Rate
└── Cancellation/Return Rate
SaaS
ARR (Annual Recurring Revenue)
├── New ARR
│   ├── New Customer Count
│   │   ├── Lead Count
│   │   ├── Lead-to-Trial Conversion
│   │   └── Trial-to-Paid Conversion
│   └── New ARPA (Revenue per Account)
├── Expansion ARR (Upsell/Cross-sell)
│   ├── Expansion Customer Ratio
│   └── Expansion Amount
├── Churned ARR (-)
│   ├── Churned Customer Count
│   └── Churned ARPA
└── NRR (Net Revenue Retention)
    = (Starting ARR + Expansion - Contraction - Churn) / Starting ARR
Marketing
ROAS (Return on Ad Spend)
├── Ad Revenue
│   ├── Clicks
│   │   ├── Impressions
│   │   └── CTR (Click-Through Rate)
│   └── Value per Click
│       ├── Conversion Rate
│       └── Value per Conversion
└── Ad Spend
    ├── CPC x Clicks
    └── CPM x Impressions/1000

KPI Definition Standard Form

markdown
### KPI: [Metric Name]

| Item | Content |
|------|---------|
| Definition | [Clear definition of the metric] |
| Formula | [Calculation formula] |
| Unit | [%, currency, count, people, etc.] |
| Measurement Frequency | [Daily/Weekly/Monthly/Quarterly] |
| Data Source | [Table name or API] |
| Target | [Target value + rationale] |
| Threshold | [Warning: 80%, Critical: 60%] |
| Owner | [Responsible team/individual] |
| Drill-Down | [Sub-metric list] |
| Filters | [Period, region, product, etc.] |

Metric Quality Checklist (SMART-D)

S - Specific: Is it clearly defined?
M - Measurable: Can it be measured quantitatively?
A - Actionable: Can decisions be made from this metric?
R - Relevant: Is it connected to business objectives?
T - Timely: Is it refreshed at an appropriate frequency?
D - Drillable: Can it be decomposed for root cause analysis?

Threshold Setting Methods

Method 1: Statistics-based
  - Mean +/- 1 sigma: Warning
  - Mean +/- 2 sigma: Critical
  - Based on past 12 months of data

Method 2: Benchmark-based
  - Below 80% of industry average: Warning
  - Below 60% of industry average: Critical

Method 3: Target-based
  - Below 80% of target: Warning
  - Below 60% of target: Critical

Method 4: Trend-based
  - -10% vs previous week: Warning
  - -20% vs previous week: Critical

Drill-Down Design Patterns

Level 0: Executive Summary
  > 3-5 key KPIs, trends, anomaly alerts

Level 1: Department Dashboards
  > Key metrics per Marketing/Sales/Operations/CS

Level 2: Detailed Analysis
  > Time series, segment comparisons, cohorts

Level 3: Raw Data
  > Individual transactions, filtering, export

© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in en/42-bi-dashboard/.claude/skills/kpi-tree-builder of revfactory/harness-100.

Open the folder on GitHubat commit 8e8d35c

Compare with similar skills

Kpi Tree Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kpi Tree Builder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kpi Tree Builder this skillrevfactory/harness-1001.3k—~1.1kAutomated safety check: PassApache-2.0
Analytics Productsickn33/agentic-awesome-skills47k2 repos~2.8kAutomated safety check: PassMIT
Metricsmenkesu/awesome-pm-skills429—~5kAutomated safety check: PassCustom licence
Lens Metricsjeremylongshore/tons-of-skills-marketplace2.8k—~2.8kAutomated safety check: NotesMIT
Algo Social Engagementasgard-ai-platform/skills241—~1.1kAutomated safety check: PassMIT
Product Metrics Dashboard Designphuryn/pm-skills27k—~1.3kAutomated safety check: PassMIT

Similar skills

  • Analytics Product

    sickn33/agentic-awesome-skills

    Analytics de produto — PostHog, Mixpanel, eventos, funnels, cohorts, retencao, north star metric, OKRs e dashboards de produto.

    47k GitHub starsUsed in 2 repos~2.8k tokens
    Product & Project ManagementAuto-check passed
  • Metrics

    menkesu/awesome-pm-skills

    Builds your north star metric, a metric tree with owned input metrics and guardrails, and a review cadence, as a one-page metrics spec you can paste into a doc.

    429 GitHub stars~5k tokensUpdated 2 days ago
    Product & Project ManagementAuto-check passed
  • Lens Metrics

    jeremylongshore/tons-of-skills-marketplace

    Produce a complete metrics definition doc — metric name, formula, data source, segmentation, SQL or event tracking spec, and what good/bad looks like.

    2.8k GitHub stars~2.8k tokensUpdated today
    Product & Project ManagementAuto-check: notes
  • Algo Social Engagement

    asgard-ai-platform/skills

    Calculate and benchmark social media engagement rates across platforms and variants.

    241 GitHub stars~1.1k tokensUpdated 4 mo ago
    Product & Project ManagementAuto-check passed
  • Designs a product metrics dashboard: a North Star and input metrics, a definition table with data sources, chart types and alert thresholds, and a screen layout.

    27k GitHub stars~1.3k tokensUpdated 24 days ago
    Product & Project ManagementAuto-check passed
  • Prd V03 Outcome Definition

    mattgierhart/PRD-driven-context-engineering

    Define measurable success metrics (KPIs) tied to product type during PRD v0.3 Commercial Model.

    180 GitHub stars~1.9k tokensUpdated 1 mo ago
    Product & Project ManagementAuto-check passed

More from revfactory/harness-100

All 96 skills in this repo
  • Anti Bot Analyzer

    revfactory/harness-100

    A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.

    1.3k GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check passed
  • API Error Design Patterns

    revfactory/harness-100

    Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed
  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    Auto-check passed
  • Arg Parser Generator

    revfactory/harness-100

    Methodology for systematically designing and generating CLI tool argument parser structures.

    1.3k GitHub stars~1.2k tokensUpdated 6 mo ago
    Auto-check passed
  • Audience Segmentation

    revfactory/harness-100

    Audience segmentation skill used by the analyst and curator agents.

    1.3k GitHub stars~1.3k tokensUpdated 6 mo ago
    Auto-check passed
  • Audio Storytelling

    revfactory/harness-100

    Audio storytelling skill used by the podcast scriptwriter and show note editor.

    1.3k GitHub stars~1.6k tokensUpdated 6 mo ago
    Auto-check passed

Questions about Kpi Tree Builder

What does Kpi Tree Builder do?

Methodology for systematically designing KPI trees (metric hierarchy) and defining drill-down structures. Kpi Tree Builder is an agent skill from revfactory/harness-100. Methodology for systematically designing KPI trees (metric hierarchy) and defining drill-down structures.

When should I use Kpi Tree Builder?

Kpi Tree Builder fits situations like: build a KPI tree; metric hierarchy design; drill-down structure; KPI decomposition.

How do I install Kpi Tree Builder in Claude Code?

Run `npx skills add revfactory/harness-100 --skill kpi-tree-builder -a claude-code`. Or copy the skill folder (en/42-bi-dashboard/.claude/skills/kpi-tree-builder in revfactory/harness-100) into .claude/skills/kpi-tree-builder in your project. Claude Code loads it when a task matches its description.

How do I install Kpi Tree Builder in Codex?

Run `npx skills add revfactory/harness-100 --skill kpi-tree-builder -a codex`. Or copy the skill folder (en/42-bi-dashboard/.claude/skills/kpi-tree-builder in revfactory/harness-100) into .agents/skills/kpi-tree-builder in your project. Codex loads it when a task matches its description.

Can I use Kpi Tree Builder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill kpi-tree-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kpi-tree-builder, .gemini/skills/kpi-tree-builder, .github/skills/kpi-tree-builder and .opencode/skills/kpi-tree-builder in your project.

What does Kpi Tree Builder need to run?

SKILL.md names no scripts, command-line tools or credentials: Kpi Tree Builder is instructions for the agent only.

Does Kpi Tree Builder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Kpi Tree Builder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Kpi Tree Builder use?

Kpi Tree Builder is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kpi Tree Builder use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kpi Tree Builder?

Skills that share tags, products or a category with Kpi Tree Builder: Analytics Product (sickn33/agentic-awesome-skills, 47k stars), Metrics (menkesu/awesome-pm-skills, 429 stars), Lens Metrics (jeremylongshore/tons-of-skills-marketplace, 2.8k stars) and Algo Social Engagement (asgard-ai-platform/skills, 241 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kpi Tree Builder?

revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,293 GitHub stars. The repository holds 96 skills in this directory. The repository was last updated on March 22, 2026.

Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.