LaunchDarkly Config Migrate Skill
An Agent Skill for migrating an application with hardcoded LLM prompts to a full LaunchDarkly AgentControl implementation in five stages: extract, wrap, tools, tracking, evals.
Overview
This skill orchestrates the full migration journey from hardcoded openai.chat.completions.create(model="gpt-4o", ...) (or equivalent in any provider SDK) to a managed config with tools, tracking, and judges. It delegates each stage to a focused skill and covers the tracker wiring inline — since no existing skill owns tracker.track_* calls.
The five stages:
- Extract hardcoded model names, prompts, and parameters (read-only)
- Wrap the call site in
completion_config/completionConfigwith a safe fallback — delegates the config creation toconfigs-create - Tools — move function-calling schemas into LaunchDarkly — delegates to
tools - Tracking — wire
track_duration,track_tokens,track_success/track_error, optionaltrack_feedback— inline, with a reference doc covering every SDK method in Python and Node side by side - Evals — attach judges for LLM-as-a-judge scoring — delegates to
online-evals
Installation (Local)
Copy skills/agentcontrol/migrate/ into your agent client's skills path.
Prerequisites
- Remotely hosted LaunchDarkly MCP server
LD_SDK_KEYenvironment variable (server-side SDK key, starts withsdk-)- An application with hardcoded LLM calls (OpenAI, Anthropic, Bedrock, Gemini, LangChain, LangGraph, CrewAI, or Strands)
Usage
Migrate our chat service from hardcoded OpenAI prompts to LaunchDarkly AgentControlOur LangGraph agent has its model and instructions baked in — walk me through wrapping it in a configWire up the agent tracker and attach accuracy + relevance judges to our existing configStructure
migrate/
├── SKILL.md
├── README.md
└── references/
├── phase-1-analysis-checklist.md
├── before-after-examples.md
├── sdk-ai-tracker-patterns.md
├── agent-mode-frameworks.md
├── fallback-defaults-pattern.md
└── agent-graph-reference.mdRelated
- config Create: Delegated to by Stage 2 (wrap)
- config Tools: Delegated to by Stage 3 (tools)
- config Online Evals: Delegated to by Stage 5 (evals)
- config Variations: Next step after migration for A/B testing
- config Targeting: Next step after migration for rollout control
- LaunchDarkly AgentControl Docs
License
Apache-2.0