Brigadier Dsl
A fluent Kotlin DSL for Mojang's brigadier command library
Install / Use
npx skills add nicolaic/brigadier-dslInstalls into whichever agent you are using.
README
Brigadier DSL

Brigadier DSL is a Kotlin library that adds a new fluent DSL on top of Mojang's Brigadier, that makes it easier to write commands. For more information read the Motivation page.
Features
- Fluent and easy to use Kotlin DSL
- Lexically scoped type-safe arguments
- Automatic and safe retrieval of values
- Optional and default value arguments
- Dynamic default values from command source
Quickstart
Add the repository
repositories {
mavenCentral()
}
Install the dependency
dependencies {
implementation("dev.nicolai:brigadier-dsl:{current_version}")
}
Create and register a command
// Import command DSL function and argument shorthands
import dev.nicolai.brigadier.dsl.command
import dev.nicolai.brigadier.arguments.*
// Declare command with source of type MessageSender
val whisper = command<MessageSender>("whisper") {
// Declare our recipient and message arguments
val recipient by string("recipient")
val message by greedyString("message")
// Code to be run when the command is executed
runs {
// Access argument value as variables
val feedback = "Sent '$message' to $recipient"
// Source and context are implicitly available in the runs block
source.sendFeedback(feedback)
}
}
// Build the command literal and register it
dispatcher.register(whisper.buildLiteral())
Related Skills
node-connect
385.5kDiagnose OpenClaw Android, iOS, or macOS node pairing, QR/setup code, route, auth, and connection failures.
blender-python-addon
40.5kBlender Python add-on rules for operators, panels, properties, registration, testing, and API-safe scripting
flutter-development-guidelines-cursorrules-prompt-file
40.5kCursor rules for Flutter development with MVVM architecture, Riverpod state management, Material widgets, and Dart style guidelines.
commit-push-pr
140.7kCommit, push, and open a PR
