The eld-model-law-discovery skill is a specialized tool designed to automate the extraction of domain vocabulary (Terms) and business constraints (Laws) from codebases or requirement documents. By analyzing technical artifacts like TypeScript interfaces, Zod schemas, and assertions, it helps developers bridge the gap between implementation and architectural documentation, facilitating Logic-Driven Engineering (LDE) and Domain-Driven Design (DDD).
Use Cases
Legacy Code Refactoring: Automatically extract hidden business rules and domain models from existing codebases to create structured documentation.
New Project Initialization: Rapidly bootstrap domain catalogs by identifying core terms and constraints during the early design and requirement analysis phases.
LDE Workflow Automation: Generate structured inputs for /lde-term-card and /lde-law-card directly from source code, reducing manual documentation effort.
Constraint Auditing: Discover and visualize complex validation logic and invariants within Zod schemas and assertions to ensure architectural consistency.
Knowledge Transfer: Help new team members understand the domain model by providing a clear mapping of code-level types to high-level business concepts.