LogoClawIndex
CasesSkillsAbout
LogoClawIndex

guidance - Constrain LLM generation with Guidance

Controls LLM generation with regex, selections, grammars, and Python workflows for structured outputs such as JSON, XML, and code.

Tags

Updated: 2026-09-29
GuidanceConstrained generationStructured outputGrammarRegexJSON validationPrompt engineering

Capabilities

Constrain output with regexGenerate structured dataSelect from fixed optionsHeal token boundaries

Typical Inputs

Model configurationPrompts and messagesRegex patterns

Typical Outputs

Constrained model textNamed generated valuesStructured JSON or XML

What this skill does

  • Constrain output with regex
  • Generate structured data
  • Select from fixed options
  • Heal token boundaries
  • Define context-free grammars
  • Compose multi-step workflows

Inputs

  • Model configuration
  • Prompts and messages
  • Regex patterns
  • Grammar definitions
  • Selection options
  • Workflow questions
  • Tool definitions

Outputs

  • Constrained model text
  • Named generated values
  • Structured JSON or XML
  • Workflow state

Requirements

  • Python environment
  • guidance package
  • transformers package for Transformers backend
  • Model backend
  • API credentials for hosted models

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.