configs-variations
Original:🇺🇸 English
Translated
Experiment with configs by creating and managing variations. Helps you test different models, prompts, and parameters to find what works best through systematic experimentation.
20installs
Added on
NPX Install
npx skill4agent add launchdarkly/agent-skills configs-variationsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Config Variations
You're using a skill that will guide you through testing and optimizing configs through variations. Your job is to design experiments, create variations, and systematically find what works best.
Prerequisites
This skill requires the remotely hosted LaunchDarkly MCP server to be configured in your environment.
Primary MCP tool:
- -- clone a baseline variation with selective overrides (recommended for experimentation)
clone-ai-config-variation
Alternative MCP tools (for more control):
- -- review existing variations before adding new ones
get-ai-config - -- create new variations from scratch
create-ai-config-variation
Optional MCP tools:
- -- refine a variation after creation
update-ai-config-variation - -- remove variations that didn't work out
delete-ai-config-variation
Core Principles
- Test One Thing at a Time: Change model OR prompt OR parameters, not all at once
- Have a Hypothesis: Know what you're trying to improve
- Measure Results: Use metrics to compare variations
- Verify via Tool: The agent fetches the config to confirm variations exist
Workflow
Step 1: Identify What to Optimize
What's the problem? Cost, quality, speed, accuracy? How will you measure success?
Step 2: Design the Experiment
| Goal | What to Vary |
|---|---|
| Reduce cost | Cheaper model (e.g., |
| Improve quality | Better model or more detailed prompt |
| Reduce latency | Faster model, lower |
| Increase accuracy | Different model family (Claude vs GPT-4) |
Step 3: Create Variations (Recommended: Clone with Overrides)
Use to duplicate the baseline and override only what you're testing. The tool reads the source variation, merges your overrides, and creates the new variation. Everything you don't pass is inherited from the source automatically.
clone-ai-config-variationRequired fields:
- -- the baseline to clone from
sourceVariationKey - and
key-- identifiers for the new variation (e.g.,name)gpt4o-mini-cost-test
Override ONLY the fields you are testing. Leave all other fields unset -- do not pass them even if you know their current values. The clone tool inherits them from the source. This enforces the one-variable-at-a-time principle:
- Testing a cheaper model? Pass only and
modelConfigKey. Do NOT passmodelName,instructions, ormessages.parameters - Testing different instructions? Pass only . Do NOT pass
instructionsormodelConfigKey.modelName - Testing a parameter? Pass only . Do NOT pass model or prompt fields.
parameters
The response returns both the source and created variation, so you can immediately verify the diff.
Step 3 (Alternative): Create from Scratch
If you need full control, use first to review the current state, then with all fields specified manually. Always fetch before creating so you understand the existing config's mode, model, and parameters.
get-ai-configcreate-ai-config-variationStep 4: Verify
If you used , the response includes both source and created variations for immediate comparison. Otherwise, use to confirm.
clone-ai-config-variationget-ai-configReport results:
- Variations created with correct models and parameters
- Only the intended variable differs between variations
- Flag any issues
Note on API responses: After calling a creation or clone tool, treat a successful response as confirmation that the operation succeeded. The API response may not echo back every field you sent (e.g., model fields may show defaults). Do not retry or assume failure based on response field values alone -- verify with if needed.
get-ai-configmodelConfigKey Format
Required for models to display in the UI. Format: :
{Provider}.{model-id}- ,
OpenAI.gpt-4oOpenAI.gpt-4o-mini - ,
Anthropic.claude-sonnet-4-5Anthropic.claude-3-5-sonnet
Safety: Protect the Baseline
When the user wants to try a different model, prompt, or parameters, always create a new variation alongside the baseline. Never modify or delete the existing baseline variation. This applies even if the user says "replace" or "switch" -- the correct action is to create a new variation and let targeting/rollouts control traffic, not to edit the original.
- Use or
clone-ai-config-variationto add the new variationcreate-ai-config-variation - Do NOT use on the baseline to change its model or instructions
update-ai-config-variation - Do NOT use on the baseline
delete-ai-config-variation - Explain to the user that keeping the baseline enables comparison and safe rollback
What NOT to Do
- Don't test too many things at once -- change one variable per variation
- Don't pass unchanged fields when cloning -- let the tool inherit them from the source
- Don't forget modelConfigKey (variations without it show as "NO MODEL" in the UI)
- Don't make decisions on small sample sizes
- Don't modify or remove the baseline variation -- create new variations alongside it
- Don't use to "replace" a baseline -- create a new variation instead
update-ai-config-variation
Related Skills
- -- Create the initial config
configs-create - -- Refine based on learnings
configs-update