提示融合需求与解决方案:从意图到实现
Prompts Blend Requirements and Solutions: From Intent to Implementation
AI总结:
本文提出将提示视为轻量级需求 artifacts,通过分析现有提示,提出包含功能质量、通用解决方案和具体解决方案的模型,并提出四个假设以评估提示工程的最佳实践。
摘要:
AI 编码助手通过将关注点从编写代码转向制定提示,正在重塑软件开发。在以聊天为中心的方法如 vibe 编码中,提示成为人类意图和可执行软件之间的主要仲裁者。尽管需求工程(RE)强调捕获、验证和演变需求,但当前的提示实践仍较为随意。本文认为提示应被视为轻量级、不断演化的需求 artifacts,融合需求与解决方案指导。我们提出一个概念模型,将提示分解为三个相互关联的组成部分:功能和质量(需求)、通用解决方案(架构策略和技术选择)和具体解决方案(实现层面的约束)。我们通过现有提示评估该模型,研究这些组成部分在实践中的表现。基于该模型和初步评估,我们提出四个假设:提示向具体性演进,演进因用户特征而异,使用提示的工程师进行更多需求验证和验证,渐进式提示细化产生更高代码质量。我们的愿景是通过分析真实世界的 AI 辅助开发,实证评估这些假设,通过数据集、语料分析和受控实验,最终得出需求感知提示工程的最佳实践。通过以需求工程的视角重新思考提示,我们将提示不仅视为技术技能,而是软件工程未来的核心问题。
英文摘要:
AI coding assistants are fundamentally reshaping software development by shifting developers' effort from writing code toward specifying intent through natural language prompts. In emerging chat-based development practices such as vibe coding, prompts mediate the transformation of human intent into executable software. While Requirements Engineering (RE) emphasizes capturing, validating, and evolving requirements, current prompting practices remain informal and ad hoc. In this vision paper, we argue that prompts represent lightweight, evolving requirements artifacts that combine expressions of user needs with varying degrees of solution guidance. We use an existing conceptual model that decomposes prompts into three interrelated dimensions: Functionality and Quality (capturing intended system requirements), General Solutions (capturing architectural strategies and technology choices), and Specific Solutions (capturing implementation-level constraints and directives). Building on this conceptualization, we formulate four research hypotheses concerning (i) the evolution of prompts over time, (ii) the influence of user characteristics on prompt evolution, (iii) the relationship between prompt content and requirements validation and verification activities, and (iv) the impact of prompt characteristics on requirements and resulting software quality. We envision an empirical research agenda combining real-world AI-assisted development data, corpus analysis, and controlled experimentation to investigate these hypotheses and derive evidence-based practices for requirements-aware prompt engineering. By reframing prompts through the lens of RE, we position prompting not merely as an interaction mechanism with AI systems, but as a central software engineering concern requiring systematic study.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。