← ClaudeAtlas

baml-integrationlisted

Generic BAML patterns for type-safe LLM prompting. Covers schema design, DTO generation, client wrappers, and cross-language codegen. Framework-agnostic.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 79
Install: claude install-skill aiskillstore/marketplace
# BAML Integration Skill Universal patterns for working with BAML (Boundary ML) in any project. BAML provides type-safe LLM prompting with automatic code generation for Python and TypeScript. ## Design Principle This skill is **framework-generic**. It provides universal BAML patterns that work in any codebase: - NOT tailored to CodeGraph-DE, Book-Vetting, or any specific project - Covers common patterns applicable across all BAML projects - Specific domain types should go in project-specific skills ## Variables | Variable | Default | Description | |----------|---------|-------------| | BAML_SRC | baml_src | Directory containing BAML files | | AUTO_GENERATE | true | Auto-run baml-cli generate on changes | | STRICT_TYPES | true | Enforce strict type matching | ## Instructions **MANDATORY** - Follow the Workflow steps below in order. 1. Understand BAML's role in the project 2. Check existing BAML schema and types 3. Follow type-safe patterns when working with LLMs 4. Keep generated code in sync ## Red Flags - STOP and Reconsider If you're about to: - Define LLM prompts without BAML types - Manually parse LLM output instead of using BAML - Skip running `baml-cli generate` after schema changes - Ignore type errors in generated clients **STOP** -> Define BAML types -> Generate client -> Then proceed ## Workflow ### 1. Understand Project BAML Setup Check the BAML configuration: ```bash # Find BAML source directory find . -name "*.baml" -type f | head -5 # Check BAML