kotlin-dsl-builders

Community

Design Kotlin DSLs with clean, safe builders

AuthorClankerGuru
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Kotlin DSLs provide expressive configuration, but designing them safely and ergonomically requires patterns like receivers, nested builders, and DSL markers to avoid scope leakage and confusion.

Core Features & Use Cases

  • Type-safe DSL blocks using Kotlin's receivers and lambdas with receiver to create expressive configuration APIs.
  • Nested builders with a consistent init pattern and helper utilities to attach built objects.
  • Guidance on scope control via @DslMarker to prevent accidental cross-scope access in complex DSLs.

Quick Start

Create a small Kotlin DSL that configures a sample server using nested blocks.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: kotlin-dsl-builders
Download link: https://github.com/ClankerGuru/opsx/archive/main.zip#kotlin-dsl-builders

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.