adk-validate

A command for checking an ADK primitive or feature. ADK primitives are the individual building blocks of an ADK application, while a feature may combine several of them.

In plain words
What is it for?
Use it to validate a named tool, workflow, table, action, or related group of ADK files.
Why use it?
It catches project-wide compilation problems and issues in the selected primitive or feature before you rely on it.

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-validate
Clone the repo
git clone --depth 1 https://github.com/botpress/skills
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 821 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.00020 $0.00821
Opus 5 $0.00010 $0.00411
Sonnet 5 $0.00004 $0.00164
Haiku 4.5 $0.00002 $0.00082

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

Security

Grade A, and why

adk-validate 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-validate.md · 32 lines

What it actually says

Load the adk skill, then validate the named target immediately.

The target can be either a single primitive (one file under src/, e.g. a tool called search or a workflow called checkout) or a feature — a piece of bot functionality spread across multiple primitives (e.g. "checkout" implemented as src/workflows/checkout.ts + src/actions/process-payment.ts + src/tables/orders.ts). Resolve which one before validating.

This is the proactive counterpart to /adk-debug: nothing is necessarily broken — confirm the target is correctly defined and wired up. If $ARGUMENTS is empty, list the user's primitives (Glob src/**/*.ts excluding utils/) and ask which one to validate.

Workflow

  1. Run baseline checks first, in parallel. TypeScript type check (the project's typecheck / type-check script in package.json if defined, otherwise tsc --noEmit) and adk check --format json. Capture both outputs. If either fails project-wide for reasons unrelated to the named primitive, surface that up front — the primitive's own issues are noise until the project compiles.
  2. Resolve the target — primitive or feature. Try in this order:
    • Exact primitive match. Glob src/**/<name>.ts. If exactly one file matches, that's the target.
    • Multiple primitive matches. List them with their types (action / tool / workflow / etc.) and ask which one — or whether the user wants to validate the whole set as a feature.
    • No exact match — treat as a feature. Search the codebase for the term: file names, exported symbols, string literals, and comments under src/. Present the candidate set ("Found these files that look like the feature: …") and confirm with the user before proceeding. If nothing plausible turns up, suggest the closest exact filename hits and stop.
  3. Read each file in the target set. Identify the type of each from its directory.
  4. Filter the baseline output. From the type-check and adk check output captured in step 1, pull out diagnostics that mention any name or file path in the target set.
  5. Static checks (read the sources and verify):
    • Imports come from @botpress/runtime (not the SDK).
    • Each primitive is exported in the shape the ADK expects for its type (see references in the adk skill).
    • Zod / schema definitions cover all inputs and outputs the code uses.
    • Any referenced integration is installed (adk integrations list --format json) and available/configured (adk integrations status --format json).
    • Any referenced model is available in the project's model config.
    • Any referenced sibling primitive (table, action, tool) actually exists in src/.
    • Feature-level only: the primitives in the set actually wire together — e.g., the workflow's action calls resolve to existing actions, the table the workflow writes to matches the schema the action reads.
    • No hardcoded secrets, tokens, or API keys. Bot runtime credentials should be declared in agent.config.ts, set with adk secret:set, and read through secrets.KEY.
  6. Report. Group findings as ❌ Errors → ⚠️ Warnings → ✅ Passed, with each finding tagged by file. For a feature target, also include a short "wiring" subsection that summarizes how the primitives connect. End with one line: "Run /adk-test <name> to actually invoke it." Do not apply fixes from this command — let the user decide which to take.
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 · 32 lines · 20 tokens per session scan A 45f42caf8596

Subscribe to this mod's changes

adk-validate is a command published in the GitHub repository botpress/skills (11 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 821 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.