sklab trigger#

Run trigger tests against a live LLM runtime.

Usage#

bash
sklab trigger [SKILL_PATH] [OPTIONS]

Executes the tests in .sklab/tests/triggers.yaml and reports which prompts correctly activated (or correctly failed to activate) the skill. Use --type to filter by a single trigger category while debugging.

Arguments#

ArgumentRequiredDescription
SKILL_PATHnoPath to the skill directory. Defaults to the current directory.

Options#

FlagValueDescription
--providerlocal|docker
default: local
Execution provider: local (temp-dir isolation) or docker (container isolation).
--type, -t<TYPE>Only run tests of this trigger type: explicit, implicit, contextual, or negative.
--output, -o<PATH>Write the JSON report to a file.
--format, -fjson|console
default: console
Output format.

Examples#

Run all tests

bash
$ sklab trigger ./my-skill

Debug false positives

bash
$ sklab trigger ./my-skill -t negative

Container isolation

bash
$ sklab trigger ./my-skill --provider docker

Notes#

  • The default runtime uses the Claude CLI: npm install -g @anthropic-ai/claude-code.
  • Run `sklab generate` first if .sklab/tests/triggers.yaml does not yet exist.