Skip to content
Skills Library
Programming · Building & coding

domainmodel-dsl

/domainmodel-dsl

Read, write, and modify Domain Model DSL files (.dmodel) — datatypes, entities with inheritance and multi-valued features, and nested packages with qualified cross-references. Use when the user wants to create, edit, explain, or debug a domain model in this DSL, including resolving references across packages.

Licence
MIT
Last repository change
22.10.2026

Assessment and security

95/ 100Class: good
Format20 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 22.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Read, write, and modify Domain Model DSL files (.dmodel) — datatypes, entities with inheritance and multi-valued features, and nested packages with qualified cross-references. Use when the user wants to create, edit, explain, or debug a domain model in this DSL, including resolving references across packages.

Original author description

Read, write, and modify Domain Model DSL files (.dmodel) — datatypes, entities with inheritance and multi-valued features, and nested packages with qualified cross-references. Use when the user wants to create, edit, explain, or debug a domain model in this DSL, including resolving references across packages.

How it works

  1. Top-level structure
  2. Syntax (EBNF)
  3. Datatypes
  4. Entities, features, inheritance
  5. Packages and qualified names
  6. Semantics and rules
  7. When generating or modifying
  8. Example
Original SKILL.md headings · 141 lines, 502 words
SKILL.md preview
---
name: domainmodel-dsl
description: Read, write, and modify Domain Model DSL files (.dmodel) — datatypes, entities with inheritance and multi-valued features, and nested packages with qualified cross-references. Use when the user wants to create, edit, explain, or debug a domain model in this DSL, including resolving references across packages.
---

# Domain Model DSL

A language for describing a data model: primitive **datatypes**, **entities** with **features**,
inheritance between entities, and **packages** that namespace declarations. A `.dmodel` file is a
flat sequence of top-level elements (packages or types); there is no module header.

## Top-level structure

A file is zero or more elements, each either a package or a type (a datatype or an entity):

```
datatype String
datatype Int

entity Person {
    name: String
}
```

## Syntax (EBNF)

```ebnf
domainmodel_file  = { top_level_element } ;

top_level_element = package | type ;

package           = "package", qualified_name, "{", { top_level_element }, "}" ;

type              = datatype | entity ;

datatype          = "datatype", identifier ;

entity            = "entity", identifier, [ extends_clause ], "{", { feature }, "}" ;
extends_clause    = "extends", qualified_name ;

feature           = [ "many" ], identifier, ":", qualified_name ;

qualified_name    = identifier, { ".", identifier } ;

identifier        = letter, { letter | digit | "_" } ;
letter            = "A" | "B" | ... | "Z" | "a" | "b" | ... | "z" ;
```

## Datatypes

A primitive type:

```
datatype String
```

## Entities, features, inheritance

An entity has a name, an optional supertype, and a block of features:

```
entity Person {
    name: String
    age: Int
}

entity Employee extends Person {
    salary: Int
}
```

- `extends <Entity>` — single inheritance; the supertype is referenced by its (qualified) name and
  must resolve to an entity.
- Each feature is `(<many>)? <name> : <Type>`. The type is a datatype or an entity, referenced by
  its (qualified) name.
- Prefix a feature with `many` to make it multi-valued (a collection):

```
entity Blog {
    title: String
    many posts: Post
}
```

## Packages and qualified names

`package <QualifiedName> { ... }` groups elements and can nest. A **qualified name** is one or
more identifiers joined by dots (`foo.bar.Baz`). References use qualified names to reach
declarations in other packages; from inside a package you may use a name relative to the current
scope:

```
datatype String

package complex {
    datatype Date
}

package blog {
    entity Post {
        title: String
        published: complex.Date
    }

    entity Comment {
        on: Post
    }
}
```

## Semantics and rules

- Every reference — a feature's type, an `extends` supertype — must resolve to a declaration,
  using qualified names across package boundaries.
- The same simple name may exist in different packages; the qualified name disambiguates
  (`big.Int` vs a top-level `Int`).
- Comments use `//` and `/* */`.

## When generating or modifying

- Declare datatypes and referenced entities before (or alongside) the entities that use them, and
  make sure every feature type and `extends` target resolves.
- Use `many` for collection-valued features.
- When adding an entity in a package, reference types in other packages by their qualified name.

## Example

```
datatype String

entity HasAuthor {
    author: String
}

entity Post extends HasAuthor {
    title: String
    content: String
    many comments: Comment
}

entity Comment extends HasAuthor {
    content: String
}
```

Versions

The database has no other skills named domainmodel-dsl.

Database snapshot: 13.11.2026 · package version a89fe4a0722e (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100statemachine-dsl
    Read, write, and modify Statemachine DSL files (.statemachine). Use when the user wants to create, edit, explain, or debug a state machine written in this textual DSL — defining states, events, commands, and transitions, or generating a machine from a description.
  • 95arithmetics-dsl
    Work with the Arithmetics calculator DSL (.calc) — a small language for defining named values and functions and evaluating expressions. Use when the user wants to write or edit arithmetics modules, define functions, or compute expressions in this DSL.
  • 100makepad-dsl
    CRITICAL: Use for Makepad DSL syntax and inheritance. Triggers on: makepad dsl, live_design, makepad inheritance, makepad prototype, "<Widget>", "Foo = { }", makepad object, makepad property, makepad DSL 语法, makepad 继承, makepad 原型, 如何定义 makepad 组件
  • 100makepad-dsl
    CRITICAL: Use for Makepad DSL syntax and inheritance. Triggers on: makepad dsl, live_design, makepad inheritance, makepad prototype, "<Widget>", "Foo = { }", makepad object, makepad property, makepad DSL 语法, makepad 继承, makepad 原型, 如何定义 makepad 组件
  • 100makepad-dsl
    CRITICAL: Use for Makepad DSL syntax and inheritance. Triggers on: makepad dsl, live_design, makepad inheritance, makepad prototype, "<Widget>", "Foo = { }", makepad object, makepad property, makepad DSL 语法, makepad 继承, makepad 原型, 如何定义 makepad 组件
  • 100update-data-model
    Add or modify domain entities in the data model using Zod schemas. Use when creating new entities, adding fields, changing relationships, or updating the domain model structure.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.