Skip to main content

Skill Script

Updated this week

A Skill Script sits between free‑form prompting and fully imperative code. It is interpreted by a runner that composes the final model prompt with variables, Actions, and context.

The examples below assume the Guidance runner, which uses Handlebars‑style templating. You will typically see:

  • Variable interpolation: {{variable_name}}

  • Logic: {{#if condition}} ... {{/if}}

  • Generation commands: {{gen}} and {{select}} with parameters like temperature and max tokens

  • Role tags: {{#system}} ... {{/system}}, {{#assistant}} ... {{/assistant}}

  • Comments: {{~! This is a comment }}

  • Hidden blocks: {{#block(hidden=True)}} ... {{/block}} for non‑emitted calculations/decisions

Segments in double curly braces are evaluated sequentially and render to text (or nothing).

Did this answer your question?