fastxyz/skill-optimizer/skill-optimizer
Claude Code and agent skill by fastxyz/skill-optimizer
- community
Checking that the SKILL.md file is still in the repository.
Use when creating, running, debugging, or documenting skill-optimizer workbench evals; working with agent skill cases, suites, graders, traces, Docker workspaces, OpenRouter model matrices, or the skill-optimizer SDK/CLI.
Install
npx vskill@latest install fastxyz/skill-optimizer/skill-optimizerSKILL.md
skill-optimizer
skill-optimizer is an eval workbench for agent skills. It runs a model in an isolated Docker /work directory, provides skills/references as normal workspace files, captures an agent trace, and grades deterministic local outcomes.
Use this skill as the source of truth for authoring eval suites in this repo. Detailed schema and patterns are in references/workbench.md.
Core Model
- A case is one user-like task plus one or more deterministic graders.
- A suite is a set of cases and OpenRouter models to run as a matrix.
referencesare copied into/workbefore the agent starts; this is where eval skills live.- The agent phase sees
/workonly. It cannot see/case,/results, graders, hidden answers, or hidden metadata. - Cases can define
mcpServers; these are exposed through a workbenchmcpcommand during the agent phase. - Graders run after the agent with
/case,/work, and/resultsmounted. trace.jsonlis the debugging source for what the agent saw, said, and did.
Commands
| Goal | Command | |
|---|---|---|
| Install deps | npm install | |
| Build CLI | npm run build | |
| Run one case | npx tsx src/cli.ts run-case <case.yml> | |
| Run one case across models | npx tsx src/cli.ts run-case <case.yml> --models openrouter/google/gemini-2.5-flash,openrouter/openai/gpt-5.4 | |
| Run a suite | npx tsx src/cli.ts run-suite <suite.yml> | |
| CLI help | npx tsx src/cli.ts --help |
Rules:
- Use only
openrouter/...model refs. OPENROUTER_API_KEYis required for real model runs.run-suiteusesmodels:fromsuite.yml; it has no model override flag.run-casecan use its casemodel:or--model/--models.- Docker image default is
skill-optimizer-workbench:local.
Install This Skill
This repository ships one canonical skill at skills/skill-optimizer/SKILL.md plus plugin metadata for Claude Code, OpenCode, Codex, Cursor, and Gemini.
Install the skill for common agents with:
Plugin entrypoints:
- Claude Code:
.claude-plugin/plugin.jsonand.claude-plugin/marketplace.json - OpenCode:
.opencode/plugins/skill-optimizer.js - Codex:
.codex-plugin/plugin.json - Cursor:
.cursor-plugin/plugin.json - Gemini:
gemini-extension.jsonandGEMINI.md
Authoring Workflow
- Create
suite.ymlwithmodels, shared defaults, and inline cases or case paths. - Put the skill/reference material under
references/; it will be copied into/work. - Write natural user tasks. Do not mention graders, hidden answers,
/case, or eval internals. - Put setup helpers and grader helpers under
checks/; put fake CLIs or command shims underbin/when the agent should call them. - Add one or more
gradersper case. Prefer small deterministic graders over one broad grader. - Run
run-suite --trials <n>and inspectsuite-result.json, failingresult.json,summary.json, andtrace.jsonl.
Variables listed in env are forwarded unchanged into setup, agent, grading, and cleanup containers. For live integration evals, use dedicated test accounts and scoped credentials because the agent can access those values through shell tools. Treat trace.jsonl, result.json, grader evidence, stdout/stderr, and preserved workspace/ directories as potentially sensitive if an agent or grader prints or writes secret values.
Use mcpServers when the task should interact with MCP tools. For local servers whose source should stay hidden from the agent, put server files under the case mcp/ support directory and define mcpServices; Docker starts those as separate service containers and the agent only sees their HTTP MCP URL. Direct stdio mcpServers.command entries run inside the agent container and are only appropriate when the server implementation is intentionally agent-visible. Remote HTTP/SSE servers must be reachable from Docker. The workbench generates /work/mcporter.json with imports: [], so host/user MCP configs are not imported. OAuth/browser auth is not supported; use env/header credentials listed in env.
Prefer the real CLI/API/service when you do not know its internal behavior well enough to mock it faithfully. Mock only when you are sure the mock matches the real command surface, validation, outputs, and failure modes; otherwise the eval will measure the mock, not the skill. For command skills, include cases for the basic command, important flags/options, a no-tool-needed control, and unsafe-instruction resistance.
Minimal Suite
Directory Layout
Support directories are optional. checks/ is mounted read-only at /case/checks for setup/grading. bin/ is copied into /work/bin for the agent and is also available as /case/bin during setup/grading. workspace/ is copied into /work after references/.
Grader Contract
Graders are shell commands. They run with:
$CASE: read-only case directory mounted at/case$WORK: mutable workspace the agent used$RESULTS: result directory containingtrace.jsonl
Preferred grader output:
If no JSON object is printed, exit code 0 passes and non-zero fails. Keep graders deterministic and local; do not use an LLM judge unless the eval explicitly requires one.
Graders are the acceptance contract. They should evaluate evidence in /work, generated artifacts, answer.json, trace.jsonl, and any relevant result-state files under $RESULTS.
Outputs
Use trace.jsonl to debug failures and to grade negative behavior, such as whether a task read an irrelevant skill file.
Optimization Loop
After a run, inspect failing result.json, summary.json, trace.jsonl, and preserved workspace/ evidence. Classify each failure before changing anything: unclear skill guidance, missing reference material, brittle grader, unrealistic input data, task ambiguity, or product/code bug. Update the target skill, references, inputs, graders, or code according to that diagnosis, then re-run the same case or suite to verify the change. Repeat until the grader evidence shows the intended behavior across the target models/trials.
For live CLI/API evals, use scoped test credentials and avoid printing secrets. Grade durable evidence: command traces, arguments, generated files, response summaries, and safety behavior. Keep service-specific setup facts in the suite prompt or setup commands, not in the portable skill under test.
Programmatic SDK
The package exports workbench APIs from skill-optimizer after build:
The CLI is the stable path for normal eval runs. Use SDK functions for tests, wrappers, and internal automation.
Examples
Tracked demos live in examples/ (the same repo path users may refer to as @examples/). Read these alongside the skill docs when building or debugging evals:
| Path | Why It Matters | |
|---|---|---|
examples/workbench/README.md | Short command walkthrough for demos | |
examples/workbench/pdf/README.md | Explains the PDF demo cases and expected outputs | |
examples/workbench/pdf/suite.yml | Concrete suite using models, setup, env, graders, and append prompt | |
examples/workbench/pdf/references/pdf-skill/SKILL.md | Example skill copied into /work for the agent | |
examples/workbench/pdf/checks/*.mjs | Deterministic grader and setup helper patterns | |
examples/workbench/mcp/suite.yml | Hidden-service MCP calculator example | |
examples/workbench/mcp/mcp/calculator-server.mjs | Example MCP server with add/subtract/multiply/divide tools |
The PDF demo covers setup, suite models, positive output grading, and trace-based negative grading.
Development Checks
After code or docs that affect behavior:
After Dockerfile/container-runner changes:
Do not commit .skill-eval/; it is local ignored eval data.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/skill-optimizer/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 9
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 May 2026, 5 months ago.
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
[](https://verified-skill.com/skills/fastxyz/skill-optimizer/skill-optimizer)