CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

legacy-sdk-migrate

Migrate an app from the legacy LaunchDarkly AI SDKs (Python `launchdarkly-server-sdk-ai` / `ldai`, Node.js `@launchdarkly/server-sdk-ai`, Go `go-server-sdk-ai/ldai` or `go-server-sdk/ldai`) to the current handler-based AI SDKs (`launchdarkly-ai-server`, `@launchdarkly/ai-node` / `@launchdarkly/ai-server`, `github.com/launchdarkly/go-ai-sdk` plus handlers). Use when code calls `LDAIClient`, `initAi`, `ldai.NewClient`, `CompletionConfig`, `AgentConfig`, `AgentGraph`, `CreateTracker`, `completion_config` / `completionConfig`, `agent_config` / `agentConfig`, `agent_configs`, `create_tracker` / `trackMetricsOf`, `create_judge`, `create_model`, or `agent_graph`, or when the user asks to upgrade between LaunchDarkly AI SDKs. For apps with hardcoded LLM prompts that aren't on LaunchDarkly yet, use `migrate` instead.

Quality

97%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A high-quality migration skill body: an inventory-first workflow with confirmation gates and a thorough verification step, fully concrete API-level guidance for three languages, and proper offloading of complete code listings to two well-signaled reference files. The only weakness is moderate cross-section repetition of a few topics (background judges, content capture, parameter allowlists) that could be consolidated.

Suggestions

Consolidate the background-judge workflow (skip_judges/judge_tasks/run_judge plus worker tracking) into one canonical section — it is currently stated in the Step 2 mapping table, Step 3.7, the Edge Cases table, and What NOT to Do; state it once and cross-reference it elsewhere.

Explain the capture_content default in one place only (Step 3.2 or the Edge Cases row) and point to it from the other, since both currently give the full configure(options=SDKOptions(capture_content=False)) instructions.

Trim the opening framing ("You're using a skill that will guide you through...") to a single direct task statement; the paragraph after it already establishes the inventory/map/rewrite/verify job.

DimensionReasoningScore

Conciseness

The body is dense and assumes Claude's competence — no basic-concept explanations, and nearly every line is migration-specific knowledge (real export names, exact error strings, template-placeholder rules). It falls short of 'every token earns its place' only because several topics recur across sections: the background-judge/skip_judges pattern appears in the Step 2 table, Step 3.7, an Edge Cases row, and What NOT to Do; capture_content defaults appear in both Step 3.2 and Edge Cases; the parameter-allowlist rule is stated three times. This is deliberate reinforcement rather than padding, so it is noticeably above anchor 3 but not a clean 5.

4 / 5

Actionability

Guidance is fully executable: exact install commands ("pip install \"launchdarkly-ai-server[ld]\" launchdarkly-ai-openai-messages"), real export names with the warning that variants like `createOpenAIHandler` are not exported, exact signatures (`config(key=..., handler=[...]).invoke(user_input, context, variables)`), literal error messages to expect ("Handler for provider <name> not found", "AttributeError: 'dict' object has no attribute 'valid'"), and per-language search patterns for Step 1. Complete before/after code is one click away in the verified references/api-mapping.md.

5 / 5

Workflow Clarity

Four clearly sequenced steps with explicit validation checkpoints and feedback loops: Step 1 is read-only with a hard gate ("Present the inventory and **stop** until the user confirms"), Step 2 ends with plan confirmation, and Step 4 is a six-point verification including re-running the Step 1 search expecting zero hits, testing the fallback path with targeting off, and confirming metrics in the Monitoring tab. The gradual-rollout edge case ('migrate one call site at a time, verify, remove legacy packages last') closes the loop for large apps.

5 / 5

Progressive Disclosure

SKILL.md holds the workflow, decision tables, and edge cases while all full before/after code is split into two real, one-level-deep reference files (references/api-mapping.md at 574 lines, references/go-api-mapping.md at 205 lines), each clearly signaled with a description of its contents in the References section. The Go routing note up front directs Go work to the Go reference and explicitly scopes which sections it overrides — easy navigation with no nested-reference chains.

5 / 5

Total

19

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: it states a single concrete migration action with exact package names on both sides across three languages, provides an explicit 'Use when' clause with both code-level and conversational triggers, and disambiguates a neighboring skill. No fluff despite its length — every clause is a package name, trigger identifier, or routing rule.

DimensionReasoningScore

Specificity

"Migrate an app from the legacy LaunchDarkly AI SDKs (...) to the current handler-based AI SDKs (...)" names the concrete action and enumerates the exact source and target packages for Python, Node.js, and Go with no coverage gaps. It is comprehensive rather than merely 'several actions with minor gaps' (anchor 4), because a version-to-version migration has one verb and every object of that verb is named precisely.

5 / 5

Completeness

It explicitly answers 'what' (migrate legacy packages X to current packages Y, both fully enumerated) and 'when' ("Use when code calls `LDAIClient`, `initAi`, ... or when the user asks to upgrade between LaunchDarkly AI SDKs") with concrete trigger phrases, and adds a disambiguation clause ("use `migrate` instead") that most descriptions lack.

5 / 5

Trigger Term Quality

Triggers cover the natural phrasing ("when the user asks to upgrade between LaunchDarkly AI SDKs") plus the exact identifiers a user's code or request would contain: `launchdarkly-server-sdk-ai`, `ldai`, `@launchdarkly/server-sdk-ai`, `LDAIClient`, `initAi`, `completion_config`, `create_tracker`, `agent_graph`, and more. Coverage is comprehensive for this domain, matching the synonym-and-extension breadth of the anchor-5 example.

5 / 5

Distinctiveness Conflict Risk

The niche is unambiguous — a specific vendor's legacy-to-current AI SDK versions — and it actively reduces conflict risk by routing non-LaunchDarkly apps to the `migrate` skill. Uses third-person imperative voice throughout, so no voice penalty applies.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

launchdarkly/ai-tooling

Path

skills/agentcontrol/legacy-sdk-migrate/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.