LogoClawIndex
CasesSkillsAbout
LogoClawIndex

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.

guidance - Constrain LLM generation with Guidance

Controls LLM generation with regex, selections, and grammars to produce structured outputs and multi-step workflows.

Tags

Updated: 2026-09-29

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Constrain output with regex
  • Generate valid JSON
  • Generate valid XML
  • Generate valid code
  • Enforce structured formats
  • Build multi-step workflows
  • Select constrained choices
  • Heal token boundaries
  • Define reusable generation functions
  • Execute tool-assisted workflows

Inputs

  • User prompts
  • Regex patterns
  • Grammar definitions
  • Selection options
  • Model configuration
  • API keys
  • Local model paths
  • Tool definitions

Outputs

  • Constrained text
  • Structured JSON
  • Structured XML
  • Generated code
  • Selected values
  • Workflow results

Requirements

  • Python environment
  • guidance package
  • transformers package
  • Compatible LLM backend
  • API credentials for hosted models
  • Local model files for local backends

Source

  • Spec: SKILL.md
Prompt Engineering
Guidance
Constrained Generation
Structured Output
JSON Validation
Grammar
Microsoft Research
Format Enforcement
Multi-Step Workflows
Constrain output with regex
Generate valid JSON
Generate valid XML
Generate valid code
User prompts
Regex patterns
Grammar definitions
Constrained text
Structured JSON
Structured XML