What problem does it solve?
This Skill solves the frequent issue of LLMs generating malformed, invalid structured outputs (such as broken JSON, incorrectly formatted dates, or syntactically invalid code) that break downstream automation, data processing, and integration workflows.
Core Features & Use Cases
- Constrained Generation: Enforce valid output formats using regex patterns, context-free grammars, and selection constraints for JSON, XML, code, and custom data formats.
- Token Healing: Automatically fix awkward tokenization boundaries to produce natural, correctly spaced text without manual prompt tuning.
- Reusable Workflows: Build multi-step LLM workflows including data extraction, classification, and ReAct agent tool use with Pythonic control flow.
For example, if you need to extract customer data from unstructured support tickets into valid JSON for your CRM, this Skill guarantees the output matches your required schema without manual validation or retry loops.
Quick Start
Use the Guidance skill to generate a valid JSON user profile with name, age, and email fields from the provided unstructured customer support text.