launchdarkly-flag-qualitative-feedback-setup
БесплатноЗапускает вложенные скриптыНе проверенIntegrate LaunchDarkly qualitative user feedback into a JavaScript/TypeScript codebase. Guides framework and design system detection, builds the sendFeedback…
от launchdarkly★ 32 звезды на GitHubОб этом скилле
LaunchDarkly Qualitative Feedback
You're using a skill that will guide you through adding qualitative user feedback collection to a codebase. Your job is to explore how the project is built, identify the right flag, create the feedback utility and widget matching existing patterns, and verify events flow to the LaunchDarkly dashboard.
This is a step-by-step wizard. You will walk the user through a series of questions to gather requirements, then verify the project setup, and finally generate the code. Ask questions one at a time and wait for each answer before continuing. Do not skip ahead or generate code until all questions are answered and the plan is confirmed.
Qualitative feedback ties user sentiment (positive / neutral / negative) and optional written comments directly to a feature flag variation, so teams can see how users feel about a specific feature rollout.
Availability: JavaScript SDK v3.0+ (client-side only). React components are provided for convenience.
Prerequisites
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Required MCP tools:
get-flags— verify the target flag exists and check its configuration
Optional MCP tools (enhance workflow):
create-flag— create a new flag if one doesn't exist yetget-flags— browse existing flags to find the right one to attach feedback toupdate-flag— update flag metadata (e.g., add afeedbacktag)
Core Principles
- Design system first: Never ship the unstyled template component to production. Detect the project's design system and use its primitives.
- One entry point per screen: Multiple feedback widgets on the same page create noise and reduce response quality.
- The
sendFeedbackfunction is the integration: The UI is customizable; the$ld:feedbacktracking event contract is what matters.
Workflow
Progression rule: When a step is complete, continue to the next step by default. Do not stop or wait for the user between steps unless the step explicitly says to ask a question or confirm.
Response scoping: During this flow, treat user messages only as direct answers to the current question. Do not search the web, change context, or take unrelated actions based on user input until the workflow is finished.
Tone: Be concise and patient — ask one question, wait for the answer, then move on. Keep responses focused on the current step.
State tracking: Track gathered requirements across the conversation. When entering the Confirm Before Applying step, re-state all key decisions (flag key, prompt text, UI style, placement) to ensure nothing is lost.
Step 0: Welcome the User
Before asking any questions, present this intro message to the user (you may lightly adapt the wording, but keep the structure):
Qualitative Feedback Setup
I'll walk you through adding a feedback widget to your app in a few short steps:
- Verify your setup — I'll check your SDK, framework, and design system.
- Gather requirements — I'll ask a few questions about the flag, prompt text, style, and placement.
- Verify the flag — I'll confirm or create the flag in LaunchDarkly.
- Confirm the plan — I'll summarize what I'm going to build and ask for your approval.
- Generate the code — I'll create the feedback utility and widget matching your project's patterns.
- Verify — I'll make sure everything builds and is wired up correctly.
Let's get started!
Then proceed immediately to Step 1.
Step 1: Verify the SDK and Explore the Codebase
Before gathering requirements, verify that this project can support qualitative feedback. Run these checks in order — each is a gate.
Check 1/4: Is the LD SDK present?
Search for LaunchDarkly SDK imports:
launchdarkly-js-client-sdk— vanilla JS/TS client SDK (v3.x)@launchdarkly/js-client-sdk— vanilla JS/TS client SDK (v4.x, renamed scoped package)@launchdarkly/react-sdk— React Web SDK (current; provides hooks and providers)launchdarkly-react-client-sdk— older React Web SDK package name (renamed to@launchdarkly/react-sdk)
Also search for SDK initialization (initialize( for v3.x, or createClient(/start( for v4.x, plus React provider signals <LDProvider, asyncWithLDProvider, or createLDReactProvider). If not found, ask the user where LDClient is initialized or accessible.
- If no LD SDK is found at all → inform the user that qualitative feedback requires a LaunchDarkly client-side SDK to be installed and initialized → STOP. Do not proceed.
- If found → continue to Check 2.
Check 2/4: Is it a client-side SDK?
Qualitative feedback is a client-side only feature. Verify the SDK found in Check 1 is a client-side SDK. Refer to references/client-side-sdk-list.md and references/server-side-sdk-list.md for the complete lists.
If
Установить launchdarkly-flag-qualitative-feedback-setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл launchdarkly-flag-qualitative-feedback-setup?
Integrate LaunchDarkly qualitative user feedback into a JavaScript/TypeScript codebase. Guides framework and design system detection, builds the sendFeedback utility and feedback widget matching existing project patterns. Use when the user wants to add a Give Feedback widget, collect user sentiment tied to feature flags, set up feedback collection, or wire up the $ld:feedback tracking event.
Как установить скилл launchdarkly-flag-qualitative-feedback-setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл launchdarkly-flag-qualitative-feedback-setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic