/create-experiment:create-experimentfrom create-experiment
Scaffolds a Dokimos Experiment that wires together a dataset, task, evaluators, and optional reporter for evaluating LLMs or ML models.
Ships in create-experiment. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scaffold a Dokimos Experiment. The user will describe the evaluation goal via $ARGUMENTS.
dokimos-core/src/main/java/dev/dokimos/core/Experiment.javadokimos-core/src/main/java/dev/dokimos/core/Task.javadokimos-examples/src/main/java/dev/dokimos/examples/Before writing code, read these files to understand the API:
Experiment.java — the orchestratordokimos-examples/src/main/java/dev/dokimos/examples/basic/BasicEvaluationExample.java — simplest exampleAn experiment consists of four parts:
create-dataset skill)Example and returns Map<String, Object> of actual outputsEvaluator implementations that score the outputsDataset dataset = Dataset.fromJson(Path.of("src/test/resources/datasets/my-dataset.json"));
Task task = example -> {
String input = example.input();
String output = callYourLLM(input);
return Map.of("output", output);
};
List<Evaluator> evaluators = List.of(
ExactMatchEvaluator.builder()
.name("Exact Match")
.threshold(1.0)
.build()
);
ExperimentResult result = Experiment.builder()
.name("My Evaluation")
.description("Evaluating my LLM on QA tasks")
.dataset(dataset)
.task(task)
.evaluators(evaluators)
.build()
.run();
System.out.println("Pass rate: " + result.passRate());
public class MyEvaluationTest {
@ParameterizedTest(name = "[{index}] {0}")
@DatasetSource("classpath:datasets/my-dataset.json")
void testMyLLM(Example example) {
String actualOutput = callYourLLM(example.input());
EvalTestCase testCase = example.toTestCase(actualOutput);
List<Evaluator> evaluators = List.of(
ExactMatchEvaluator.builder().build()
);
assertEval(testCase, evaluators);
}
}
Reporter reporter = DokimosServerReporter.builder()
.baseUrl("http://localhost:8080")
.build();
ExperimentResult result = Experiment.builder()
.name("My Evaluation")
.dataset(dataset)
.task(task)
.evaluators(evaluators)
.reporter(reporter)
.build()
.run();
| Method | Description | Default |
|---|---|---|
.name(String) | Experiment name | "unnamed" |
.description(String) | Description | "" |
.dataset(Dataset) | Test dataset | required |
.task(Task) | System under test | required |
.evaluator(Evaluator) | Add a single evaluator | — |
.evaluators(List) | Add multiple evaluators | — |
.reporter(Reporter) | Result reporter | NoOpReporter |
.parallelism(int) | Concurrent examples | 1 |
.runs(int) | Repeat count for variance reduction | 1 |
.metadata(String, Object) | Add experiment metadata | — |
$ARGUMENTS what the user wants to evaluateExperiment.builder()What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dokimos-dev/dokimos --plugin create-experimentOther plugins' skills for the same job