optim-agent
它能做什么
这个工具通过测试不同的选项,并衡量哪一种效果最好,帮你找到系统的最佳设置,从而实现特定目标。它适用于优化模型、仿真或其他可配置的系统。
适用场景
- ✓想调整机器学习模型的参数,以获得更好的结果时。
- ✓想优化 AI 系统的设置,让它响应更快或质量更高时。
- ✓想在仿真或受控实验中找到最优选项时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/optim-agent/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想优化我的图像分类模型。把“学习率”调整在 0.001 到 0.1 之间,把“批次大小”(batch size)调整在 16 到 64 之间。我的目标是最大化准确率,预算为 50 次试验。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会设置一个边界清晰的实验,测试你所选参数的各种组合。它会衡量每次测试的结果,并与起始状态进行比较,然后在你的预算范围内推荐找到的最佳配置。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Optim Agent
Overview
Use this skill to optimize configurable systems against a measurable scalar objective. It helps an agent turn vague tuning requests into bounded experiments with a defined search space, budget, baseline, and evidence-backed recommendation.
When to Use This Skill
- Use when tuning hyperparameters, prompts, inference settings, simulation parameters, quantitative strategies, or RL/control policies.
- Use when the objective can be measured as a scalar score, loss, accuracy, cost, latency, reward, or risk-adjusted metric.
- Use when the user needs a small-budget optimization loop with trial history, comparisons, and stop criteria.
Do not use this skill when
- The objective is purely subjective and cannot be scored consistently.
- The user has not provided permission to run experiments or consume compute/API budget.
- The task is a one-shot implementation, debugging, or code review request with no configurable search space.
Instructions
- Define the optimization target in one sentence: maximize or minimize one scalar metric.
- List the tunable parameters, valid ranges, types, defaults, and any forbidden combinations.
- Establish at least one baseline before proposing agent-guided trials.
- Set the budget up front: number of trials, time, compute, money, or dataset subsample.
- Run or request trials one at a time unless the user explicitly approves parallel execution.
- Record every trial with parameters, metric value, notes, and failure status.
- Compare the best result against the baseline and a simple search strategy when possible.
- Stop when the budget is exhausted, the improvement plateaus, or the next trial cannot be justified from evidence.
- Report the recommended configuration, measured gain, tradeoffs, and any validation still needed before production use.
Examples
Example 1: Hyperparameter optimization
Tune learning rate, regularization, and tree depth for a credit-default model. Track validation AUC for each trial, compare against the default configuration, and recommend the best setting only if it improves the baseline under the agreed trial budget.
Example 2: Inference tuning
Tune retrieval depth, temperature, and reranker threshold for a RAG workflow. Optimize answer quality under a latency or cost ceiling, then report the best configuration with quality, latency, and cost tradeoffs.
Example 3: Simulation or control
Tune controller gains or environment parameters for a simulator. Optimize reward or error while logging failed trials separately so unstable configurations do not bias the recommendation.
Best Practices
- Keep the first run small; expand only after the loop produces useful signal.
- Prefer parameters with clear operational meaning over arbitrary knobs.
- Treat failed trials as data and record why they failed.
- Validate the final configuration on held-out data, a fresh seed, or a separate scenario before calling it robust.
- Ask before running expensive, long, or externally billed experiments.
Limitations
- This skill does not guarantee a global optimum.
- Results depend on objective quality, noise, search-space design, and experiment reproducibility.
- Use domain review before applying tuned configurations to production, financial, safety-critical, or user-impacting systems.
Additional Resources
常见问题
什么是“参数”?
参数是系统中可以调整的设置,用来改变系统的行为或性能,比如汽车的速度或声音的音量。
什么是“可衡量的目标”?
它是可以用数字衡量的东西,比如预测的准确率、响应时间或某项操作的成本。
我能用它处理“让回答更有创意”这类主观的事情吗?
不行。这个工具最适合目标能用明确数字衡量的情况。对于主观的事情,很难定义一个客观的成功标准。
详情
作者的原始描述
Guide agent-driven parameter optimization for configurable systems with measurable objectives. Use for HPO, inference tuning, simulations, or RL/control experiments.
热度
- GitHub 星标
- 48k
- 排名
- #5385
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。