跳到正文
Skillpedia
智能体48k · #5385

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/optim-agent/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Define the optimization target in one sentence: maximize or minimize one scalar metric.
  2. List the tunable parameters, valid ranges, types, defaults, and any forbidden combinations.
  3. Establish at least one baseline before proposing agent-guided trials.
  4. Set the budget up front: number of trials, time, compute, money, or dataset subsample.
  5. Run or request trials one at a time unless the user explicitly approves parallel execution.
  6. Record every trial with parameters, metric value, notes, and failure status.
  7. Compare the best result against the baseline and a simple search strategy when possible.
  8. Stop when the budget is exhausted, the improvement plateaus, or the next trial cannot be justified from evidence.
  9. 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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#5385
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能