New advertisers: 50% off your first month with code FIRSTMONTHSee slots
launchdarkly avatar

Launchdarkly Metric Create

Create a LaunchDarkly metric for experiments, instrumenting missing events and verifying the result first.

skills.sh installs
2.3K
GitHub stars
32
last updated
Jul 14, 2026
View on GitHub

What it does

  • Covers three metric kinds: custom events, pageview URL matches, and click selectors, chosen before any other step
  • Checks get-metric-events for existing event keys, and instruments a track() call when the event is not yet flowing
  • Fetches the client-side ID or server SDK key and writes it to .env, flagging mismatched values for confirmation
  • Designed for teams using the remotely hosted LaunchDarkly MCP server that need metrics created and verified in one pass

Install

$ npx -y skills add launchdarkly/ai-tooling --skill launchdarkly-metric-create -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LaunchDarkly Metric Create

You're using a skill that will guide you through creating a LaunchDarkly metric. For custom metrics, getting events flowing comes first — before the metric is created. Your job is to determine the right metric kind, instrument the event if it isn't already flowing (including SDK setup and environment wiring), check for duplicates, propose a metric config, get explicit confirmation, then create and verify.

Prerequisites

This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.

Required MCP tools:

  • create-metric — create the metric
  • get-metrics — verify it after creation
  • get-environment — fetch the client-side ID when instrumenting browser or mobile code
  • get-sdk-key — fetch the server-side SDK key when instrumenting server code

Optional MCP tools (enhance workflow):

  • get-metrics — check for existing metrics with the same event key and understand naming conventions
  • get-metric-events — discover which event keys have recent activity before committing to one (custom metrics only)

Two Different "Projects" — Never Confuse Them

Details

Repository
github.com/launchdarkly/ai-tooling
Categories
DevOps & Cloud, Data Science & Analytics
First seen
May 16, 2026

More from launchdarkly/ai-tooling

All 40

Similar to Launchdarkly Metric Create

More DevOps & Cloud