Prompt engineering applied to code generation: a preliminary systematic review
DOI:
https://doi.org/10.4114/intartif.vol29iss78pp21-58Keywords:
Prompt engineering, Software Engineering, automatic code generation, Artificial Intelligence, AI, Large Language Models, LLMsAbstract
This Systematic Literature Review examines prompt engineering in automatic code generation using large language models (LLMs). A methodological protocol identified 26 relevant primary studies to characterize the status, trends, challenges, and opportunities of prompt engineering in software development. The results show that prompt engineering has been established as a key discipline for optimizing interaction with LLMs and improve the accuracy, robustness, and applicability of the generated code. The findings were grouped into six recurring thematic categories: structured methodologies, pedagogical strategies, accuracy and robustness, code improvement techniques, security through prompts, and the relevance of prompt engineering in the interaction with LLMs. It also highlights that the accelerated growth of publications between 2021 and 2025, as well as the sustained academic interest, reflect the strategic value of prompt engineering in the software lifecycle. This review provides a critical knowledge base for researchers and developers seeking to integrate prompt engineering into their processes and practices effectively.
Downloads
Metrics
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Iberamia & The Authors

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
Open Access publishing.
Lic. under Creative Commons CC-BY-NC
Inteligencia Artificial (Ed. IBERAMIA)
ISSN: 1988-3064 (on line).
(C) IBERAMIA & The Authors

