
plan
Generate a minimal LaunchDarkly SDK integration plan from detected stack: choose SDK type(s), dual-SDK server+client when required, files to change, env conventions. Nested under sdk-install; follows detect, precedes apply.
- Installs
- 2.3K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/launchdarkly/ai-tooling --skill plan- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads plan automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Generate integration plan (SDK install)
Based on what you detected, choose the right SDK and plan the minimal set of changes needed.
This skill is nested under LaunchDarkly SDK Install (onboarding); the parent Step 2 is plan. Prior: Detect repository stack. Next: Apply code changes.
Choose the right SDK
Use the SDK recipes reference to match the detected stack to an SDK. Start with Top 10 SDKs (start here) in that file for common stacks; use the (other) sections for less common SDKs.
The key decision:
| Project Type | SDK Type | Key Type |
|---|---|---|
| Backend API, server-rendered app, CLI tool | Server-side SDK | SDK Key |
| Browser SPA (React, Vue, Angular, vanilla JS) | Client-side SDK | Client-side ID |
| iOS or Android native app | Mobile SDK | Mobile Key |
| React Native | Mobile SDK | Mobile Key |
| Flutter (iOS, Android, or desktop app targets) | Client-side SDK (Flutter) | Mobile Key |
| Flutter web | Client-side SDK (Flutter) | Client-side ID |
| Electron desktop app | Client-side SDK (Node.js) | Client-side ID |
| Cloudflare Workers, Vercel Edge, AWS Lambda@Edge | Edge SDK | SDK Key |
| .NET client (MAUI, Xamarin, WPF, UWP) | Mobile SDK (.NET) | Mobile Key |
| C/C++ client application | Client-side SDK (C/C++) | Mobile Key |
| C/C++ server application | Server-side SDK (C/C++) | SDK Key |
| Haskell server | Server-side SDK (Haskell) | SDK Key |
| Lua server | Server-side SDK (Lua) | SDK Key |
| Roku (BrightScript) | Client-side SDK (Roku) | Mobile Key |
For every supported SDK, package name, install hint, and official Docs link, use SDK recipes and the linked files under snippets/.
Dual SDK integrations
Use this section when the user asked for both a server-side and a client-side integration, or when the stack clearly needs two LaunchDarkly SDKs (e.g. Next.js with server evaluation and browser UI flags, separate backend + SPA repos in one workspace target, etc.).
Do not "complete" onboarding with a single SDK while hand-waving the second (no second package in package.json, no second init path, no second recipe followed). Each SDK is a separate product with its own install command and initialization.
For each of the two SDKs, the plan must spell out (with no gaps):
Server-side track:
- Recipe / SDK recipes row or snippet name
- Package name(s) (exact artifact)
- Install command (full command from recipe)
- Dependency file (where the line is added)
- Entrypoint file(s) (e.g.
instrumentation.ts, API entry,main.py) - Env vars (typically
LAUNCHDARKLY_SDK_KEY) - Init summary (where it runs; which doc/snippet)
Client-side track:
- Recipe / snippet name (different row than server)
- Package name(s) (e.g. React Web vs Node server -- must be the client artifact)
- Install command (second command -- never implied)
- Dependency file
- Entrypoint file(s) (e.g.
app/providers.tsx, root layout,main.tsx) - Env vars (bundler-prefixed client-side ID, e.g.
NEXT_PUBLIC_...) - Init summary (provider/wrapper/hook from client recipe)
If you cannot name two packages and two entrypoints, you are not done planning -- go back to SDK recipes and detection.
Important distinctions:
- Next.js: Server-side SDK for API routes / server components / RSC contexts that evaluate on the server; React client SDK for client components. If the user requested both, the plan lists both tracks in full. If they only want one surface to start, state that explicitly in the plan.
- Node.js: If it's a backend service (Express, Fastify, etc.), use the server-side SDK. There is also a Node.js client SDK for desktop/Electron apps.
- React: If it's a standalone SPA, use
launchdarkly-react-client-sdk. If it's part of Next.js, see above. - .NET: Use the server SDK (
LaunchDarkly.ServerSdk) for ASP.NET and backend services. For MAUI, Xamarin, WPF, and UWP, use the .NET mobile SDK (LaunchDarkly.ClientSdk, mobile key) -- SDK recipes -- .NET (Client). Blazor WebAssembly (and other browser-hosted .NET client UI) still usesLaunchDarkly.ClientSdkbut with a client-side ID, not a mobile key -- see the same recipe. - Flutter: Use the Flutter client SDK (
launchdarkly_flutter_client_sdk-- SDK recipes -- Flutter). Use a mobile key for typical iOS/Android/desktop app builds; use the client-side ID (and the project's pattern for public env vars) for Flutter web. If the user ships multiple targets, confirm which to wire first or plan separate env/config per target.
Plan the changes
Your integration plan should identify exactly:
1. Files to modify
Use the information gathered during Detect repository stack -- specifically the detected package manager, dependency file, and application entrypoint:
- Dependency file: The file identified during detection (e.g.,
package.json,requirements.txt,go.mod) -- use the detected package manager to add the SDK - Entrypoint file: The application entrypoint identified during detection -- where SDK initialization code will go. Dual-SDK plans list two entrypoints (see Dual SDK integrations).
- Environment/config file: Prefer
.envat the integration root for real secrets (create it if it does not exist); ensure.envis listed in.gitignorethere. Use.env.example/.env.samplefor placeholders only. If the project does not use dotenv, follow its existing config pattern -- see Apply code changes Step 2 for consent, writing keys, and hybrid server+client cases.
2. Code changes
For each SDK in scope (one or two tracks), describe the specific changes:
- Add SDK dependency -- the install command from the SDK recipe (repeat for each package when dual-SDK)
- Add SDK import -- the import statement at the top of that track's entrypoint
- Add SDK initialization -- the init code for that SDK from that recipe/snippet, placed early in the right lifecycle (server vs client)
- Configure credentials -- via environment variable, never hardcoded (SDK key vs client-side ID per track)
3. Environment variable convention
Check how the project handles configuration:
.env: If the stack uses dotenv (or you are introducing it for LaunchDarkly), plan to create.envat the integration root when it is missing, then addLAUNCHDARKLY_SDK_KEY,LAUNCHDARKLY_CLIENT_SIDE_ID/ bundler-prefixed client ID, orLAUNCHDARKLY_MOBILE_KEYas appropriate (see Apply code changes Step 2 for names, consent before real values, and hybrid server+client cases). Plan to verify.gitignoreincludes.envat that root (add the entry if missing, with the same user permission as other repo edits)..env.example/.env.sample: If present, plan placeholder entries only (no real secrets).- Config module or
process.env: If the project does not use.env, plan to follow the existing pattern for secrets.
Present the plan
Before making any changes, summarize the plan to the user.
Single SDK:
- Install
[package name]using[install command] - Add SDK dependency to
[dependency file] - Add import and initialization to
[entrypoint file] - Add
[env var]to.env(create if missing; real value after user consent) - Ensure
.envis in.gitignore - Add placeholder to
.env.exampleif the project uses one
Only LaunchDarkly SDK packages will be added unless the user explicitly approves other dependency changes.
Dual SDK: Present the same numbered format separately for each track (e.g. "Server-side:" steps 1-7, then "Client-side:" steps 1-7), following Dual SDK integrations. Do not omit the second track.
After presenting the plan:
D6 -- NON-BLOCKING (proceed unless objected): Present the plan summary to the user with a note like "Here's what I'm going to do -- say stop or let me know if anything looks wrong." Then continue into Apply code changes without waiting for explicit approval. If the user objects or says something looks wrong, stop and adjust the plan before continuing.
This is intentionally non-blocking to reduce ceremony. The plan is visible to the user and they can interrupt at any time. The real safety gates are D7 (secret consent) and D8 (non-LD dependency changes) in the apply step.
If the entrypoint is ambiguous or multiple SDKs could apply, those specific questions are blocking -- ask them as part of the plan presentation using your structured question tool and wait for an answer before proceeding.
Do not ask for SDK keys, client-side IDs, or mobile keys as part of plan confirmation -- the parent flow collects those at Apply code changes. The Key type column above is for technical planning only, not a prompt for secrets.
Do not promise or imply that you will upgrade unrelated dependencies to satisfy the latest SDK -- Apply requires explicit approval before any non-LaunchDarkly package changes.
Upon completion: Apply code changes
FAQ
What does the plan skill do?
Generate a minimal LaunchDarkly SDK integration plan from detected stack: choose SDK type(s), dual-SDK server+client when required, files to change, env conventions. Nested under sdk-install; follows detect, precedes apply.
How do I install plan?
Run npx skills add https://github.com/launchdarkly/ai-tooling --skill plan in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/plan/ (personal) or .claude/skills/plan/ (project).
Which AI agents can use plan?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is plan safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains plan?
It is published by launchdarkly in launchdarkly/ai-tooling, and it is an official skill from the maker of the technology it covers. It has 2,284 recorded installs.
More from launchdarkly/ai-tooling
onboarding
launchdarkly/ai-tooling
Scripted onboarding for LaunchDarkly: quiet execution, fixed sequence, SDK install, first flag with a live reveal, MCP offered afterwards. Enforces step completion before advancing and redirects drift. Use when adding LaunchDarkly, setting up or integrating feature flags in a project, SDK integration, or 'onboard me'.
launchdarkly-flag-discovery
launchdarkly/ai-tooling
Audit your LaunchDarkly feature flags to understand the landscape, find stale or launched flags, and assess removal readiness. Use when the user asks about flag debt, stale flags, cleanup candidates, flag health, or wants to understand their flag inventory.
launchdarkly-flag-create
launchdarkly/ai-tooling
Create and configure LaunchDarkly feature flags in a way that fits the existing codebase. Use when the user wants to create a new flag, wrap code in a flag, add a feature toggle, or set up an experiment. Guides exploration of existing patterns before creating.
launchdarkly-flag-targeting
launchdarkly/ai-tooling
Control LaunchDarkly feature flag targeting including toggling flags on/off, percentage rollouts, targeting rules, individual targets, and copying flag configurations between environments. Use when the user wants to change who sees a flag, roll out to a percentage, add targeting rules, or promote config between environments.
launchdarkly-flag-cleanup
launchdarkly/ai-tooling
Safely remove a feature flag from code while preserving production behavior. Use when the user wants to remove a flag from code, delete flag references, or create a PR that hardcodes the winning variation after a rollout is complete.
launchdarkly-metric-choose
launchdarkly/ai-tooling
Choose the right metrics for a LaunchDarkly experiment, guarded rollout, or release policy. Use when the user wants to know which metrics to use, which is the primary metric for an experiment, what guardrails to add, or which events to monitor in a rollout. Surfaces what will auto-attach from existing release policies before making additional recommendations.
Popular code quality & workflow skills
grill-me
mattpocock/skills
A relentless interview to sharpen a plan or design.
improve-codebase-architecture
mattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
handoff
mattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
domain-modeling
mattpocock/skills
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
codebase-design
mattpocock/skills
Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.