llm-patterns

Enforce explicit contracts, timeouts, and recovery in multi-step LLM workflows.

108|27|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/diegosouzapw/omni-skills --skill llm-patterns-diegosouzapw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: llm-patterns
Source: https://github.com/diegosouzapw/omni-skills/tree/main/skills/llm-patterns
Command: npx skills add https://github.com/diegosouzapw/omni-skills --skill llm-patterns-diegosouzapw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Relies on robust LLM workflows by enforcing explicit contracts, validation, and recovery across tool usage and multi-step agent behaviors.

Core Features & Use Cases

  • Stateful orchestration contracts with explicit schemas, timeouts, and fallbacks.
  • Observability through persistent task state, logs, and artifacts for operators.
  • Clear confirmation boundaries and human-in-the-loop options for sensitive actions.

Quick Start

Define a reliable LLM workflow by selecting an interaction pattern and specifying state, validation, and fallback boundaries.

Frequently Asked Questions about llm-patterns

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

FAQPage Schema
How do I build reliable LLM workflows with fallbacks and structured output?

Build reliable LLM workflows by defining interaction patterns with explicit schemas, validation, and fallback boundaries. This approach enforces contracts across tool usage to prevent silent failures in multi-step agent tasks.

What are confirmation boundaries and how do they work in multi-step agent tasks?

Confirmation boundaries create human-in-the-loop checkpoints for sensitive actions within multi-step agent tasks. They require explicit operator approval before critical tool usage executes, preventing irreversible automated actions.

How do I add observability to long-running LLM agent workflows?

Add observability to LLM agent workflows by implementing persistent task state, logs, and artifacts. This provides operators with continuous visibility into execution progress, tool usage, and recovery events across long-running tasks.

Can I enforce state machine contracts for tool-using LLM agents?

Yes, you can enforce stateful orchestration contracts for tool-using LLM agents. This involves specifying explicit schemas, timeouts, and fallback boundaries to govern state transitions and ensure reliable recovery.

What is the best way to handle recovery and validation in complex LLM tool usage?

Handle recovery and validation in complex LLM tool usage by enforcing explicit contracts across multi-step behaviors. This approach applies schemas, timeouts, and persistent state to manage failures and maintain workflow reliability.