sdk-install

โดย launchdarkly

ติดตั้งและเริ่มต้นใช้งาน LaunchDarkly SDK ที่ถูกต้องระหว่างการเริ่มต้นใช้งาน โดยรันสกิลที่ซ้อนกันตามลำดับ: detect, plan, apply ขั้นตอนที่ 6 ของการเริ่มต้นใช้งานหลักเป็นขั้นตอนแรก…

npx skills add https://github.com/launchdarkly/agent-skills --skill sdk-install

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 TypeVariable (logical)Source in LaunchDarkly
Server-sideLAUNCHDARKLY_SDK_KEYEnvironments → SDK key
Client-sideClient-side ID (bundler-prefixed env names)Environments → Client-side ID
MobileLAUNCHDARKLY_MOBILE_KEYEnvironments → 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.

OrderNested skillRole
1Detect repository stackLanguage, package manager, monorepo target, entrypoint, existing LD usage
2Generate integration planSDK choice, files to change, env plan -- presented to user (non-blocking; see plan SKILL.md D6)
3Apply code changesInstall 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

Skills เพิ่มเติมจาก launchdarkly

aiconfig-online-evals
launchdarkly
เลิกใช้งานแล้ว เปลี่ยนเส้นทาง — สกิลนี้ถูกเปลี่ยนชื่อเป็น online-evals อย่าใช้สกิลนี้ ให้เรียกใช้ online-evals แทน เก็บไว้เพียงเพื่อให้การอ้างอิงเก่าๆ ยังคง...
aiconfig-tools
launchdarkly
เลิกใช้งานแล้ว เปลี่ยนเส้นทาง — สกิลนี้ถูกเปลี่ยนชื่อเป็น tools แล้ว อย่าใช้สกิลนี้ ให้เรียกใช้ tools แทน เก็บไว้เพียงเพื่อให้การอ้างอิงเก่าๆ ไปยัง aiconfig-tools ยังคงชี้ไปที่...
launchdarkly-flag-targeting
launchdarkly
ควบคุมการกำหนดเป้าหมายของฟีเจอร์แฟล็ก LaunchDarkly รวมถึงการเปิด/ปิดแฟล็ก การเปิดตัวแบบเปอร์เซ็นต์ กฎการกำหนดเป้าหมาย เป้าหมายรายบุคคล และการคัดลอกแฟล็ก…
launchdarkly-flag-drift
launchdarkly
ตรวจจับและปรับความคลาดเคลื่อนระหว่างค่าเริ่มต้นสำรองของ SDK ในโค้ดของฟีเจอร์แฟล็กกับกฎเริ่มต้น (fallthrough) ของ LaunchDarkly ใช้เมื่อค่าเริ่มต้นของแฟล็ก...
snippets
launchdarkly
สร้างและจัดการสไนปเป็ตพรอมต์ — บล็อกข้อความที่นำกลับมาใช้ซ้ำได้ซึ่งอ้างอิงภายในพรอมต์การแปรผันของคอนฟิก เก็บคำแนะนำทั่วไป บุคลิก และการ์ดเรล…
create-skill
launchdarkly
เพิ่มทักษะใหม่ไปยัง repo agent-skills ของ LaunchDarkly ใช้เมื่อสร้าง SKILL.md ใหม่ เพิ่มทักษะในแคตตาล็อก หรือปรับให้สอดคล้องกับข้อกำหนดของ repo
skill-name
launchdarkly
คำอธิบายที่ชัดเจนเกี่ยวกับสิ่งที่สกิลนี้ทำและเมื่อใดที่เอเจนต์ควรใช้ รวมถึงคำสำคัญที่ช่วยให้เอเจนต์ระบุงานที่เกี่ยวข้องได้
agent-graphs
launchdarkly
สร้างและจัดการกราฟเอเจนต์ — กราฟแบบมีทิศทางของคอนฟิกที่เชื่อมต่อด้วยขอบพร้อมตรรกะการส่งต่อ ใช้เมื่อสร้างเวิร์กโฟลว์แบบหลายเอเจนต์ที่คอนฟิกกำหนดเส้นทาง…