One-click install
npx skills add https://github.com/Signmanal/VIGIL --skill guidance-signmanal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guidance
Source: https://github.com/Signmanal/VIGIL/tree/main/optional-skills/mlops/guidance
Command: npx skills add https://github.com/Signmanal/VIGIL --skill guidance-signmanal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the frustration of LLMs producing invalid, unstructured, or incorrectly formatted outputs when strict adherence to specific patterns like JSON, emails, dates, or code syntax is required, saving you from time-consuming manual validation and retry loops.

Core Features & Use Cases

  • Constrained Generation with Regex/Grammars: Enforce exact output formats using regular expressions or context-free grammars, guaranteeing valid structured data without post-processing.
  • Multi-Step Workflow Automation: Build reusable, Pythonic agent workflows (like ReAct agents, chain-of-thought pipelines, or data extraction routines) with built-in state management and tool execution.
  • Use Case: For example, if you need to extract structured user data (name, age, email) from unstructured support ticket text and guarantee the output is valid JSON for your downstream ticketing system, this Skill handles all constraints automatically.

Quick Start

Use the guidance skill to generate a valid JSON user profile with name, age, and email fields from the input text "John Doe is 30 years old, contact [email protected]".

Frequently Asked Questions about guidance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce strict JSON format adherence for LLM outputs?

Constrained generation applies regex and context-free grammars directly to the LLM decoding process to enforce strict output formats. This guarantees valid structured data by eliminating invalid syntax before it is generated.

Can I build multi-step agent workflows with built-in state management?

Yes, you can build reusable Pythonic agent workflows like ReAct pipelines or data extraction routines with built-in state management. This supports multi-step automation for security operations and data processing tasks.

Does this approach to constrained generation work with both local and API LLM deployments?

Yes, this approach to constrained generation provides cross-backend support for both API and local LLM deployments. This allows you to enforce regex constraints and grammar validation consistently across different execution environments.

What is the best way to extract structured data from unstructured text without validation errors?

The best way to extract structured data without validation errors is using grammar and regex constraints during generation. By enforcing exact output formats like valid emails or dates, you eliminate manual validation loops and retry logic.

Why do my LLM outputs have invalid syntax when generating structured data?

LLM outputs have invalid syntax when generating structured data because standard models lack inherent format adherence. Applying token healing and grammar-based constraints ensures natural text boundaries and exact pattern matching to prevent malformed outputs.

When do I need regex constraints for large language model workflows?

You need regex constraints for large language model workflows when exact output formats like JSON, emails, dates, or code syntax are required. This eliminates unstructured generation and guarantees valid data for downstream automation.