AH

A skill for safely tuning AHC hyperparameters using Optuna and validating results.

Install

mkdir -p .claude/skills/ahc-optuna && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12762" && unzip -o skill.zip -d .claude/skills/ahc-optuna && rm skill.zip

Installs to .claude/skills/ahc-optuna

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

AHC のハイパーパラメータ最適化(`eval.py -o`)を安全に回すための skill。
47 chars · catalog descriptionno explicit “when” trigger
Intermediate

Key capabilities

  • Optimize hyperparameters for AHC
  • Update default values in a.rs
  • Verify score differences with extreme values
  • Report changed parameters and re-validation results

How it works

This skill automates hyperparameter optimization for AHC by running evaluations, updating default values in a.rs, and verifying improvements.

Inputs & outputs

You give it
A request to optimize constants for AHC or evaluate parameters in a.rs
You get back
A list of changed *_DEFAULT values, best trial parameters, and re-validation results

When to use ahc-optuna

  • Optimizing hyperparameter constants for AHC
  • Running automated parameter evaluation sweeps
  • Updating default configurations after optimization
  • Verifying parameter changes against test sequences

About this skill

ahc-optuna

AHC のハイパーパラメータ最適化(eval.py -o)を安全に回すための skill。

使うタイミング

  • ユーザーが Optuna で定数調整を依頼したとき。
  • 環境変数経由で a.rs の評価パラメータを最適化したいとき。

MUST

  • 対象定数は *_DEFAULT として a.rs 冒頭に定義する。
  • Env に対応メンバを追加し、Env::init で初期化する。
  • 初期化は次の形式にそろえる:
    • self.xxx = os_env::get("xxx").and_then(|s: String| s.parse::<f64>().ok()).unwrap_or(XXX_DEFAULT);
  • eval.py 側は AHC_PARAMS_XXXa.rs 側は os_env::get("xxx") を使う。
  • 最適化対象は実際の選択ロジックで使う値のみに限定する。
  • 事前チェック:
    • /Users/toastuz/Develop/.venv/bin/python3 eval.py -s 0 -v
    • 極端値でスコア差分を確認(キー反映漏れ検知)
  • 実行:
    • 短試行: /Users/toastuz/Develop/.venv/bin/python3 eval.py -s 0 49 -o 20
    • 本試行: /Users/toastuz/Develop/.venv/bin/python3 eval.py -s 0 49 -o 100
  • 反映:
    • study.best_trial.params*_DEFAULT へ反映する。
    • /Users/toastuz/Develop/.venv/bin/python3 eval.py -s 0 -v
    • /Users/toastuz/Develop/.venv/bin/python3 eval.py -s 0 49
    • 必要なら /Users/toastuz/Develop/.venv/bin/python3 eval.py -s 0 49 --seq

SHOULD

  • 探索範囲は現行値の近傍から開始し、端に寄ったら再設定する。
  • 一度に最適化するパラメータ数は抑える。
  • 実行結果は「変更パラメータ」「best」「再検証結果」をセットで報告する。

FORBIDDEN

  • a.rs 側で AHC_PARAMS_ 接頭辞付きキーを直接参照しない。
  • 未使用パラメータを最適化対象に入れない。
  • 全試行同値を放置して次ステップへ進めない。

OUTPUT

  • 変更した *_DEFAULT 一覧
  • best trial の主要パラメータ
  • 再検証結果(-s 0 -v, -s 0 49, 必要なら --seq

When not to use it

  • When a.rs directly references AHC_PARAMS_ prefixed keys
  • When unused parameters are included in optimization
  • When all trials yield the same value

Limitations

  • It is specific to AHC hyperparameter optimization
  • It requires parameters to be defined as *_DEFAULT in a.rs
  • It requires specific environment variable handling for optimization

How it compares

This skill provides a structured and safe workflow for hyperparameter optimization, including specific file modification and validation steps, unlike a generic optimization process.

Compared to similar skills

ahc-optuna side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
ahc-optuna (this skill)05moNo flagsIntermediate
rfx-bootstrap-install06moReviewBeginner
tui04moNo flagsIntermediate
pdf-processing-pro1710moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry