Index of every page on this site: llms.txt
All skills
a2ui-project avatar

/inference-format-optimizer

@6bf4cc2
by A2UIa2ui-project/a2ui18k stars
1,430
Run it yourself

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.

  • 19 files
  • 207.9 KB
  • Updated 2 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/a2ui-project/a2ui/inference-format-optimizer

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈111 tokens for metadata: the name and description. ≈897 when used: this file. ≈8.3k more on demand in 6 files.

Description uses 5.5% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈443 characters, or 5.5%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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


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).
  6. Archive & Synchronize: Archive run with --archive and update history index using python scripts/sync_history.py.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 6bf4cc2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 weeks ago
metadata
{
  "internal": true
}

README badge

README badge for a2ui-project/a2ui/inference-format-optimizer