Agent-Driven Parameter Optimization

VerifiedSafe

Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.

Sby Skills Guide Bot
Data & AIIntermediate
8/29/2026
Claude CodeCursorCodex
#hyperparameter-optimization#experiment-design#tuning#model-evaluation#budget-control

Recommended for

Automated summary

This skill structures an agent's approach to optimizing a configurable system against a measurable scalar objective by fixing a search space, a budget, and a baseline before running trials.

Strengths

  • Requires a baseline and an explicit budget (trials, time, cost) before any experiment
  • Mandates logging every trial with parameters, metric value, and failure status
  • Treats failed trials as data instead of discarding them
  • Ends with a quantified recommendation covering tradeoffs and remaining validation

Limitations

  • Does not guarantee a global optimum
  • Outcome quality depends heavily on objective definition and experiment reproducibility
  • Requires explicit user permission before consuming compute or API budget
When to use it

Use it when tuning hyperparameters, inference settings, simulation parameters, or RL policies and the objective can be scored as a single scalar.

When not to use it

Avoid it when the objective is purely subjective, when no permission to run experiments has been given, or for one-shot implementation and code review tasks.

Security analysis

Safe
Quality score88/100

The skill provides process guidance for bounded optimization experiments. It declares no tools and contains no destructive commands, credential handling, network exfiltration, obfuscated payloads, or attempts to disable safety controls. It even instructs the agent to seek permission before expensive or externally billed work.

No concerns found

How this analysis is made

Examples

Tune a credit-default model
Tune learning rate, regularization, and tree depth for our credit-default model. Score each trial by validation AUC, compare against the default config, and only recommend a setting if it beats the baseline within 20 trials.
RAG inference tuning under a latency ceiling
Optimize retrieval depth, temperature, and reranker threshold for our RAG pipeline. Maximize answer quality while keeping p95 latency under 800ms, and report the quality/latency tradeoffs of the best config.
Simulator controller gains
Tune the PID gains and environment parameters of our simulator to minimize tracking error. Log unstable configurations separately so they don't bias the recommendation, and stay within a 30-trial budget.

name: optim-agent description: "Guide agent-driven parameter optimization for configurable systems with measurable objectives. Use for HPO, inference tuning, simulations, or RL/control experiments." category: data risk: safe source: community source_repo: Optim-Agent/optim-agent source_type: community date_added: "2026-07-15" author: Optim-Agent tags: [optimization, hyperparameter-optimization, experiments, tuning] tools: [claude, cursor, gemini, codex] license: MIT license_source: "https://github.com/Optim-Agent/optim-agent/blob/main/LICENSE"

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

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/agent-driven-parameter-optimization-mte1liwd' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/agent-driven-parameter-optimization-mte1liwd/download' --output '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md.part' && mv '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md.part' '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md' && test -s '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/optim-agent' && cp -R '.skill-downloads/agent-driven-parameter-optimization-mte1liwd' '.claude/skills/optim-agent'

Cursor
test -f '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md' && test -s '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/optim-agent' && cp -R '.skill-downloads/agent-driven-parameter-optimization-mte1liwd' '.cursor/skills/optim-agent'

Codex
test -f '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md' && test -s '.skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/optim-agent' && cp -R '.skill-downloads/agent-driven-parameter-optimization-mte1liwd' '.agents/skills/optim-agent'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/agent-driven-parameter-optimization-mte1liwd'

openskills read 'agent-driven-parameter-optimization-mte1liwd'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/agent-driven-parameter-optimization-mte1liwd/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills