Landscape and Taxonomy of Prompt Engineering Patterns in Software Engineering

Yuya Sasaki, Hironori Washizaki, Jialong Li, Nobukazu Yoshioka, Naoyasu Ubayashi, Yoshiaki FukazawaarXiv 2026 · DOI

It’s late. You’ve probably spent the last few hours wrestling with a codebase that feels like it was written by a caffeinated squirrel, or perhaps you’ve been trying to get an LLM to write a unit test that doesn't hallucinate a new library. We’ve all been there.

The "secret sauce" to making these AI models actually useful in software engineering (SE) is prompt engineering. But until recently, prompt engineering felt more like alchemy than science—a collection of "vibes" and "hacks" shared on Twitter. This paper, Landscape and Taxonomy of Prompt Engineering Patterns in Software Engineering, aims to turn that alchemy into a structured discipline.

TL;DR

Think of this as the "Gang of Four" design patterns book, but for talking to Large Language Models. The authors conducted a massive literature review to categorize 26 distinct "prompt patterns" that help engineers get reliable, high-quality code and documentation out of AI, moving from "guessing what works" to a systematic taxonomy of success.

What Problem Does This Paper Address?

Large Language Models (LLMs) like GPT-4 or Codex are incredibly capable, but they are also notoriously fickle. In software engineering, where precision is everything, a "mostly correct" answer is often just a bug in disguise.

The problem is that the field of prompt engineering—the art of tailoring inputs to get specific outputs—has been fragmented. There was no map, no common vocabulary, and no clear understanding of which techniques work for which software tasks. The authors set out to build that map, providing a taxonomy that organizes these "tricks" into a professional framework.

Methods

The researchers performed a Systematic Literature Review (SLR) using the PRISMA framework (a gold standard for these kinds of studies). They started with a wide net of 158 studies and whittled them down to 28 high-quality papers that specifically applied and evaluated prompt engineering in SE.

From these, they extracted 26 prompt engineering patterns and organized them into a four-category taxonomy:

  1. Learning-Driven: How we provide context (e.g., "few-shot" examples).
  2. Interaction-Focused: How we talk back and forth with the model (e.g., iterative refinement).
  3. Task-Specific: Patterns for specific jobs like bug fixing or code summarization.
  4. Model Optimization: Tweaking the model’s internal "knobs" (parameters) to fit the task.
The authors' taxonomy of prompt engineering patterns, ranging from learning approaches to model optimization.

Datasets

Since this is a meta-analysis (a study of other studies), the "dataset" consists of the 28 selected research papers. However, the authors also mapped these patterns against the ISO/IEC 25010:2023 standard for software quality. This allowed them to see exactly which patterns improve things like "functional suitability" versus "maintainability."

Key Insights and Ideas

  • The Explosion of Interest: Research in this area is skyrocketing. As shown in Figure 2, the number of papers published per quarter jumped from just two in late 2021 to eight in early 2023. We are currently in the "Cambrian Explosion" of AI-assisted coding.
  • Codex is the Workhorse: While we talk a lot about general-purpose models, Codex (the engine behind GitHub Copilot) was the most frequently discussed model in the literature, particularly for construction and testing phases.
  • Interaction is the "Aha" Moment: The most effective patterns aren't just about the first prompt; they are about the loop. Patterns like PB6 (Gradual execution and output)—essentially "Chain of Thought" for code—break complex tasks into smaller, verifiable steps, which drastically reduces hallucinations.
  • Quality Mapping: Most patterns focus on Functional Suitability (making sure the code actually works) and Interaction Capability (making the AI easier to work with). There is still a lot of room to grow in using prompts to improve software Security and Reliability.
A look at the rapid growth of research papers in this field over a two-year span.

Key Results

The paper provides a "cheat sheet" for engineers (Table 1). Some highlights include:

  • Pattern PA1 (Example-based few-shot): Providing a few strategic examples is still one of the most powerful ways to "program" an LLM without fine-tuning it.
  • Pattern PB10 (Fact checklist): Forcing the LLM to generate a list of critical facts before it generates code helps it stay grounded and reduces "hallucinations."
  • Pattern PC3 (Leveraging metadata): Using repository context (like file structures or documentation) is key to making AI feel like a teammate rather than a stranger looking at a single file.
TABLE 1. Categories of prompt engineering pattern.2

Limitations and Future Work

The authors are honest about the "expiration date" of this kind of research. Their data reflects the state of AI in early 2023. Since then, context windows have exploded (from 4k tokens to 1M+), and multimodal models (that can "see" diagrams) have arrived.

Future directions include: * Requirements Engineering: Using LLMs earlier in the lifecycle to help elicit and design requirements, not just write the code. * Multimodal Inputs: Moving beyond text to include architectural diagrams and UI mockups as prompts. * Formal Analysis: We need better ways to quantitatively prove that one prompt pattern is better than another, rather than just relying on developer intuition.

In short: the wild west of prompting is starting to get some fences and roads. If you want to be more than just a "prompt guesser," understanding these patterns is the first step toward becoming a true AI-augmented engineer. Now, go get some sleep.

Summary updated

BibTeX
@misc{sasaki2026landscape,
  author = {Yuya Sasaki and Hironori Washizaki and Jialong Li and Nobukazu Yoshioka and Naoyasu Ubayashi and Yoshiaki Fukazawa},
  title = {{Landscape and Taxonomy of Prompt Engineering Patterns in Software Engineering}},
  year = {2026},
  eprint = {2611.29853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.29853},
}
Figure