sklab generate#

Auto-generate 13 trigger test cases for a skill via LLM.

Also available over HTTP. The Generate Triggers endpoint runs the same logic on the server against a GitHub repository — useful when you want results in a browser, a CI job without installing Python, or an agent that reaches skill-lab.dev directly.

Usage#

bash
sklab generate [SKILL_PATH] [OPTIONS]

Reads the SKILL.md description and produces .sklab/tests/triggers.yaml with 13 test cases across all 4 trigger types: explicit, implicit, contextual, and negative. Run `sklab trigger` afterwards to execute the tests against a live runtime.

Arguments#

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

Options#

FlagValueDescription
--model, -m<MODEL_ID>
default: claude-haiku-4-5-20251001
Model ID. Supports Anthropic, OpenAI (gpt-*), and Gemini (gemini-*) models.
--forceflagOverwrite an existing triggers.yaml file.

Examples#

Generate with default model

bash
$ sklab generate ./my-skill

Use a different model

bash
$ sklab generate ./my-skill -m claude-sonnet-4-6

Overwrite existing tests

bash
$ sklab generate ./my-skill --force

Notes#

  • Requires an API key for the selected provider (ANTHROPIC_API_KEY, OPENAI_API_KEY, or GEMINI_API_KEY).
  • The skill path is a positional argument — it comes before the --model flag.