/evaluate-adk:evaluate-adkfrom evaluate-adk
Sets up evaluation of Google ADK agents in Java or Kotlin using Dokimos. Covers judges, Q&A tasks, tool-call extraction, and trace collection for LlmAgent, Runner, and BaseAgent.
Ships in evaluate-adk. 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.
Set up Dokimos evaluation for a Google ADK for Java (com.google.adk:google-adk) or Google ADK for Kotlin (com.google.adk:google-adk-kotlin-core-jvm) agent. The user will describe their agent and evaluation goals via $ARGUMENTS.
dokimos-adk-java, package dev.dokimos.adk):
dokimos-adk-java/src/main/java/dev/dokimos/adk/AdkSupport.javadokimos-adk-java/src/main/java/dev/dokimos/adk/AdkTraceCollector.javadokimos-adk-kotlin, package dev.dokimos.adk.kt):
dokimos-adk-kotlin/src/main/kotlin/dev/dokimos/adk/kt/AdkSupport.ktdokimos-adk-kotlin/src/main/kotlin/dev/dokimos/adk/kt/AdkTraceCollector.ktBefore writing code, read the relevant AdkSupport and AdkTraceCollector files to understand the available factory methods, extension functions, and conversions.
AdkSupport and AdkTraceCollectorAdkSupport.asJudge(BaseLlm), AdkSupport.asJudge(Runner), AdkSupport.asJudge(BaseAgent)model.asJudge(), runner.asJudge(), agent.asJudge(), or AdkSupport.asJudge { prompt -> ... } (suspend lambda)AdkSupport.simpleTask(...), AdkSupport.agentTask(...)Flowable<Event> or Flow<Event> -> CompletableFuture): AdkSupport.asyncTask(...), AdkSupport.asyncAgentTask(...)CallMetrics with tokens, latency, and PriceTable cost): AdkSupport.measuredTask(...), AdkSupport.measuredAgentTask(...). In Kotlin, asyncTask(...) and asyncAgentTask(...) also capture CallMetrics; pass priceTable to add cost, and modelId is inferred from LlmAgent.model.name when omittedAdkSupport.toAgentTrace(agent, input), AdkSupport.toAgentTrace(runner, input), AdkSupport.toAgentTrace(session), AdkSupport.toAgentTrace(events) (plus .toAgentTrace(...) and suspend fun BaseAgent.runTrace(input) in Kotlin)Schema -> JSON Schema conversion): AdkSupport.toToolDefinitions(llmAgent) / agent.toToolDefinitions(), AdkSupport.toToolDefinitions(tools), AdkSupport.toToolDefinitions(collector) / collector.toolDefinitions()AdkTraceCollector (BasePlugin in Java, com.google.adk.kt.plugins.Plugin in Kotlin). Attach via AdkSupport.attach(builder) or InMemoryRunner(agent = agent, plugins = listOf(collector)) to capture collector.trace(), collector.toolDefinitions(), collector.trajectory(), collector.retrievedContexts(), and collector.callMetrics(...). Call collector.reset() between runs when reusing an instance.AdkSupport.ragTask(...), AdkSupport.asyncRagTask(...), AdkSupport.measuredRagTask(...)AdkSupport.extractTexts(events, retrievalToolNames...) extracts "context" (List<String>) from Event.groundingMetadata chunks (retrievedContext, ragChunk, web) and/or retrieval tool FunctionResponses (VertexAiRagRetrieval or custom search tools).AdkSupport.toConversationTrajectory(session, scenario) / session.toConversationTrajectory(scenario) and AdkSupport.asConversationalApp(agent) / agent.asConversationalApp() for ConversationSimulator.dokimos-adk-java)Runner.Builder builder = Runner.builder().agent(agent).appName("my-app");
AdkTraceCollector collector = AdkSupport.attach(builder);
Runner runner = builder.build();
AgentTrace trace = AdkSupport.toAgentTrace(runner, input);
List<ToolDefinition> tools = AdkSupport.toToolDefinitions(collector);
EvalTestCase testCase = trace.toTestCase(input, tools);
EvalResult validity = ToolCallValidityEvaluator.builder().build().evaluate(testCase);
EvalResult correctness = ToolCorrectnessEvaluator.builder().build().evaluate(testCase);
dokimos-adk-kotlin)val collector = AdkTraceCollector()
val runner = InMemoryRunner(agent = agent, appName = "my-app", plugins = listOf(collector))
val trace = runner.toAgentTrace(input)
val tools = collector.toolDefinitions()
val testCase = trace.toTestCase(input, tools)
val validity = ToolCallValidityEvaluator.builder().build().evaluate(testCase)
val correctness = ToolCorrectnessEvaluator.builder().build().evaluate(testCase)
Always construct evaluators with XEvaluator.builder()...build() (or use the dokimos-kotlin DSL inside evaluators { ... }).
For ADK for Java:
<dependency>
<groupId>dev.dokimos</groupId>
<artifactId>dokimos-adk-java</artifactId>
<version>${dokimos.version}</version>
</dependency>
For ADK for Kotlin:
<dependency>
<groupId>dev.dokimos</groupId>
<artifactId>dokimos-adk-kotlin</artifactId>
<version>${dokimos.version}</version>
</dependency>
com.google.adk:google-adk and com.google.adk:google-adk-kotlin-core-jvm are provided-scope dependencies: the user brings their own version.
$ARGUMENTS whether the project uses ADK for Java (com.google.adk) or ADK for Kotlin (com.google.adk.kt), which tools or RAG retrieval it uses, and what quality criteria matter.toAgentTrace / AdkTraceCollector) or dataset-driven Experiment (agentTask / measuredAgentTask / ragTask).AdkSupport.toToolDefinitions(agent) or collector.toolDefinitions().ToolCallValidityEvaluator, ToolCorrectnessEvaluator, ToolTrajectoryEvaluator, TaskCompletionEvaluator, FaithfulnessEvaluator, etc.).evaluate-agent skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
google-adk, dokimos, agent-evaluation, llm-agent-testing, java, kotlin
npx claudepluginhub dokimos-dev/dokimos --plugin evaluate-adkOther plugins' skills for the same job