
Launchdarkly Metric Create
This one helps you create LaunchDarkly metrics the right way: events first, then the metric. It's smarter than most tools because it checks whether your event is actually flowing before letting you create a metric that measures nothing. For custom metrics, it'll instrument the track call, wire up your SDK keys, and handle the .env config. For pageview and click metrics, it skips all that since those fire automatically. The documentation is unusually careful about keeping your local codebase name separate from your LaunchDarkly project key, which is the kind of thing that trips people up constantly. It won't let you silently create a broken metric, which is refreshing.
- skills.sh installs
- 2.3K
- GitHub stars
- 19
- last updated
- Jul 14, 2026
Install
$ npx -y skills add launchdarkly/agent-skills --skill launchdarkly-metric-create --agent claude-codeInstalls into .claude/skills of the current project.
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 metricget-metrics— verify it after creationget-environment— fetch the client-side ID when instrumenting browser or mobile codeget-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 conventionsget-metric-events— discover which event keys have recent activity before committing to one (custom metrics only)
Two Different "Projects" — Never Confuse Them
Sponsors
Details
- Repository
- github.com/launchdarkly/agent-skills
- Category
- AI & Agent Building
- First seen
- May 16, 2026
More from launchdarkly/agent-skills
All 41- Launchdarkly Metric Instrument2.3K
- Aiconfig Online Evals2.2K
- Aiconfig Targeting2.2K
- Aiconfig Ai Metrics2K
- Aiconfig Custom Metrics2K
- Aiconfig Migrate2K
- Apply2K
- Detect2K
- First Flag2K
- Launchdarkly Experiment Setup2K
- Launchdarkly Guarded Rollout2K
- Mcp Configure2K
- Plan2K
- Sdk Install2K
- Aiconfig Agent Graphs1.8K
- Aiconfig Snippets1.8K
- Agent Graphs1.3K
- Built In Metrics1.3K
- Configs Create1.3K
- Configs Targeting1.3K
- Configs Update1.3K
- Configs Variations1.3K
- Custom Metrics1.3K
- Migrate1.3K