Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

observability-plugin-setup

БесплатноБез исполняемых скриптовНе проверен

Set up LaunchDarkly observability for an app that already uses a LaunchDarkly SDK by adding the observability plugin to its existing client and opening a pull…

launchdarklyот launchdarkly★ 32 звезды на GitHub

Об этом скилле

LaunchDarkly Observability Plugin Setup

You're using a skill that will guide you through turning on LaunchDarkly observability for an application that already evaluates flags with a LaunchDarkly SDK. Observability (errors, logs, traces, and session replay) starts when the LaunchDarkly observability plugin is added to that SDK client. Your job is to confirm observability is not set up, get the user's agreement, add the plugin to the client the app already initializes, open a pull request, and confirm data arrives once the change runs.

Prerequisites

  • A codebase you can edit that already initializes a LaunchDarkly SDK client. If there is none, observability needs the SDK first: say so and stop (see Edge Cases).
  • The remotely hosted LaunchDarkly MCP server, for the verify step.

MCP tools used:

  • find-o11y-project — confirm nothing has been received yet, and later that a service reports data
  • get-keys — confirm the service name once data flows (key=service_name)

Core Principles

  1. Ask before changing anything. The user usually came for something else (often flag work). Explain the change in a few lines and edit only after they agree. If they decline, drop it for the rest of the session.
  2. One plugin on the client that already exists. Add the plugin to the LaunchDarkly client's plugins option in the init code the app already has, or use the stack's equivalent registration (Flutter's LDObserve.init, .NET MAUI's ObservabilityPlugin). No second client, no second key, no new environment variable.
  3. Smallest diff. One dependency and one plugin registration per client. No custom spans, log forwarding, network body recording, sampling, or service names unless the user asks.
  4. Strict privacy for session replay. Unless the user names a level, use the strictest replay setting: privacySetting: 'strict' in the browser, every mask option turned on for mobile (see Plugin wiring).
  5. A pull request, not a push. Put the change on a new branch and open a pull request for review. Never commit to the default branch.

Workflow

Step 1: Confirm observability is not set up

Use the signal you already have:

  • An observability tool returned observability_set_up: false, or find-o11y-project returned observabilitySetUp: false: the project (or every project) has never received sessions, errors, logs, traces, or metrics. Continue.
  • Observability data exists for the project: this skill does not apply. Answer the user's question with the observability tools (the observability/investigate skill) instead.
  • You have neither signal: call find-o11y-project without serviceName. An empty project list with observabilitySetUp: false confirms it.

Do not keep retrying observability queries against a project that has never received data. They return nothing.

Step 2: Explain and ask

Tell the user what you found and what the change is, in their terms. For example:

LaunchDarkly hasn't received any observability data for this project, so there's nothing to search yet.
Observability turns on by adding the LaunchDarkly observability plugin to the LaunchDarkly client this app
already sets up (src/lib/launchdarkly.ts). It's one dependency and one line in that client's options, using
the same key, and it adds error monitoring, logs, and traces (plus session replay for browser and mobile apps,
with the strictest privacy setting). Want me to make that change and open a pull request?
  • If the codebase has more than one LaunchDarkly client (for example a web app and an API), list them and ask which to set up. Default to the one the current task is about.
  • Proceed only on a clear yes.

Step 3: Find the client and the stack

  1. Find the LaunchDarkly SDK dependency in the manifest (package.json, requirements.txt / pyproject.toml, go.mod, Gemfile, *.csproj, Podfile / Package.swift, build.gradle(.kts) / pom.xml, pubspec.yaml).
  2. Find the client initialization: for example asyncWithLDProvider, withLDProvider, createLDReactProvider, createClient, initialize(, init( from @launchdarkly/node-server-sdk, ldclient.set_config(Config(, ld.MakeClient / ld.MakeCustomClient, LaunchDarkly::LDClient.new, new LdClient( / LdClient.Init( / Configuration.Builder(, new LDClient( / new LDConfig.Builder(), LDClient(LDConfig(, LDClient.start(, LDClient.init(, new ReactNativeLDClient(.
  3. If the app wraps LaunchDarkly behind its own module, edit the init inside that module.
  4. Match the stack to a row in Plugin wiring. If the stack has no plugin, stop (see Edge Cases).
  5. Check the installed SDK version against the minimum in that table.

Step 4: Add the plugin

Follow Plugin wiring for the package and where plugins goes:

  1. Install the package with the project's package manager (from the lockfile). Do not pin a version except where
Полный SKILL.md на GitHub

Установить observability-plugin-setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/plugin-wiring.md

FAQ

Что делает скилл observability-plugin-setup?

Set up LaunchDarkly observability for an app that already uses a LaunchDarkly SDK by adding the observability plugin to its existing client and opening a pull request. Use when an observability tool reports the project has never received data (observability_set_up or observabilitySetUp is false), when observability queries come back empty because nothing is instrumented, or when the user asks to add observability, error monitoring, logs, tracing, or session replay to a LaunchDarkly-enabled app.

Как установить скилл observability-plugin-setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл observability-plugin-setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить observability-plugin-setup с