
launchdarkly-metric-instrument
Instrument a LaunchDarkly metric event in a codebase by adding a track() call
by launchdarklyFree
Description
launchdarkly-metric-instrument is an agent skill that adds a track() call to a codebase so a LaunchDarkly metric can measure an action. The agent first detects the LaunchDarkly SDK that the codebase already uses, then finds the right place in the code for the call, writes it in the correct form for that SDK, and checks that events are reaching LaunchDarkly. Before it writes code, it looks at the existing LaunchDarkly setup in the project. If SDK initialization is needed, the skill can fetch the SDK key for the correct environment through the get-project tool. Verification uses list-metric-events, which shows whether the new event key has recent activity. The skill requires the remotely hosted LaunchDarkly MCP server to be configured, and list-metric-events is required. It is aimed at engineers who want an action in their application, such as a sign-up or a purchase, to count toward a metric, without hand-writing the SDK call and checking the event flow themselves. Install it with npx skills add https://github.com/launchdarkly/ai-tooling --skill launchdarkly-metric-instrument.…
Highlights
- Detects the LaunchDarkly SDK already in the codebase
- Adds the track() call at the right place
- Fetches the SDK key for the right environment
- Verifies events reach LaunchDarkly
- Works from the remote LaunchDarkly MCP server
Ratings & Reviews
No ratings yet
Be the first to rate launchdarkly-metric-instrument.
People also visit
launchdarkly-metric-instrument FAQ
What does this skill add to my code?
A track() call for a LaunchDarkly metric event at the place where the action happens.
How does it choose how to write the call?
It first detects the LaunchDarkly SDK your codebase uses, and writes the call for that SDK.
How does it check that it worked?
It uses list-metric-events to verify that the event is flowing to LaunchDarkly.
What do I need to use it?
The remotely hosted LaunchDarkly MCP server configured in your environment, with list-metric-events available.
How do I install it?
Run npx skills add https://github.com/launchdarkly/ai-tooling --skill launchdarkly-metric-instrument.
What were the security audit results?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Fail.
What are the best launchdarkly-metric-instrument alternatives?
Popular alternatives to launchdarkly-metric-instrument include launchdarkly-metric-create, plan and launchdarkly-metric-choose. See all launchdarkly-metric-instrument alternatives







