Sign in
Practical Skills

Prompt Engineering

The craft of writing inputs that reliably get the outputs you want

What it is

Prompt engineering is the practice of designing model inputs to elicit reliable, high-quality outputs. It encompasses system prompt design, few-shot examples, chain-of-thought instructions, output format specification, and iterative refinement based on observed failures.

Key techniques: zero-shot prompting (just ask), few-shot prompting (provide examples of input-output pairs), chain-of-thought (instruct the model to reason step-by-step before answering), role prompting (assign a persona or expertise), and output structuring (specify JSON, markdown, or other formats).

Prompt engineering is less of a science and more of a craft, different models respond differently to the same prompts, and prompts that work for GPT-4 may not work for Claude.

Why it matters

This is the most immediately applicable skill for any work with AI models. Whether you're building a product, running an experiment, or helping a client, your ability to write effective prompts determines whether the AI actually does what you want. It's one of the fastest skills to improve with deliberate practice, ship something and iterate on the prompts.

Related concepts

Resources

Deep Dive into LLMs like ChatGPT (LLM psychology + models need tokens to think)
youtube.com· Covers the "psychology" of LLMs: hallucinations, tool use, working memory, knowledge of self. Understanding how models think is the foundation for good prompting. General audience, no code.
20 min
ChatGPT Prompt Engineering for Developers
deeplearning.ai· The gold standard free prompt engineering course. Covers guidelines, iterative prompting, summarizing, inferring, transforming, and expanding. From Andrew Ng and OpenAI.
90 min
Understanding Prompt Engineering Fundamentals
learn.microsoft.com· Part of Microsoft's free "Generative AI for Beginners" series. Covers prompt construction, iteration, validation, and best practices. Well-produced and beginner-appropriate.
20 min
Prompt Engineering Guide
promptingguide.ai· Comprehensive, research-backed reference covering zero-shot, few-shot, chain-of-thought, and more advanced techniques. Bookmark-worthy for recruits as an ongoing reference.
30 min
Anthropic's Prompt Engineering Documentation
docs.anthropic.com· Practical prompt engineering guide from the makers of Claude. Covers being clear and specific, using examples, giving Claude a role, and structuring complex prompts. Directly applicable to recruits' work with Claude.
15 min
PreviousBeginning of section
NextAPI Basics