Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

Instructions Example

Demonstrates using instructions (system prompts) to control LLM behavior

tools-only f319a84 3 files · 3.0 KB Updated 7 repo stars

File contents

Instructions Example

This document demonstrates how to use the instructions parameter to control LLM behavior with system prompts.

Source Content

{{ ref('source.md').content }}


Without Instructions

Summary: {{ ref('source.md') | llm_extract('a brief one-sentence summary of the feedback') }}


With Pirate Instructions

Pirate Summary: {{ ref('source.md') | llm_extract('a brief one-sentence summary of the feedback', instructions='Talk like a pirate. Use "Arrr" and pirate vocabulary.') }}


LLM Block with Instructions

{% llm instructions='Talk like a pirate. Use "Arrr" and pirate vocabulary.' %} Summarize this product feedback in one sentence: {{ ref('source.md').content }} {% endllm %}


Using Classification from Another Model

{% llm instructions='You are a customer success manager.' %} Based on this sentiment analysis:

{{ ref('classify.md').content }}

Write a one-sentence professional response acknowledging the feedback. {% endllm %}

tools-only/X-Skills/tree/main/commercial/107-instructions-example_fc7c9897 commit f319a8425b

Frequently asked questions

npx skillmds add tools-only/instructions-example