liveBook · Manning

Prompt pattern

As explained in Prompt Engineering in Practice

A reusable prompt structure for addressing a recurring prompting problem and its trade-offs.

A prompt pattern is a reusable strategy for addressing a recurring language-model task. It shapes how the model approaches the task—such as generating, critiquing, or adapting—rather than merely formatting the prompt. section 4.1

Eight patterns are grouped by the role they play:

  • Structural patterns—role assignment, delimiter, template, and repetition—guide task approach and consistency. section 4.1
  • Contextual patterns—self-reflection and inversion—surface insights, outside perspectives, and blind spots. section 4.1
  • Transformational patterns—refinement and comment-driven generation—improve existing content using analysis. section 4.1
Figure 4.1 Prompt pattern taxonomy showing structural, contextual, and transformational patterns

Use the taxonomy to distinguish patterns that establish task structure from those that surface gaps or improve existing content. section 4.1

Feature-planning prompt

Act as a senior software engineer. Create an implementation plan for {{feature_name}} using {{business_goal}}, {{acceptance_criteria}}, {{constraints}}, and {{target_release}}. Follow the specified output format and scope constraints. section 5.2.1

How Prompt Engineering in Practice covers it

How deep it goes
Defines eight patterns across three categories and links them to templates, while leaving individual pattern procedures largely unspecified.
Examples
Uses a feature-planning prompt with a senior-engineer role, variable request inputs, constraints, and a specified output format.
What it assumes
Assumes familiarity with structural and linguistic prompt elements, while positioning patterns as the strategic layer above them.
What you can do after
Apply reusable strategies across domains to make language-model interactions more consistent and address recurring task problems.
How it connects
Connects patterns with structural and linguistic elements, software design patterns, role assignment, delimiters, templates, repetition, self-reflection, inversion, refinement, and comment-driven generation.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Prompt Engineering in Practice. The section links point to the parts of the book it draws on.