inference-format-optimizer
БесплатноЗапускает вложенные скриптыНе проверенIterative benchmarking, evaluation, and algorithmic optimization of alternative A2UI inference formats (such as Express, Atom, and Elemental). Trigger when…
от a2ui-project★ 19 155 звёзд на GitHubОб этом скилле
Inference Format Optimizer
This skill provides procedural workflows, CLI orchestrators, decision guardrails, and subagent protocols for iteratively optimizing A2UI inference formats.
Quick-Start CLI Cheatsheet
All execution scripts live under scripts/ in this skill:
| Action | Executable Command |
|---|---|
| Run Fast Validation Eval | python scripts/optimize_format.py --format <format> |
| Run Full Evaluation Suite | python scripts/optimize_format.py --format <format> --full |
| Test Parsing / Compilation | python scripts/optimize_format.py --format <format> --compile "(Card (Text \"Hi\"))" |
| Compare vs Baseline | python scripts/compare_results.py --baseline eval/iterative_format_optimizer/baselines/<format>/unbounded_run_meta.json eval/iterative_format_optimizer/logs/temp_optimization/ |
| Archive Run Artifacts | python scripts/optimize_format.py --format <format> --archive --hypothesis "..." --status KEEP [--history-dir <path>] |
| Sync Multi-Worktree History | python scripts/sync_history.py [--history-dir <path>] |
Detailed References
- Scoring & Decision Rules: See references/scoring_model.md for $S_{\text{opt}}$ formula, correctness guardrails, and efficiency caps.
- Subagent Worktree Protocol: See references/subagent_protocol.md for launching subagents in isolated git worktrees.
- Subagent Prompt Template: See templates/subagent_prompt.md for launching pass tasks via
invoke_subagent.
The 6-Step Optimization Workflow
- Analyze History: Inspect past runs in
eval/iterative_format_optimizer/history/<format>/and readeval/iterative_format_optimizer/history_summary.mdto avoid repeating past reverted hypotheses. - Implement Hypothesis: Modify
compiler.py,prompt_generator.py, orparser.pyunder the format's package:python/a2ui_agent/src/a2ui/inference_formats/express/for Express, orpython/a2ui_agent/src/a2ui/inference_formats/experimental/<format>/for an experimental format. - Run Unit Conformance Tests: Verify code changes pass pytest unit tests.
- Execute Benchmark Evaluation: Run
python scripts/optimize_format.py --format <format>. - Evaluate Decision Rules:
- Must pass Pytest and maintain baseline accuracy.
- Code Output Tokens must NOT expand $> +5%$.
- Keep change if composite score $S_{\text{opt}}$ improves; revert otherwise (
git reset --hard HEAD).
- Archive & Synchronize: Archive run with
--archiveand update history index usingpython scripts/sync_history.py.
Установить inference-format-optimizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл inference-format-optimizer?
Iterative benchmarking, evaluation, and algorithmic optimization of alternative A2UI inference formats (such as Express, Atom, and Elemental). Trigger when asked to: (1) Run optimization passes or loops on an inference format, (2) Evaluate or benchmark format accuracy, latency, or token efficiency, (3) Create parallel worktree subagents for format iteration, or (4) Benchmark format trade-offs against baselines.
Как установить скилл inference-format-optimizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл inference-format-optimizer запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic