a2ui-project/a2ui/inference-format-optimizer

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

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.

Install

npx vskill@latest install a2ui-project/a2ui/inference-format-optimizer

SKILL.md

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:

ActionExecutable Command
Run Fast Validation Evalpython scripts/optimize_format.py --format <format>
Run Full Evaluation Suitepython scripts/optimize_format.py --format <format> --full
Test Parsing / Compilationpython scripts/optimize_format.py --format <format> --compile "(Card (Text \"Hi\"))"
Compare vs Baselinepython scripts/compare_results.py --baseline eval/iterative_format_optimizer/baselines/<format>/unbounded_run_meta.json eval/iterative_format_optimizer/logs/temp_optimization/
Archive Run Artifactspython scripts/optimize_format.py --format <format> --archive --hypothesis "..." --status KEEP [--history-dir <path>]
Sync Multi-Worktree Historypython scripts/sync_history.py [--history-dir <path>]

Detailed References


The 6-Step Optimization Workflow

  1. Analyze History: Inspect past runs in eval/iterative_format_optimizer/history/<format>/ and read eval/iterative_format_optimizer/history_summary.md to avoid repeating past reverted hypotheses.
  2. Implement Hypothesis: Modify compiler.py, prompt_generator.py, or parser.py under the format's package: python/a2ui_agent/src/a2ui/inference_formats/express/ for Express, or python/a2ui_agent/src/a2ui/inference_formats/experimental/<format>/ for an experimental format.
  3. Run Unit Conformance Tests: Verify code changes pass pytest unit tests.
  4. Execute Benchmark Evaluation: Run python scripts/optimize_format.py --format <format>.
  5. 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).
  1. Archive & Synchronize: Archive run with --archive and update history index using python scripts/sync_history.py.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
16,806
Repository forks
1,347
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/a2ui-project/a2ui/inference-format-optimizer/badge)](https://verified-skill.com/skills/a2ui-project/a2ui/inference-format-optimizer)

Something wrong with this skill or its page? Tell us.