ChatGPT Prompt Patterns for Improving Code Quality, Refactoring, Requirements Elicitation, and Software Design
Not on the map. Why?
Abstract (arXiv)
This paper presents prompt design techniques for software engineering, in the form of patterns, to solve common problems when using large language models (LLMs), such as ChatGPT to automate common software engineering activities, such as ensuring code is decoupled from third-party libraries and simulating a web application API before it is implemented. This paper provides two contributions to research on using LLMs for software engineering. First, it provides a catalog of patterns for software engineering that classifies patterns according to the types of problems they solve. Second, it explores several prompt patterns that have been applied to improve requirements elicitation, rapid prototyping, code quality, refactoring, and system design.
Key facts. Cited by 66 papers in the map (data through 7 Oct 2026). Builds on 13 of its 30 references that are in the map. First posted on arXiv 11 Mar 2023.
Builds on
13 of 30 references.
References · 13
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2023A Multitask, Multilingual, Multimodal Evaluation of ChatGPT on Reasoning, Hallucination, and Interactivitycited by 888
- 2023A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPTcited by 612
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2023Mathematical Capabilities of ChatGPTcited by 263
- 2023A Categorical Archive of ChatGPT Failurescited by 167
- 2023An Analysis of the Automatic Bug Fixing Performance of ChatGPTcited by 108
- 2022Is GitHub's Copilot as Bad as Humans at Introducing Vulnerabilities in Code?cited by 63
- 2023Conversational Automated Program Repaircited by 41
- 2023ChatGPT and Software Testing Education: Promises & Perilscited by 40
Built on by
Citing papers per year: 2023: 22; 2024: 22; 2025: 18; 2026: 4.
66 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2023One Small Step for Generative AI, One Giant Leap for AGI: A Complete Survey on ChatGPT in AIGC Eracited by 55
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 39
- 2024Best Practices for Text Annotation with Large Language Modelscited by 34
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineeringcited by 28
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
- 2023ChatGPT for Programming Numerical Methodscited by 26
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
- 2023Enhancing Network Management Using Code Generated by Large Language Modelscited by 20
38 more
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2023Decoding ChatGPT: A Taxonomy of Existing Research, Current Challenges, and Possible Future Directionscited by 18
- 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectivescited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
- 2023LyricWhiz: Robust Multilingual Zero-shot Lyrics Transcription by Whispering to ChatGPTcited by 15
- 2024SocialGPT: Prompting LLMs for Social Relation Reasoning via Greedy Segment Optimizationcited by 14
- 2024LLM-based agents for automating the enhancement of user story quality: An early reportcited by 13
- 2023Comparing Software Developers with ChatGPT: An Empirical Investigationcited by 11
- 2023An Empirical Study on Using Large Language Models to Analyze Software Supply Chain Security Failurescited by 11
- 2024Model Generation with LLMs: From Requirements to UML Sequence Diagramscited by 11
- 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaborationcited by 10
- 2023ChatGPT for PLC/DCS Control Logic Generationcited by 9
- 2023Knowledge Engineering using Large Language Modelscited by 9
- 2024Enhancing Computer Programming Education with LLMs: A Study on Effective Prompt Engineering for Python Code Generationcited by 9
- 2024Enhancing Robustness in Large Language Models: Prompting for Mitigating the Impact of Irrelevant Informationcited by 8
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLMcited by 8
- 2023On the Opportunities of Green Computing: A Surveycited by 7
- 2024Automated User Story Generation with Test Case Specification Using Large Language Modelcited by 7
- 2024StuGPTViz: A Visual Analytics Approach to Understand Student-ChatGPT Interactionscited by 7
- 2024LLM4DS: Evaluating Large Language Models for Data Science Code Generationcited by 7
- 2023FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categories and Test Code Repaircited by 6
- 2024Leveraging Large Language Models to Detect npm Malicious Packagescited by 6
- 2024Had enough of experts? Quantitative knowledge retrieval from large language modelscited by 4
- 2024To what extent is ChatGPT useful for language teacher lesson plan creation?cited by 4
- 2025The Impact of LLM-Assistants on Software Developer Productivity: A Systematic Review and Mapping Studycited by 4
- 2025LLM-Assisted Semantic Alignment and Integration in Collaborative Model-Based Systems Engineering Using SysML v2cited by 4
- 2023Toward Reproducing Network Research Results Using Large Language Modelscited by 3
- 2024Advancing GenAI Assisted Programming--A Comparative Study on Prompt Efficiency and Code Quality Between GPT-4 and GLM-4cited by 3
- 2024SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Frameworkcited by 3
- 2025LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Codecited by 3
- 2023Towards the Exploitation of LLM-based Chatbot for Providing Legal Support to Palestinian Cooperativescited by 2
- 2023Evaluating Privacy Questions From Stack Overflow: Can ChatGPT Compete?cited by 2
- 2023Large Language Models to the Rescue: Reducing the Complexity in Scientific Workflow Development Using ChatGPTcited by 2
- 2024A Qualitative Study on Using ChatGPT for Software Security: Perception vs. Practicalitycited by 2
- 2025Boosting Universal LLM Reward Design through Heuristic Reward Observation Space Evolutioncited by 2
- 2025Can LLMs Generate User Stories and Assess Their Quality?cited by 2
- 2025Leveraging Large Language Models for Use Case Model Generation from Software Requirementscited by 2
- 2024The importance of visual modelling languages in generative software engineeringcited by 1
50 most cited of 66 All 66 (JSON)
- 2026How Well Can AI Generate Backlogs from App Mockups?24 Jul 2026
- 2026An Empirical Study of Downstream Adaptation for Agent Skills3 Jul 2026
- 2026Towards Agentic Investigation of Security Alerts28 Apr 2026
- 2026ArgRE: Formal Argumentation for Conflict Resolution in Multi-Agent Requirements Negotiation25 Apr 2026
- 2025LAURA: Enhancing Code Review Generation with Context-Enriched Retrieval-Augmented LLM1 Dec 2025
- 2025Leveraging Large Language Models for Use Case Model Generation from Software Requirements12 Nov 2025
- 2025Are We SOLID Yet? An Empirical Study on Prompting LLMs to Detect Design Principle Violations3 Sep 2025
- 2025LLM-Assisted Semantic Alignment and Integration in Collaborative Model-Based Systems Engineering Using SysML v222 Aug 2025
- 2025Automatic Classification of User Requirements from Online Feedback -- A Replication Study29 Jul 2025
- 2025Can LLMs Generate User Stories and Assess Their Quality?20 Jul 2025
- 2025The Impact of LLM-Assistants on Software Developer Productivity: A Systematic Review and Mapping Study3 Jul 2025
- 2025LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Code24 Jun 2025
38 more
- 2025Instruction Learning Paradigms: A Dual Perspective on White-box and Black-box LLMs14 Jun 2025
- 2025Supporting architecture evaluation for ATAM scenarios with LLMs30 May 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025Boosting Universal LLM Reward Design through Heuristic Reward Observation Space Evolution10 Apr 2025
- 2025ARLO: A Tailorable Approach for Transforming Natural Language Software Requirements into Architecture using LLMs8 Apr 2025
- 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration18 Mar 2025
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitation17 Mar 2025
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Code10 Feb 2025
- 2025Toward Neurosymbolic Program Comprehension3 Feb 2025
- 2024System Test Case Design from Requirements Specifications: Insights and Challenges of Using ChatGPT4 Dec 2024
- 2024SmartLLMSentry: A Comprehensive LLM Based Smart Contract Vulnerability Detection Framework28 Nov 2024
- 2024The importance of visual modelling languages in generative software engineering27 Nov 2024
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedback18 Nov 2024
- 2024LLM4DS: Evaluating Large Language Models for Data Science Code Generation16 Nov 2024
- 2024SocialGPT: Prompting LLMs for Social Relation Reasoning via Greedy Segment Optimization28 Oct 2024
- 2024Enhancing Robustness in Large Language Models: Prompting for Mitigating the Impact of Irrelevant Information20 Aug 2024
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024A Qualitative Study on Using ChatGPT for Software Security: Perception vs. Practicality1 Aug 2024
- 2024StuGPTViz: A Visual Analytics Approach to Understand Student-ChatGPT Interactions17 Jul 2024
- 2024Enhancing Computer Programming Education with LLMs: A Study on Effective Prompt Engineering for Python Code Generation7 Jul 2024
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineering6 May 2024
- 2024Performance-Aligned LLMs for Generating Fast Code29 Apr 2024
- 2024To what extent is ChatGPT useful for language teacher lesson plan creation?25 Apr 2024
- 2024Model Generation with LLMs: From Requirements to UML Sequence Diagrams9 Apr 2024
- 2024Automated User Story Generation with Test Case Specification Using Large Language Model2 Apr 2024
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar 2024
- 2024Leveraging Large Language Models to Detect npm Malicious Packages18 Mar 2024
- 2024LLM-based agents for automating the enhancement of user story quality: An early report14 Mar 2024
- 2024Advancing GenAI Assisted Programming--A Comparative Study on Prompt Efficiency and Code Quality Between GPT-4 and GLM-420 Feb 2024
- 2024Had enough of experts? Quantitative knowledge retrieval from large language models12 Feb 2024
- 2024Best Practices for Text Annotation with Large Language Models5 Feb 2024
- 2023Assessing the Impact of Prompting Methods on ChatGPT's Mathematical Capabilities22 Dec 2023
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examples20 Nov 2023
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2023Large Language Models to the Rescue: Reducing the Complexity in Scientific Workflow Development Using ChatGPT3 Nov 2023
- 2023On the Opportunities of Green Computing: A Survey1 Nov 2023
- 2023Knowledge Engineering using Large Language Models1 Oct 2023
50 newest of 66 All 66 (JSON)
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Futurecited by 85
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AIcited by 39
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agentscited by 34
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineeringcited by 28
- 2024LLM-based agents for automating the enhancement of user story quality: An early reportcited by 13
- 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaborationcited by 10
- 2025LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Codecited by 3
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitationcited by 1
- 2026Towards Agentic Investigation of Security Alertscited by 1
- 2026ArgRE: Formal Argumentation for Conflict Resolution in Multi-Agent Requirements Negotiationcited by 0
- 2026An Empirical Study of Downstream Adaptation for Agent Skillscited by 0
- 2026An Empirical Study of Downstream Adaptation for Agent Skills3 Jul 2026
- 2026Towards Agentic Investigation of Security Alerts28 Apr 2026
- 2026ArgRE: Formal Argumentation for Conflict Resolution in Multi-Agent Requirements Negotiation25 Apr 2026
- 2025LLM-based Multi-Agent System for Intelligent Refactoring of Haskell Code24 Jun 2025
- 2025Vibe Coding vs. Agentic Coding: Fundamentals and Practical Implications of Agentic AI26 May 2025
- 2025MANTRA: Enhancing Automated Method-Level Refactoring with Contextual RAG and Multi-Agent LLM Collaboration18 Mar 2025
- 2025Goal2Story: A Multi-Agent Fleet based on Privately Enabled sLLMs for Impacting Mapping on Requirements Elicitation17 Mar 2025
- 2024From LLMs to LLM-based Agents for Software Engineering: A Survey of Current, Challenges and Future5 Aug 2024
- 2024MARE: Multi-Agents Collaboration Framework for Requirements Engineering6 May 2024
- 2024SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents23 Mar 2024
- 2024LLM-based agents for automating the enhancement of user story quality: An early report14 Mar 2024
- 2025Boosting Universal LLM Reward Design through Heuristic Reward Observation Space Evolution10 Apr 2025
- 2024SocialGPT: Prompting LLMs for Social Relation Reasoning via Greedy Segment Optimization28 Oct 2024
- 2023Assessing the Impact of Prompting Methods on ChatGPT's Mathematical Capabilities22 Dec 2023
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2023One Small Step for Generative AI, One Giant Leap for AGI: A Complete Survey on ChatGPT in AIGC Eracited by 55
- 2024Best Practices for Text Annotation with Large Language Modelscited by 34
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 27
- 2023ChatGPT for Programming Numerical Methodscited by 26
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 22
- 2023Enhancing Network Management Using Code Generated by Large Language Modelscited by 20
- 2024Performance-Aligned LLMs for Generating Fast Codecited by 20
- 2023Decoding ChatGPT: A Taxonomy of Existing Research, Current Challenges, and Possible Future Directionscited by 18
- 2023Harnessing LLMs in Curricular Design: Using GPT-4 to Support Authoring of Learning Objectivescited by 16
- 2023From Commit Message Generation to History-Aware Commit Message Completioncited by 16
12 most cited of 51 All 51 (JSON)
- 2026How Well Can AI Generate Backlogs from App Mockups?24 Jul 2026
- 2025Leveraging Large Language Models for Use Case Model Generation from Software Requirements12 Nov 2025
- 2025Are We SOLID Yet? An Empirical Study on Prompting LLMs to Detect Design Principle Violations3 Sep 2025
- 2025LLM-Assisted Semantic Alignment and Integration in Collaborative Model-Based Systems Engineering Using SysML v222 Aug 2025
- 2025Automatic Classification of User Requirements from Online Feedback -- A Replication Study29 Jul 2025
- 2025Can LLMs Generate User Stories and Assess Their Quality?20 Jul 2025
- 2025The Impact of LLM-Assistants on Software Developer Productivity: A Systematic Review and Mapping Study3 Jul 2025
- 2025Instruction Learning Paradigms: A Dual Perspective on White-box and Black-box LLMs14 Jun 2025
- 2025Supporting architecture evaluation for ATAM scenarios with LLMs30 May 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025ARLO: A Tailorable Approach for Transforming Natural Language Software Requirements into Architecture using LLMs8 Apr 2025
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Code10 Feb 2025
12 newest of 51 All 51 (JSON)