用提示词驱动开发,10小时造出7420行终端界面框架。
Prompt Driven Development with Claude Code: Building a Complete TUI Framework for the Ring Programming Language
- 纯提示词驱动,通过107条提示分阶段构建系统。
- 完成窗口管理、事件驱动、多窗口桌面等完整功能。
- 适合想尝试提示词开发的工程师和新兴语言研究者。
大型语言模型在软件开发中的应用日益广泛,但其通过自然语言交互生成与维护大型多模块系统的能力仍缺乏充分评估。本研究对使用Claude Code(Opus 4.5)进行提示词驱动开发的全过程进行了实证分析:在约三日内投入十小时主动工作,成功构建了一个7420行的终端用户界面(TUI)框架,用于Ring编程语言。整个过程共使用107条提示,包括21条功能请求、72条修复缺陷提示、9条引用文档信息的提示、4条架构指导提示及1条生成文档提示。开发分为五个阶段,窗口管理阶段互动最多,随后是复杂UI系统与控件扩展。修复类提示涵盖重绘问题、事件处理故障、运行时错误与布局不一致;功能请求主要聚焦新控件、窗口管理能力与高级组件。绝大多数提示简短,体现高度迭代的工作流,人类角色仅限于提出需求、验证行为并发出修正指令,未手动编写任何代码。最终框架包含完整的窗口子系统、事件驱动架构、可交互控件、层级菜单、网格与树形组件、标签页控制及多窗口桌面环境。结合提示数量的定量分析与模型行为的定性评估,研究证实现代大模型可在保持架构一致性的同时,支持为新兴编程语言构建生产级工具,凸显提示词驱动开发在软件工程实践中的可行性。
原文摘要 · Abstract (English)
Large language models are increasingly used in software development, yet their ability to generate and maintain large, multi module systems through natural language interaction remains insufficiently characterized. This study presents an empirical analysis of developing a 7420 line Terminal User Interface framework for the Ring programming language, completed in roughly ten hours of active work spread across three days using a purely prompt driven workflow with Claude Code, Opus 4.5. The system was produced through 107 prompts: 21 feature requests, 72 bug fix prompts, 9 prompts sharing information from Ring documentation, 4 prompts providing architectural guidance, and 1 prompt dedicated to generating documentation. Development progressed across five phases, with the Window Manager phase requiring the most interaction, followed by complex UI systems and controls expansion. Bug related prompts covered redraw issues, event handling faults, runtime errors, and layout inconsistencies, while feature requests focused primarily on new widgets, window manager capabilities, and advanced UI components. Most prompts were short, reflecting a highly iterative workflow in which the human role was limited to specifying requirements, validating behaviour, and issuing corrective prompts without writing any code manually. The resulting framework includes a complete windowing subsystem, event driven architecture, interactive widgets, hierarchical menus, grid and tree components, tab controls, and a multi window desktop environment. By combining quantitative prompt analysis with qualitative assessment of model behaviour, this study provides empirical evidence that modern LLMs can sustain architectural coherence and support the construction of production grade tooling for emerging programming languages, highlighting prompt driven development as a viable methodology within software engineering practice.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。