Prompt pattern
A prompt pattern is a reusable structure or strategy for formulating model inputs to address recurring needs, including relevant constraints or trade-offs.
Claude at Work
A prompt pattern is a reusable structure for specifying a desired outcome, its purpose, and applicable constraints.
- How it is used
- Structures requests to Claude around a desired outcome, intent, and usable constraints.
- How deep it goes
- Defines a three-part structure and allows follow-up clarification without prescribing a fixed template.
- Examples
- Uses pasted system logs followed by “what’s up?” as an example of supplying raw data.
- What you can do after
- Apply it via Claude by stating what you want, why you want it, and any constraints.
Prompt Engineering in Practice
A reusable prompt structure for addressing a recurring prompting problem and its trade-offs.
- How it is used
- Frames reusable interaction strategies for recurring language-model problems, shaping how a model approaches tasks rather than merely formatting prompts.
- 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 you can do after
- Apply reusable strategies across domains to make language-model interactions more consistent and address recurring task problems.
Read how Prompt Engineering in Practice explains prompt pattern →
Related concepts
- delimiter patternincludes · A prompt pattern that uses delimiters to distinguish input parameters or content regions.
- prompt templateincludes · A prompt template is a reusable structure for organizing fixed instructions and content with variable inputs to form prompts for a language model.
- role assignmentincludes · Role assignment is a prompting technique that directs a model to respond from a specified role, perspective, expertise, or voice.
Questions about prompt pattern
What is prompt pattern?
A prompt pattern is a reusable structure or strategy for formulating model inputs to address recurring needs, including relevant constraints or trade-offs.
Which Manning books explain prompt pattern?
Claude at Work and Prompt Engineering in Practice.
What kinds of prompt pattern are there?
Kinds of prompt pattern include delimiter pattern, contextual pattern, prompt template, role assignment, structural pattern and transformational pattern.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

