guidance-grammars
CommunityConstrained LLM generation with Guidance.
Software Engineering#prompt engineering#guidance#grammar#llm#structured output#constrained generation
AuthorHermeticOrmus
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenge of generating structured and predictable output from Large Language Models (LLMs) by enforcing grammar constraints. It ensures that LLM outputs conform to specific formats, types, and rules, making them more reliable for programmatic use.
Core Features & Use Cases
- Grammar-Constrained Generation: Use regular or context-free grammars to guide LLM output.
- Structured Outputs: Generate outputs that are guaranteed to be in a specific format (e.g., JSON, specific text patterns).
- Type-Safe Prompting: Build complex generation pipelines with interleaved computation and constrained generation.
- Use Case: Automatically generate valid JSON objects from an LLM for API requests, ensuring the output is always parsable and adheres to a predefined schema.
Quick Start
Use the guidance-grammars skill to generate a JSON object representing a user profile with name and email fields.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: guidance-grammars Download link: https://github.com/HermeticOrmus/hermetic-claude/archive/main.zip#guidance-grammars Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.