slug: prompt-engineering
title: "Prompt Engineering — Techniques That Get Better AI Outputs"
version: 1.0.0
description: "Learn what makes a good prompt, zero-shot vs few-shot prompting, chain-of-thought reasoning, and structured output for better AI results."
category: ai-and-llm
tags: [prompt-engineering, ai, llm, claude, prompting, few-shot]
difficulty: beginner

xp:
  read: 10
  walkthrough: 30
  exercise: 20
  quiz: 15
  quiz-perfect-bonus: 10
  game: 20
  game-perfect-bonus: 10

time:
  quick: 5
  read: 15
  guided: 45

prerequisites: []
related: [llm-fundamentals, ai-pair-programming]

triggers:
  - "How do I write better prompts?"
  - "What is prompt engineering?"
  - "How do I get better results from Claude?"
  - "What are few-shot examples?"

visuals:
  diagrams: [diagram-mermaid, diagram-flow]
  quiz-types: [quiz-drag-order, quiz-timed-choice, quiz-fill-blank]
  game-types: [classify, speed-round]
  playground: bash
  slides: true

sources:
  - url: "https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering"
    label: "Anthropic Prompt Engineering Guide"
    type: docs
  - url: "https://platform.openai.com/docs/guides/prompt-engineering"
    label: "OpenAI Prompt Engineering Guide"
    type: docs
