The SmartModel extension for Visual Studio Code allows you to automatically generate domain models in PlantUML format from software requirements written in natural language. This extension uses language models (LLMs) to process your requirements and produce a visual representation of domain entities, their attributes, and relationships.
Features
Natural Language to Domain Model
Automatically extract domain entities, attributes, and relationships from software requirements.
LLM-Powered:
Use OpenAI's GPT model or local LLMs using ollama
Generate UML in PlantUML Format
Output clean UML class diagrams directly from your requirements.
Traceability Support
Optionally include links between model elements and original requirement text.
🛠️ Getting Started
1. Requirements
PlantUML extension to visualize generated domain models - you can find it here PlantUML.
Ollama for local LLM models - you can download it here Ollama and install the models you prefer.
OpenAI API Key for OpenAI GPT model — you can get one from OpenAI's website.
2. Usage
Open the command palette Ctrl+Shift+P.
Run "dom-gen".
Paste your software requirements.
Choose:
LLM provider (GPT or Ollama)
Whether to include traceability
Run domain model generation.
Automatically open output workspace and view your model.