Index of every page on this site: llms.txt
All skills
launchdarkly avatar

/sdk-install

@f0ee110 official
Run it yourself

Install and initialize the correct LaunchDarkly SDK during onboarding by running nested skills in order: detect, plan, apply. Parent onboarding Step 4 is first flag.

Use this Skill: https://skilld.dev/gh/launchdarkly/ai-tooling/sdk-install

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈45 tokens for metadata: the name and description. ≈1.3k when used: this file. ≈9.5k more on demand in 3 files.

Description uses 2.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈179 characters, or 2.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

LaunchDarkly SDK Install (onboarding)

Installs and initializes the right LaunchDarkly SDK for the user’s project by following three nested skills in order. Do not skip ahead to feature flags here—the parent LaunchDarkly onboarding continues with Step 4: First flag.

Prerequisites

  • Project context from parent Step 1: Explore the Project (reuse it; only re-run deep detection if something is unclear)
  • SDK key / client-side ID / mobile key: Needed when you reach Apply code changes (env wiring). Do not ask the user for these during detect or plan solely because you opened this skill—follow parent onboarding: account status is inferred via MCP OAuth when MCP is already configured, or surfaced at D7 in apply; key material is collected at apply (see parent Prerequisites).

Key types (summary)

SDK Type Variable (logical) Source in LaunchDarkly
Server-side LAUNCHDARKLY_SDK_KEY Environments → SDK key
Client-side Client-side ID (bundler-prefixed env names) Environments → Client-side ID
Mobile LAUNCHDARKLY_MOBILE_KEY Environments → Mobile key

Never hardcode keys. Full env rules, consent, and bundler tables: Apply code changes Step 2.

Workflow — run these nested skills in order

Execute all three unless the detect decision tree short-circuits (e.g. skip to apply only). Each nested skill may contain decision points — some blocking (marked D<N> -- BLOCKING, where you must call your structured question tool and wait for the user's response before continuing) and some non-blocking (where you present information and continue unless the user objects). Do NOT batch tool calls across blocking boundaries.

Order Nested skill Role
1 Detect repository stack Language, package manager, monorepo target, entrypoint, existing LD usage
2 Generate integration plan SDK choice, files to change, env plan -- presented to user (non-blocking; see plan SKILL.md D6)
3 Apply code changes Install package(s), .env / secrets with consent, init code, compile check (both tracks when dual-SDK plan)

Shared references for all steps: SDK recipes, SDK snippets.

Observability plugin: When the user mentions observability, session replay, error monitoring, logs, or tracing (in the first message or later), carry that into plan and apply: the plugin package(s) and the plugins entry on the client from Observability plugin. Same client, same key. If the client is already initialized, skip detect and plan and add the plugin to the existing init, then return to the parent flow (first flag during onboarding; nothing further for a follow-up after onboarding finished).

After Step 3 completes

Continue with the parent skill:

Do not add standalone “sample flag” evaluation in this skill unless the user explicitly needs a throwaway check; the parent flow creates the first flag in order.

Guidelines

  • Match existing codebase conventions for imports, config, and style.
  • Prefer TypeScript in TypeScript projects.
  • If the project uses a shared config layer, initialize LaunchDarkly there.
  • Add .env.example entries when the project uses dotenv.
  • Dependency scope: Add only LaunchDarkly SDK package(s) from the recipe (plus the observability plugin package(s) when the user asked for them) unless the user explicitly approves upgrading or adding other packages (Apply — Permission before changing other dependencies).

Edge cases

  • Multiple environments (e.g. Next.js server + client) or user asked for frontend + backend: Use a dual-SDK plan and apply both packages and both inits—never summarize the second SDK as done without lockfile + entrypoint evidence.
  • Monorepo: Integrate the package the user chose in parent onboarding; stay within that subtree.
  • SDK already installed and initialized: Parent may skip this handoff—see parent Edge Cases and detect decision tree.
  • Unsupported or uncommon stack: Use SDK recipes and the full SDK catalog.

References

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1d3 checks · Risk SAFE
  • Gen Agent Trust Hub6d

    This skill coordinates the installation of LaunchDarkly SDKs through a structured workflow. It follows security best practices by explicitly prohibiting the hardcoding of secrets and requiring user consent for all project modifications and dependency updates.

  • Socket1d

    No alerts

  • Snyk6d

    Risk: LOW · No issues

Signed by skilld at f0ee110. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 4 weeks ago
metadata
{
  "author": "launchdarkly",
  "version": "0.3.0"
}
Other metadata
compatibility
Requires a supported language/framework in the project. SDK credentials are required by [Apply](apply/SKILL.md), not for [Detect](detect/SKILL.md) / [Plan](plan/SKILL.md) alone (see parent onboarding **Prerequisites**).

README badge

README badge for launchdarkly/ai-tooling/sdk-install

Installs and initializes the LaunchDarkly SDK for the user's project by running three nested skills in sequence: detect the stack, plan the integration, and apply code changes. Handles server-side, client-side, and mobile SDKs; supports dual-SDK setups for projects with multiple environments.

Generated from the current SKILL.md.

Do I need SDK credentials to run detect and plan?
No. Detect and plan work without SDK credentials. Credentials are only required when you reach the apply step, which handles environment variable wiring.
What happens if the LaunchDarkly SDK is already installed in the project?
The parent onboarding flow may skip this skill entirely. The detect step will identify existing SDK installations and the workflow adjusts accordingly.
Does this skill support monorepos?
Yes. The skill integrates the LaunchDarkly SDK into the specific package target that was chosen during parent onboarding and stays within that subtree.
Can this skill install SDKs for both server-side and client-side environments?
Yes. For projects using multiple environments (e.g. Next.js server and client), the plan and apply steps support dual-SDK integration, installing and initializing both packages.
Will this skill add dependencies beyond the LaunchDarkly SDK?
No. Only the LaunchDarkly SDK package is added unless you explicitly approve upgrading or adding other dependencies.

Generated from the current SKILL.md. These answers refresh after source changes.