Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub orbruno/baml-ccpluginHow this command is triggered — by the user, by Claude, or both
Slash command
/baml-toolkit:create-typeThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Create BAML Type You are tasked with creating a new BAML type definition (class, enum, or type alias). ## Task Create a BAML type as specified in "$ARGUMENTS". Determine the type category and scaffold appropriately. ## Steps 1. **Parse requirements**: - Type name - Type category (class, enum, or alias) - Fields/values - Descriptions and constraints - Relationships to other types 2. **Locate BAML file**: - Find `baml_src/` directory - Choose appropriate file or create `types.baml` - Read existing types to avoid conflicts 3. **Generate type definition**: - ...
/type-generatorGenerates TypeScript types, interfaces, and Zod schemas from JSON data, API responses, database schemas, or GraphQL. Supports quicktype integration and actions like from-json, from-api, zod.
/workflowGenerates Activiti BPMN 2.0 process definitions, task content models, Spring bootstrap registrations, i18n bundles, and optional Java task listeners from REQUIREMENTS.md for Alfresco Platform JAR (Maven) projects.
/modelGenerate a MongoDB document model using Beanie ODM with indexes, Pydantic validation, relationships, embedded docs, and custom validators.
/generateGenerates API clients from OpenAPI specs, data models from JSON schemas, test suites from code, and database migrations from models. Supports TypeScript, Python, Go, Java, C#.
/f5-classifyClassifies input files like Excel and documents by type using content-first analysis, detects gaps, generates coverage declaration with quality and risk flags. Supports --dry-run, --lang, review/approve.
/generateGenerates ADVPL/TLPP code for TOTVS Protheus: functions, classes, MVC structures, REST APIs, web services, entry points, reports, and more via <type> [name] [--module].
Share bugs, ideas, or general feedback.
You are tasked with creating a new BAML type definition (class, enum, or type alias).
Create a BAML type as specified in "$ARGUMENTS". Determine the type category and scaffold appropriately.
Parse requirements:
Locate BAML file:
baml_src/ directorytypes.bamlGenerate type definition:
Add to BAML file:
.baml fileSuggest usage:
/baml-toolkit:create-type "Receipt class with vendor, date, items array, total"
/baml-toolkit:create-type "PaymentStatus enum: PENDING, COMPLETED, FAILED, REFUNDED"
/baml-toolkit:create-type "ContactInfo with optional email and phone fields"
class Receipt {
vendor string @description("Merchant or business name")
date string @description("Purchase date in YYYY-MM-DD format")
items ReceiptItem[] @description("List of purchased items")
total float @description("Total amount paid")
tax float?
tip float?
}
class ReceiptItem {
name string
quantity int
unit_price float
subtotal float
}
enum PaymentStatus {
PENDING @description("Payment initiated but not confirmed")
COMPLETED @description("Payment successfully processed")
FAILED @description("Payment failed")
REFUNDED @description("Payment was refunded")
}
enum Priority {
LOW
MEDIUM
HIGH
URGENT
}
class Order {
order_id string
customer CustomerInfo
items OrderItem[]
status OrderStatus
payment PaymentInfo
}
class CustomerInfo {
name string
email string
phone string?
}
class OrderItem {
product_id string
name string
quantity int
price float
}
enum OrderStatus {
PENDING
PROCESSING
SHIPPED
DELIVERED
CANCELLED
}
class PaymentInfo {
method string
status PaymentStatus
amount float
}
Primitives:
string - Textint - Integerfloat - Decimal numberbool - Boolean (true/false)Collections:
Type[] - Array of Typemap<K, V> - Map/dictionaryOptional:
Type? - Optional field (can be null)Media:
image - Image fileaudio - Audio filevideo - Video fileclass Example {
field1 string @description("Field purpose")
field2 int @alias("fieldTwo")
field3 string? @description("Optional field")
}
API Response:
class APIResponse {
success bool
data APIData?
error APIError?
}
class APIData {
// Your data fields
}
class APIError {
code int
message string
details string?
}
Extraction Result:
class ExtractionResult {
confidence float @description("0.0 to 1.0")
extracted_data DataType
metadata ExtractionMetadata
}
Classification:
class ClassificationResult {
category CategoryEnum
confidence float
reasons string[]
}
@description for clarity? for optional fields