Skip to content
BeClaude

modelith

New
16GitHub TrendingDevelopmentby stacklok

A set of tools for working with domain models

First seen 7/2/2026

Summary

Modelith provides a set of tools for working with domain models, enabling developers to define, validate, and transform domain objects with ease.

  • It simplifies common modeling tasks such as serialization, type coercion, and schema enforcement, making it ideal for building robust data layers in applications.

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file

Add the configuration to .claude/skills/modelith.md

3
Invoke in Claude Code
/modelith

Use Cases

Define a domain model with typed fields and default values for a user entity.
Validate incoming API data against a domain model schema to ensure data integrity.
Transform a plain JavaScript object into a typed domain model instance with automatic coercion.
Serialize a domain model instance to JSON for storage or transmission.
Create a nested domain model structure for complex entities like orders with line items.
Generate a human-readable representation of a domain model for debugging or logging.

Usage Examples

1

/modelith define User { id: number, name: string, email: string }

2

/modelith validate User { id: '123', name: 'Alice', email: '[email protected]' }

3

/modelith transform rawData into User

View source on GitHub

Security Audits

LicenseUnknownSourceWarnRepositoryPass

Frequently Asked Questions

What is modelith?

Modelith provides a set of tools for working with domain models, enabling developers to define, validate, and transform domain objects with ease. It simplifies common modeling tasks such as serialization, type coercion, and schema enforcement, making it ideal for building robust data layers in applications.

How to install modelith?

To install modelith: create the skills directory (mkdir -p .claude/skills), then add the config to .claude/skills/modelith.md. Finally, /modelith in Claude Code.

What is modelith best for?

modelith is a other categorized under Development. Created by stacklok.

What can I use modelith for?

modelith is useful for: Define a domain model with typed fields and default values for a user entity.; Validate incoming API data against a domain model schema to ensure data integrity.; Transform a plain JavaScript object into a typed domain model instance with automatic coercion.; Serialize a domain model instance to JSON for storage or transmission.; Create a nested domain model structure for complex entities like orders with line items.; Generate a human-readable representation of a domain model for debugging or logging..