All skills
launchdarkly avatar

/sdk-install

@45fcc25 official

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/agent-skills/sdk-install

This session only. Nothing lands on disk.

SKILL.md

≈45 tokens always: the name and description. ≈1.1k when used: this file. ≈9.2k more on demand in 3 files.

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.

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 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

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill orchestrates the LaunchDarkly SDK installation process by coordinating detection, planning, and implementation steps. It adheres to security best practices by explicitly prohibiting hardcoded credentials and requiring user confirmation for all dependency changes and code modifications.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • ZeroLeaks5mo

    Scan incomplete

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

Last checked against GitHub 2 days ago.

Activeupdated last month
metadata
{
  "author": "launchdarkly",
  "version": "0.2.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/agent-skills/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.