configs-variations
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConfig 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
使用此技能需要在环境中配置远程托管的LaunchDarkly MCP服务器。
主要MCP工具:
- -- 克隆基准变体并选择性覆盖配置(推荐用于实验)
clone-ai-config-variation
备选MCP工具(用于更多控制):
- -- 在添加新变体前查看现有变体
get-ai-config - -- 从头创建新变体
create-ai-config-variation
可选MCP工具:
- -- 创建后优化变体
update-ai-config-variation - -- 删除效果不佳的变体
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
- 一次只测试一项内容:仅更改模型、提示词或参数中的一项,而非全部
- 提出假设:明确你想要改进的方向
- 衡量结果:使用指标对比不同变体
- 通过工具验证:Agent会获取配置以确认变体存在
Workflow
工作流程
Step 1: Identify What to Optimize
步骤1:确定优化目标
What's the problem? Cost, quality, speed, accuracy? How will you measure success?
存在什么问题?成本、质量、速度还是准确性?你将如何衡量成功?
Step 2: Design the Experiment
步骤2:设计实验
| 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) |
| 目标 | 测试变量 |
|---|---|
| 降低成本 | 更经济的模型(例如: |
| 提升质量 | 更优模型或更详细的提示词 |
| 降低延迟 | 更快的模型、更小的 |
| 提高准确性 | 不同模型系列(Claude vs GPT-4) |
Step 3: Create Variations (Recommended: Clone with Overrides)
步骤3:创建变体(推荐:克隆并覆盖)
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.
使用复制基准配置,仅覆盖你要测试的内容。该工具会读取源变体,合并你的覆盖配置,然后创建新变体。所有未传入的字段将自动从源变体继承。
clone-ai-config-variation必填字段:
- -- 要克隆的基准变体
sourceVariationKey - 和
key-- 新变体的标识(例如:name)gpt4o-mini-cost-test
仅覆盖你要测试的字段。保留所有其他字段为空——即使你知道它们当前的值也不要传入。克隆工具会自动从源变体继承这些字段,这能确保“一次只测试一项变量”的原则:
- 测试更经济的模型?仅传入和
modelConfigKey。不要传入modelName、instructions或messages。parameters - 测试不同的指令?仅传入。不要传入
instructions或modelConfigKey。modelName - 测试参数?仅传入。不要传入模型或提示词相关字段。
parameters
响应会同时返回源变体和新创建的变体,你可以立即验证差异。
Step 3 (Alternative): Create from Scratch
步骤3(备选方案):从头创建
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-variation如果你需要完全控制,先使用查看当前状态,再手动指定所有字段使用创建。创建前务必先获取配置,以便了解现有配置的模式、模型和参数。
get-ai-configcreate-ai-config-variationStep 4: Verify
步骤4:验证
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-config如果你使用了,响应会包含源变体和新创建的变体,可直接对比。否则,使用确认。
clone-ai-config-variationget-ai-config结果报告:
- 创建的变体具有正确的模型和参数
- 变体间仅存在预期的变量差异
- 标记任何问题
**API响应注意事项:**调用创建或克隆工具后,成功响应即表示操作完成。API响应可能不会回显你发送的每个字段(例如:模型字段可能显示默认值)。不要仅根据响应字段值就重试或假设操作失败——如有需要,使用验证。
get-ai-configmodelConfigKey Format
modelConfigKey格式
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
模型要在UI中显示必须遵循此格式::
{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
当用户想要尝试不同的模型、提示词或参数时,务必在基准配置旁创建新变体。绝不要修改或删除现有的基准变体。即使用户要求“替换”或“切换”,正确的操作也是创建新变体,通过目标定位/灰度发布控制流量,而非编辑原始配置。
- 使用或
clone-ai-config-variation添加新变体create-ai-config-variation - 不要对基准配置使用来更改其模型或指令
update-ai-config-variation - 不要对基准配置使用
delete-ai-config-variation - 向用户解释保留基准配置可以实现对比和安全回滚
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
- 不要同时测试过多内容——每个变体仅更改一项变量
- 克隆时不要传入未更改的字段——让工具从源变体继承
- 不要忘记modelConfigKey(缺少该字段的变体在UI中会显示为“NO MODEL”)
- 不要基于小样本量做决策
- 不要修改或删除基准配置——在其旁创建新变体
- 不要使用“替换”基准配置——应创建新变体
update-ai-config-variation
Related Skills
相关技能
- -- Create the initial config
configs-create - -- Refine based on learnings
configs-update
- -- 创建初始配置
configs-create - -- 根据经验优化配置
configs-update