prompt-engineering
Installation
SKILL.md
Prompt Engineering
Overview
Prompt engineering is the practice of crafting inputs to language models to reliably produce desired outputs. Good prompts reduce hallucinations, increase consistency, and unlock model capabilities. This skill covers the key techniques: zero-shot, few-shot, chain-of-thought (CoT), Tree-of-Thought (ToT), ReAct, self-consistency, and meta-prompting.
Core Techniques
Zero-Shot Prompting
No examples — rely on the model's training. Works well for clear, simple tasks.
prompt = """Classify the sentiment of the following review as POSITIVE, NEGATIVE, or NEUTRAL.
Review: "The delivery was fast but the packaging was damaged."
Sentiment:"""
Related skills