
Migrate
If you're sitting on hardcoded OpenAI or Anthropic calls and want to move model, prompt, and tool definitions into LaunchDarkly, this walks you through a five stage migration: audit what's hardcoded, wrap the call with the SDK, externalize tool schemas, wire tracking for tokens and duration, then attach evaluators. It knows the common footguns in LangChain and LangGraph agent loops, especially where to scope the tracker so you don't accidentally mint a new run ID on every iteration. Python and Node.js get worked examples for direct provider calls, LangGraph agents, and CrewAI. Other languages stop at install commands. The skill prepares inputs for each LaunchDarkly write but doesn't auto invoke the sibling skills, so you'll manually run configs-create and the rest at the right checkpoints.
- skills.sh installs
- 1.3K
- GitHub stars
- 19
- last updated
- Jul 14, 2026
Install
$ npx -y skills add launchdarkly/agent-skills --skill migrate --agent claude-codeInstalls into .claude/skills of the current project.
Files
Migrate to AgentControl
You're using a skill that will guide you through migrating an application from hardcoded LLM prompts to a full LaunchDarkly AgentControl implementation. Your job is to run the migration in five stages, stopping at each stage for the user to confirm:
- Audit the code — read-only scan that produces a structured list of everything hardcoded (prompt, model, parameters, tools, app-scoped knobs).
- Wrap the call — install the SDK, create the config in LaunchDarkly with a fallback that mirrors the hardcoded values, and rewrite the call site to fetch the config fresh on every request.
- Move the tools — extract each tool's JSON schema, attach it to the config, and swap every call site that references the old tool list.
- Add tracking — wire the per-request tracker (duration, tokens, success/error) around the provider call.
- Attach evaluators — either offline evals via the Playground + Datasets, or online judges that score sampled traffic automatically.
Sponsors
Details
- Repository
- github.com/launchdarkly/agent-skills
- Category
- AI & Agent Building
- First seen
- Jul 14, 2026
More from launchdarkly/agent-skills
All 41- Online Evals1.3K
- Projects1.3K
- Snippets1.3K
- Tools1.3K
- Launchdarkly Flag Command1K
- Onboarding3.3K
- Launchdarkly Flag Cleanup2.5K
- Launchdarkly Flag Create2.5K
- Launchdarkly Flag Discovery2.5K
- Launchdarkly Flag Targeting2.5K
- Aiconfig Create2.3K
- Aiconfig Projects2.3K
- Aiconfig Tools2.3K
- Aiconfig Update2.3K
- Aiconfig Variations2.3K
- Launchdarkly Metric Choose2.3K
- Launchdarkly Metric Create2.3K
- Launchdarkly Metric Instrument2.3K
- Aiconfig Online Evals2.2K
- Aiconfig Targeting2.2K
- Aiconfig Ai Metrics2K
- Aiconfig Custom Metrics2K
- Aiconfig Migrate2K
- Apply2K