Automating Domain-Driven Design: Experience with a Prompting Framework
Tobias Eisenreich, Husein Jusic, Stefan Wagner

TL;DR
This paper presents a prompting framework that leverages large language models to automate key activities in domain-driven design, aiding architects in creating documentation and understanding complex systems.
Contribution
The paper introduces a structured prompting framework for LLMs to assist in DDD activities, demonstrating its effectiveness and limitations through a real-world case study.
Findings
Steps 1 to 3 of the framework generated valuable artifacts.
Errors in later steps propagated and reduced artifact practicality.
Framework is effective as a collaborative tool, not full automation.
Abstract
Domain-driven design (DDD) is a powerful design technique for architecting complex software systems. This paper introduces a prompting framework that automates core DDD activities through structured large language model (LLM) interactions. We decompose DDD into five sequential steps: (1) establishing an ubiquitous language, (2) simulating event storming, (3) identifying bounded contexts, (4) designing aggregates, and (5) mapping to technical architecture. In a case study, we validated the prompting framework against real-world requirements from FTAPI's enterprise platform. While the first steps consistently generate valuable and usable artifacts, later steps show how minor errors or inaccuracies can propagate and accumulate. Overall, the framework excels as a collaborative sparring partner for building actionable documentation, such as glossaries and context maps, but not for full…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
