optim-agent
Skill này làm gì
Công cụ này giúp tìm các cài đặt tốt nhất cho một hệ thống bằng cách thử nhiều lựa chọn khác nhau và đo xem lựa chọn nào đạt mục tiêu cụ thể tốt nhất. Nó hữu ích để cải thiện hiệu suất của mô hình, mô phỏng hoặc các hệ thống có thể cấu hình khác.
Khi nào nên dùng
- ✓Khi bạn muốn điều chỉnh các tham số của một mô hình học máy để cho kết quả tốt hơn.
- ✓Khi tối ưu cài đặt của một hệ thống AI để phản hồi nhanh hơn hoặc chất lượng cao hơn.
- ✓Khi tìm các lựa chọn tốt nhất trong mô phỏng hoặc thí nghiệm có kiểm soát.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/optim-agent/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn tối ưu mô hình phân loại hình ảnh của mình. Điều chỉnh “learning rate” trong khoảng 0.001 đến 0.1 và “batch size” trong khoảng 16 đến 64. Mục tiêu là tối đa hóa độ chính xác, với ngân sách 50 lần thử.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ thiết lập một thí nghiệm với các giới hạn rõ ràng, thử nhiều tổ hợp tham số bạn chọn. Nó đo kết quả của từng lần thử, so sánh với điểm xuất phát và đề xuất cấu hình tốt nhất tìm được trong ngân sách của bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
“Tham số” là gì?
Tham số là một cài đặt bạn có thể thay đổi trong một hệ thống để thay đổi hành vi hoặc hiệu suất của nó, ví dụ như tốc độ của xe hay âm lượng của âm thanh.
“Mục tiêu có thể đo lường” là gì?
Đó là điều bạn có thể đo bằng một con số, như độ chính xác của dự đoán, thời gian phản hồi hoặc chi phí của một thao tác.
Tôi có thể dùng công cụ này cho những việc mang tính chủ quan, như “làm cho câu trả lời sáng tạo hơn” không?
Không, công cụ này hoạt động tốt nhất khi mục tiêu có thể đo được bằng một con số rõ ràng. Với những việc chủ quan, rất khó xác định tiêu chí thành công.
Chi tiết
Mô tả gốc của tác giả
Guide agent-driven parameter optimization for configurable systems with measurable objectives. Use for HPO, inference tuning, simulations, or RL/control experiments.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5385
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.