solo-sgr

Design Schema-Guided Reasoning pipelines that translate expert checklists into structured LLM reasoning.

18|2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/fortunto2/solo-factory --skill solo-sgr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solo-sgr
Source: https://github.com/fortunto2/solo-factory/tree/main/skills/sgr
Command: npx skills add https://github.com/fortunto2/solo-factory --skill solo-sgr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Design and implement Schema-Guided Reasoning (SGR) pipelines that translate domain expert checklists into structured, automatable reasoning for LLMs, enabling predictable, auditable agent behavior.

Core Features & Use Cases

  • Schema-driven reasoning: Enforce steps, order, and focus in LLM outputs.
  • Agent loop patterns: NextStep, Analysis Cascade, and Tool Dispatch for deterministic tool routing.
  • Safe, auditable prompts: Constrain decoding and validate outputs with typed models like Pydantic.

Quick Start

Define a minimal SGR workflow with a NextStep-based schema and dispatch a tool in response to the first planning step.

Frequently Asked Questions about solo-sgr

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

FAQPage Schema
How do I enforce structured output and predictable reasoning steps in LLM agents?

You can enforce structured output by defining Schema-Guided Reasoning pipelines that use Pydantic-based schemas and discriminated unions to constrain LLM decoding, ensuring predictable and auditable agent behavior.

What is the best way to route deterministic tool dispatching within an agent loop?

Deterministic tool routing is achieved by applying agent loop patterns like NextStep and Tool Dispatch, which use strict schemas to guide LLM reasoning and automate tool selection based on the planning step.

How do I translate domain expert checklists into automatable reasoning for LLMs?

Translate expert checklists into automatable reasoning by designing SGR pipelines that enforce reasoning steps, order, and focus using tight Pydantic type constraints, yielding verifiable and auditable outputs.

Can I use Pydantic discriminated unions to validate LLM outputs for compliance contexts?

Yes, you can use Pydantic discriminated unions to route and validate structured analysis across compliance contexts, ensuring LLM outputs adhere to strict schemas and enabling safe, auditable prompts.

Do I need Pydantic schemas to build an Analysis Cascade for LLMs?

Yes, Pydantic schemas are required to build an Analysis Cascade, providing the tight type constraints necessary to validate intermediate reasoning steps and ensure verifiable outputs across the pipeline.

What are the limitations of schema-guided reasoning for LLM agent behavior?

Schema-guided reasoning requires strict schema definitions and tight type constraints, meaning any deviation from the defined Pydantic models or unsupported tool dispatch patterns will cause validation failures in the pipeline.