AI-Driven Development
MasLazu.AspNet supports an AI-driven development workflow that allows you to generate complete backend modules from simple descriptions.
Visual DSL and Playbook
We use a combination of a visual Domain Specific Language (DSL) based on Markdown and Mermaid, and a comprehensive Playbook that teaches AI agents how to build modules following MasLazu.AspNet patterns.
Key Components
- Visual DSL: Define entities, relationships, services, and endpoints using Markdown and Mermaid ER diagrams.
- AI Playbook: A set of documentation and templates located in the
.ai/folder that guides AI agents. - Automated Workflows: Pre-defined workflows to convert requirements to DSL and then to production-ready code.
How it Works
- Requirement Analysis: You describe your module requirements in natural language.
- DSL Generation: An AI agent uses the
nl-to-dslworkflow to create a structured DSL file and a task checklist. - Review & Approval: You review the generated DSL and tasks.
- Code Execution: The AI agent uses the
execute-from-dslworkflow to generate all layers of the module (Domain, Abstraction, Base, EfCore, and Adapter).
Getting Started
One-Line Installation
Run this command in your project root to download the AI playbook into a .ai/ directory:
mkdir -p .ai && curl -sSL https://github.com/MasLazu/maslazu-aspnet-workflow/archive/refs/heads/main.tar.gz | tar -xz -C .ai --strip-components=1
[!NOTE] This command requires
curlandtar. On Windows, you can run this in PowerShell or CMD (Windows 10/11 includestar.exe).
Manual Submodule Method
If you prefer to keep the playbook updated as a git submodule:
git submodule add git@github.com:MasLazu/maslazu-aspnet-workflow.git .ai
Once the playbook is available, you can ask your AI assistant to "Generate a backend from natural language requirements".