adk-test

A command for running an ADK primitive from start to finish with realistic test input. ADK primitives are project building blocks such as tools, actions, workflows, and handlers.

In plain words
What is it for?
Testing a named ADK primitive through the appropriate command or runner using supplied or generated input.
Why use it?
It provides a quick way to check whether one primitive works now, without creating a lasting evaluation suite.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/botpress/skills/adk-test
Clone the repo
git clone --depth 1 https://github.com/botpress/skills
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 720 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00720
Opus 5 $0.00010 $0.00360
Sonnet 5 $0.00004 $0.00144
Haiku 4.5 $0.00002 $0.00072

Measured 2d ago against content hash 8c9de0953b7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adk-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/adk-test.md · 28 lines

What it actually says

Load the adk skill, then run the named primitive immediately.

This is exploratory, one-shot testing — does it work right now?. It is distinct from /adk-eval, which writes persistent assertion-based eval files. If the user wants assertions or coverage, route them there.

If $ARGUMENTS is empty, list the user's primitives and ask which to test.

Workflow

  1. Locate and identify type. Glob src/**/<name>.ts. The directory tells you the type (action / tool / workflow / conversation / table / trigger / knowledge base).
  2. Build an invocation appropriate for the type. If the user provided input after the primitive name, use it as-is; otherwise generate a realistic probe from the primitive's schema:
    • Tool / conversation handler / agent step: adk chat --single '<probe message that exercises this primitive>' --format json. The probe should plausibly cause the LLM to call the tool / route to the handler. Single-quote the message — in double quotes the shell expands $, so a probe like "I spent $5" reaches the bot mangled.
    • Action: invoke through adk run .adk/scratch/test-<name>.ts after writing a small disposable runner under .adk/scratch/, or via a chat probe that triggers a tool which calls the action. Prefer the runner when the action has a deterministic input shape.
    • Workflow: trigger via the documented entry point (chat probe, action call, or trigger event).
    • Trigger: a Trigger fires on an external source event that usually can't be produced locally — invoke its handler directly via adk run with a synthetic event. (A Conversation's pushed chat:custom event is different: test it with an eval event turn and adk evals — see /adk-eval. adk chat --single only sends user text and can't push one.)
    • Table: insert a sample row, run a representative query, then delete the row before reporting. Tag the test row with a recognizable marker (e.g., a __test_<timestamp> value in a string column) so the cleanup query is unambiguous. If the project is linked to a shared or production workspace, ask the user before inserting at all — offer to scope the test to a local dev table instead.
    • Knowledge base: run a search query against it.
  3. Run it and read traces. Capture the response. Run adk traces --format json filtered to the most recent invocation if the response alone is not enough to judge correctness.
  4. Report. Show the input used, the output, latency, and any errors or surprising behavior. Be explicit if the trace shows the primitive was not exercised (e.g., the LLM ignored the tool).
  5. Suggest follow-ups. If the test surfaced something worth pinning down, offer /adk-eval <name> to capture it as a regression eval. If it failed, offer /adk-debug with the relevant context.

Clean up any disposable runner scripts under .adk/scratch/test-*.ts after the test unless the user asks to keep them.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 28 lines · 19 tokens per session scan A 8c9de0953b7c

Subscribe to this mod's changes

adk-test is a command published in the GitHub repository botpress/skills (11 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 720 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.