Prompt Patterns|

A Pattern Language for Knowledge Engineering with Large Language Models

Buy the Book

The website is the free public reference. The book goes deeper with full pattern write-ups, worked examples, trade-offs, and guidance on how to combine patterns in practice.

Prompt Patterns book cover

Prompt Patterns on Leanpub

Buy the book if you want the fuller treatment: deeper explanations, more examples, variations, composition guidance, and the broader framing around knowledge engineering with large language models.

  • 27 reusable prompt patterns across 6 categories
  • Full write-ups with problem, solution, examples, and trade-offs
  • 6 design principles with rationale and diagnostic guidance
  • Pattern composition and cross-reference guidance
  • Diagrams for every pattern
View on Leanpub

Table of Contents

Introduction

  • Prompts
  • Patterns
  • Principles
  • Pattern Categories
  • Patterns List

Part 1 — Objective Framing

  • Task Directive
  • Perspective Framing
  • Judgment Criteria
  • Constraint Scoping
  • Example-Driven Specification

Part 2 — Information Supply

  • Context Loading
  • Context Curation
  • Structural Segmentation

Part 3 — Method Prescription

  • Alternative Enumeration
  • Hierarchical Decomposition
  • Dependency Decomposition
  • Stepwise Decomposition
  • Multi-Path Reasoning
  • Governing Abstraction

Part 4 — Quality Validation

  • Knowledge Externalization
  • Deferred Commitment
  • Reflective Evaluation
  • Claim Enumeration

Part 5 — Output Representation

  • Semantic Compression
  • Response Tail
  • Answer Boundary
  • Output Template
  • Formal Representation

Part 6 — Interaction Design

  • Control Reversal
  • Interpretation Grammar
  • Meta Prompting
  • Specification Extraction

Back Matter

  • Afterword
  • Resources

What stays free on this site

The core catalog remains public: the principles, the pattern map, the individual pattern definitions, and the resource list are here so the site is useful on its own.

Browse the free catalog