Labsco
launchdarkly logo

detect

19

by launchdarkly · part of launchdarkly/ai-tooling

Detect repository stack for LaunchDarkly SDK onboarding: languages, frameworks, package managers, monorepo targets, entrypoints, existing LD usage. Nested…

🔥🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the launchdarkly/ai-tooling package — works on its own, and pairs well with its siblings.

Detect repository stack for LaunchDarkly SDK onboarding: languages, frameworks, package managers, monorepo targets, entrypoints, existing LD usage. Nested…

Inspect the full instructions your agent will receiveExpand

This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.

by launchdarkly

Detect repository stack for LaunchDarkly SDK onboarding: languages, frameworks, package managers, monorepo targets, entrypoints, existing LD usage. Nested… npx skills add https://github.com/launchdarkly/agent-skills --skill detect Download ZIPGitHub19

SDK confirmation

After detecting the stack, confirm the SDK choice with the user:

  • If one SDK is clearly the right fit: Present your recommendation and get confirmation:

D5 -- BLOCKING: Call your structured question tool now.

question: "Based on what I found, I recommend the [SDK name] SDK. Does that look right?"

options:

  • "Yes, proceed with that SDK" -> continue to plan

  • "No, I want a different one" -> let user specify

STOP. Do not write the question as text. Do not continue until the user selects an option.

If multiple SDKs could apply (e.g., a Next.js project with both server and client components):

  • If the user already asked for both (e.g. "frontend and backend," "server + browser," "API and SPA"): Treat that as a dual-SDK scope. Proceed to Generate integration plan with both SDKs in scope -- do not plan or implement only one and assume the other is "covered."

  • If scope is unclear:

D5 -- BLOCKING: Call your structured question tool now.

  • question: "This project has both server-side and client-side surfaces. Which do you want to integrate?"

  • options:

  • "Server-side only"

  • "Client-side only"

  • "Both server-side and client-side"

  • STOP. Do not write the question as text. Do not continue until the user selects an option.

If they choose both, the plan must include two concrete integrations (see plan: Dual SDK integrations).

  • If you cannot determine the right SDK: Present the available options from the SDK recipes as selectable options in your question tool and use the same blocking pattern above.

Decision tree

After detection and confirmation:

  • No app found or unclear --> Already handled by D5-NOAPP / D5-UNCLEAR in section 5a . Do not proceed to plan until the user confirms a real app target.

  • SDK already installed and initialized --> Skip to Create first feature flag (parent Step 6)

  • SDK installed but not initialized --> Skip to Apply code changes (just add init code)

  • SDK not present --> Continue to Generate integration plan

  • Multiple targets detected (e.g., frontend + backend) --> If the user wants both SDKs (confirmed via D5 above), continue to Generate integration plan with dual-SDK scope (two packages, two entrypoints). If they want one surface only, plan for that single SDK.

  • Language not detected --> Already handled by the D5 blocking question in section 1 .

Upon completion (normal path): Generate integration plan