SuperAPI AI Directory

skill-optimizer

skill-optimizer is a tool for benchmarking, evaluating, and optimizing AI agent skills (Agent Skill), developed by fastxyz and open-sourced on GitHub. It offers two usage modes: a Docker workbench and an Agent Skill: you can install the skill-optimizer skill/plugin into an agent so the agent can write and debug evaluation suites itself; or you can run the local CLI to execute test cases and test suites against OpenRouter models in Docker. Its core goal is to ensure that skills perform reliably across different LLMs. The workbench provides the agent with a skill/reference folder, an isolated /work directory, and a deterministic scorer, and is suitable for evaluation scenarios where success can be verified through files, command logs, SQL, generated artifacts, or other local state. A case is a user-like task plus one or more scorers, and a suite is a matrix of cases and OpenRouter models. Scorers run after the agent phase, as an acceptance contract. The repository includes examples such as PDF and MCP. Installation varies by agent and supports Claude Code, OpenAI Codex CLI, Codex App, Cursor, OpenCode, Gemini, and others. The local CLI requires OPENROUTER_API_KEY and only supports openrouter/... model references.

Open website

About this tool

Purpose

skill-optimizer is used to benchmark, evaluate, and optimize AI agent skills (Agent Skill) to ensure that skills run reliably across all LLMs. It is suitable for evaluation scenarios that need to verify whether a skill succeeds at the level of files, command logs, SQL, generated artifacts, or other local state.

Main capabilities

  • It offers two usage modes: a Docker workbench and an Agent Skill: the skill-optimizer skill/plugin can be installed into an agent, enabling it to write and debug evaluation suites; or the local CLI can be run to execute test cases and test suites against OpenRouter models in Docker.
  • The workbench provides the agent with a skill/reference folder, an isolated /work directory, and a deterministic scorer.
  • A case is a user-like task plus one or more scorers; a suite is a matrix of cases and OpenRouter models.
  • references/ is copied to /work, which is where the skill under test resides.
  • The agent phase can only see /work, and cannot see the scorers, hidden answers, /case, or /results.
  • Scorers run after the agent and can use $CASE, $WORK, and $RESULTS, serving as an acceptance contract, and can check workspace files and artifacts, answer.json, trace.jsonl, and the result status under $RESULTS.
  • Examples are provided in the repository: the PDF example under examples/workbench/ includes positive PDF extraction/splitting/creation cases, as well as a negative case that checks that the agent did not read PDF skill files in a non-PDF task; the MCP example shows a local calculator server started as a hidden Docker service and exposed through the workbench mcp command.

Usage

Installation varies by agent. The canonical skill file is skills/skill-optimizer/SKILL.md, and all plugin manifests point to this file.

  • Claude Code: register this repository as a Claude Code plugin marketplace, then install the plugin.
  • OpenAI Codex CLI: register this repository as a Codex plugin marketplace, then open the plugin search interface and select skill-optimizer and install.
  • OpenAI Codex App: In the Codex app, open Plugins from the sidebar, search for skill-optimizer, and install it from the Coding section. If it is not listed, install it from the Codex CLI first.
  • Install skills using the open skills CLI.
  • Cursor: Skills can be imported from GitHub via Settings -> Rules -> Project Rules -> Add Rule -> Remote Rule (Github). Cursor plugin metadata is located at .cursor-plugin/plugin.json.
  • OpenCode: Add the plugin in the user- or project-scoped opencode.json, then restart OpenCode. See docs/README.opencode.md for details.
  • Gemini: Install the Gemini extension from GitHub.
  • Install skills only: If you only need the skill files and not the plugin metadata, use the open skills CLI.

Local CLI setup:

  • Requires OPENROUTER_API_KEY for real model runs.
  • Install and build.
  • Only openrouter/... model references are supported.
  • Run the suite against the models listed in suite.yml.
  • Run a single case directly.

When to use

Suitable for developers and teams that need deterministic evaluation, benchmarking, and optimization of agent skills, especially in scenarios where they want to verify that skills perform consistently across different LLMs.

Limitations

  • The local CLI only supports openrouter/... model references.
  • Real model runs require OPENROUTER_API_KEY.
  • Do not commit .skill-eval/, .results/, .env, or credentials.
  • For Docker runner or image changes, refer to the relevant documentation.
  • For the complete workbench model (directory layout, Docker stages, graders, output, and debugging), read docs/workbench.md.