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#
| Argument | Required | Description |
|---|---|---|
SKILL_PATH | no | Path to the skill directory. Defaults to the current directory. |
Options#
| Flag | Value | Description |
|---|---|---|
--provider | local|dockerdefault: 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, -f | json|consoledefault: console | Output format. |
Examples#
Run all tests
bash
$ sklab trigger ./my-skillDebug false positives
bash
$ sklab trigger ./my-skill -t negativeContainer isolation
bash
$ sklab trigger ./my-skill --provider dockerNotes#
- 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.