A specialized skill for generating type-safe BAML code to handle structured LLM outputs, classification, and RAG workflows with 95% compilation success.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install baml-codegen
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install baml-codegen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
BAML Code Generation is a professional-grade tool designed for developers who need to bridge the gap between natural language requirements and type-safe LLM integrations within their Openclaw Skills projects. It functions as a transpiler rather than a traditional library, allowing users to define data models and prompts in .baml files which are then compiled into native Python, TypeScript, Ruby, or Go code. This ensures that the schema remains the source of truth, providing robust fuzzy parsing capabilities to extract valid JSON from even the most unstructured LLM outputs.
By incorporating this skill into your workflow, you gain access to optimized token usage and high-performance LLM interactions. It simplifies the lifecycle of prompt engineering and structured data extraction, making it an essential component for any developer utilizing Openclaw Skills for production-ready AI applications that require strict data integrity and multimodal capabilities.
To get started with this skill in your Openclaw Skills environment, ensure you have the necessary MCP servers configured and follow these steps:
# Install the BAML CLI
npm install -g @boundaryml/baml-cli
# Initialize BAML in your project directory
baml-cli init
# Generate the typed client after defining your .baml files
baml-cli generate
The skill organizes data within a strict directory structure to maintain a clear source of truth:
| Directory/File | Purpose |
|---|---|
baml_src/ |
Primary source directory containing .baml files for types, functions, and clients. |
baml_client/ |
Generated native code (Python/TS/Ruby/Go). This is overwritten on every generation. |
baml_src/generators.baml |
Configuration for output language and generation settings. |
tests/ |
Auto-generated test cases for verifying LLM extraction logic and function coverage. |
Loading
A production-ready framework for deploying stateful, multi-agent LangGraph systems on AWS Bedrock AgentCore infrastructure.

A standardized framework for building, validating, and sharing portable instructions and capabilities across diverse AI agent platforms.

A dialectical AI reviewer that validates implementation completeness against requirements through rigorous adversarial logic.

An advanced AI-driven assistant designed for technical support, database administration, and automated RDF Views generation for OpenLink Virtuoso Servers.

An advanced summarization skill that iteratively injects information into a text summary while maintaining a strict word count.

A professional-grade skill for generating high-conversion marketing copy, intuitive UX text, and supportive product messaging using proven linguistic frameworks.








































