Agent skill

Build Metric Tree

by amplitude in amplitude/builder-skills

Decompose a top-line metric into a quantified metric tree with mathematical relationships, size each node, and identify where the real leverage is.

No licenceAuto-check passed

Install Build Metric Tree

skills CLI
$ npx skills add amplitude/builder-skills --skill build-metric-tree -a claude-code

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

GitHub CLI
$ gh skill install amplitude/builder-skills build-metric-tree --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/amplitude/builder-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/growth-skills/skills/build-metric-tree .claude/skills/build-metric-tree && 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
build-metric-tree
GitHub stars
159
Token cost
~1.8k tokens
SKILL.md length
239 words
Files
1
Skills in repo
61
Repo updated
First seen
Licence
None found

At a glance

Decompose a top-line metric into a quantified metric tree with mathematical relationships, size each node, and identify where the real leverage is.

  • A PM needs to understand what drives a metric
  • SKILL.md covers Prompt Template and Tips
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Where NOT to focus

What it does

Build Metric Tree is an agent skill from amplitude/builder-skills. Decompose a top-line metric into a quantified metric tree with mathematical relationships, size each node, and identify where the real leverage is. Use when a PM needs to understand what drives a metric, where to focus, or where NOT to focus.

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

The repository describes itself as: Open-source AI skills for product managers — battle-tested by PMs at Amplitude.

When your agent uses it

  • A PM needs to understand what drives a metric
  • Where NOT to focus

Example prompts

  • “/build-metric-tree”

What it can do on your machine

Read from SKILL.md and the folder at commit 51838c2. 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.

    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

Build Metric Tree loads about 1.8k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 239 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 239 words (~1,766 tokens).

“Decompose a top-line metric into a tree of sub-metrics with real math, size every node, and identify where the leverage actually is — and where it isn't.”

— opening of SKILL.md by amplitude
name
build-metric-tree
suggest_when
User wants to break down a metric, build a KPI tree, find growth levers, understand what drives a number, asks "how do we move X", "where should we focus"…

Read the full SKILL.md on GitHub

Files

Just SKILL.md in growth-skills/skills/build-metric-tree of amplitude/builder-skills.

Open the folder on GitHubat commit 51838c2

Compare with similar skills

Build Metric Tree 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.

Build Metric Tree compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Build Metric Tree this skillamplitude/builder-skills159—~1.8kAutomated safety check: PassNone
Metric Tree Buildermohitagw15856/pm-claude-skills1.4k—~881Automated safety check: PassMIT
North Star Metricphuryn/pm-skills27k—~1kAutomated safety check: PassMIT
Investigate MetricPostHog/posthog40k—~1.9kAutomated safety check: PassCustom licence
Product Metrics Dashboard Designphuryn/pm-skills27k—~1.3kAutomated safety check: PassMIT
CI Metricspytorch/pytorch104k—~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Metric Tree Builder

    mohitagw15856/pm-claude-skills

    Decompose a north-star metric into a driver tree — the inputs and sub-inputs that actually move it — so a team knows which levers to pull.

    1.4k GitHub stars~881 tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • North Star Metric

    phuryn/pm-skills

    Define a North Star Metric and 3-5 supporting input metrics that form a metrics constellation.

    27k GitHub stars~1k tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Investigate Metric

    PostHog/posthog

    Official

    Diagnose why a product metric changed (dropped, spiked, or plateaued) by orchestrating breakdowns, actors, paths, lifecycle, retention, and annotations queries.

    40k GitHub stars~1.9k tokensUpdated today
    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 yesterday
    Product & Project ManagementAuto-check passed
  • CI Metrics

    pytorch/pytorch

    Query PyTorch CI, GitHub Actions, HUD, Grafana, and infrastructure metrics.

    104k GitHub stars~1.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Track, calculate, and optimize key performance metrics for SaaS, marketplace, consumer, and B2B startups from seed through Series A, including unit economics, growth efficiency, and cash management.

    40k GitHub stars~2.5k tokensUpdated 6 days ago
    Business, Finance & HRAuto-check passed

More from amplitude/builder-skills

All 61 skills in this repo
  • 7 Powers Analysis

    amplitude/builder-skills

    Analyzes a business, product or feature with Hamilton Helmer's 7 Powers framework to judge competitive advantage and how long it will last.

    159 GitHub stars~1.1k tokensUpdated 2 mo ago
    Auto-check passed
  • Amplitude Custom Agent Builder

    amplitude/builder-skills

    Helps an Amplitude user design a custom agent by proposing use cases that fit their role and data, shaping a spec, and returning a Global Agent link that builds it.

    159 GitHub stars~2.5k tokensUpdated 2 mo ago
    Auto-check passed
  • Good Strategy Bad Strategy Kernel

    amplitude/builder-skills

    Evaluates or drafts a strategy using Rumelt's kernel of diagnosis, guiding policy and coherent actions, to expose goal lists posing as strategy.

    159 GitHub stars~2.2k tokensUpdated 2 mo ago
    Auto-check passed
  • High Output Management Framework

    amplitude/builder-skills

    Applies Andy Grove's High Output Management ideas to diagnose where a team loses output and to design meetings, processes and management decisions.

    159 GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Playing to Win Strategy

    amplitude/builder-skills

    Walks a team through Lafley and Martin's five-choice cascade to pin down where to compete and how to win there.

    159 GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Amazon Working Backwards

    amplitude/builder-skills

    Write a PR/FAQ for a product idea using Amazon's Working Backwards process.

    159 GitHub stars~1.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Build Metric Tree

What does Build Metric Tree do?

Decompose a top-line metric into a quantified metric tree with mathematical relationships, size each node, and identify where the real leverage is. Build Metric Tree is an agent skill from amplitude/builder-skills. Decompose a top-line metric into a quantified metric tree with mathematical relationships, size each node, and identify where the real leverage is.

When should I use Build Metric Tree?

Build Metric Tree fits situations like: A PM needs to understand what drives a metric; where NOT to focus.

How do I install Build Metric Tree in Claude Code?

Run `npx skills add amplitude/builder-skills --skill build-metric-tree -a claude-code`. Or copy the skill folder (growth-skills/skills/build-metric-tree in amplitude/builder-skills) into .claude/skills/build-metric-tree in your project. Claude Code loads it when a task matches its description.

How do I install Build Metric Tree in Codex?

Run `npx skills add amplitude/builder-skills --skill build-metric-tree -a codex`. Or copy the skill folder (growth-skills/skills/build-metric-tree in amplitude/builder-skills) into .agents/skills/build-metric-tree in your project. Codex loads it when a task matches its description.

Can I use Build Metric Tree 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 amplitude/builder-skills --skill build-metric-tree -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/build-metric-tree, .gemini/skills/build-metric-tree, .github/skills/build-metric-tree and .opencode/skills/build-metric-tree in your project.

What does Build Metric Tree need to run?

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

Does Build Metric Tree 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 Build Metric Tree 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 Build Metric Tree use?

No licence was found for Build Metric Tree or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Build Metric Tree use?

About 1.8k tokens (SKILL.md is roughly 7.1k 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 Build Metric Tree?

Skills that share tags, products or a category with Build Metric Tree: Metric Tree Builder (mohitagw15856/pm-claude-skills, 1.4k stars), North Star Metric (phuryn/pm-skills, 27k stars), Investigate Metric (PostHog/posthog, 40k stars) and Product Metrics Dashboard Design (phuryn/pm-skills, 27k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Build Metric Tree?

amplitude (a GitHub organization) maintains it in amplitude/builder-skills, which has 159 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on July 24, 2026.

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