What problem does it solve? LLMs frequently produce malformed JSON, invalid emails, or off-format text that breaks downstream parsing and forces retry loops. This Skill uses Microsoft Research's Guidance framework to constrain generation at the token level so outputs always match the required structure. ## Core Features & Use Cases - Regex and Grammar Constraints: Enforce formats like emails, dates, phone numbers, JSON, XML, and CSV directly during generation. - Token Healing: Automatically fixes unnatural token boundaries between prompts and generated text for clean continuations. - Multi-Backend Support: Works with Anthropic Claude, OpenAI, Azure OpenAI, Hugging Face Transformers, and llama.cpp local models. - Use Case: Build a ReAct agent that extracts structured entities (names, dates, organizations) from unstructured text with guaranteed-valid formats, or generate schema-conformant JSON for API payloads without validation retries. ## Quick Start Ask the agent to use the guidance skill to generate a JSON object with name, age, and email fields where each value is constrained by a regex pattern.