launchdarkly-metric-create

Configure LaunchDarkly metrics for user-facing events with MCP tools.

25|8|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/launchdarkly/ai-tooling --skill launchdarkly-metric-create
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: launchdarkly-metric-create
Source: https://github.com/launchdarkly/ai-tooling/tree/main/skills/metrics/launchdarkly-metric-create
Command: npx skills add https://github.com/launchdarkly/ai-tooling --skill launchdarkly-metric-create

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps you create and verify LaunchDarkly metrics that measure experiments or rollouts, ensuring proper instrumentation and data collection before metric creation.

Core Features & Use Cases

  • Instrument events when needed and link them to a LaunchDarkly project/environment.
  • Scan for existing metrics to avoid duplicates and propose a suitable key/name.
  • Create and verify the metric with the correct kind (custom/pageview/click) and measure type.

Quick Start

Provide your LD projectKey, environment, and metric details, and I will guide you through instrumenting the event, configuring the metric, and validating its creation.

Frequently Asked Questions about launchdarkly-metric-create

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a LaunchDarkly metric to track a custom event?

To create a LaunchDarkly metric, you define a user-facing event within a specific project and environment, select the metric kind (custom, pageview, or click), and set the measure type. This workflow scans existing metrics to avoid duplicates and requires confirmation before finalizing the metric creation.

What's the best way to verify instrumentation for LaunchDarkly experiments?

The best way to verify instrumentation for LaunchDarkly experiments is to run a workflow that checks existing event tracking within your chosen environment. This process ensures your pageviews, button clicks, or custom events are properly instrumented and validated before metric creation.

How does metric creation work in LaunchDarkly?

Metric creation works by loading environment tools to list existing metrics and events, proposing a suitable key and name to prevent duplicates, and configuring the correct metric kind and measure type. The system requires explicit user confirmation before creating the final metric.

Can I use this workflow to instrument click events and pageviews for LaunchDarkly rollouts?

Yes, you can use this workflow to instrument click events and pageviews for LaunchDarkly rollouts. It supports common scenarios like pageviews, button clicks, and custom events, linking the tracked data to your chosen project and environment for accurate experiment measurement.

Do I need to specify a project and environment to set up LaunchDarkly metrics?

Yes, you need to specify a project and environment to set up LaunchDarkly metrics. The workflow loads environment-specific tools to retrieve configuration details and ensure the metric is correctly scoped to the right project context before you confirm creation.

Why are my LaunchDarkly experiment metrics not tracking custom events properly?

LaunchDarkly experiment metrics may not track custom events properly if instrumentation steps are skipped or the wrong metric kind is selected. You must ensure the event is instrumented and verify the configuration matches the custom event, pageview, or click before creating the metric.