schema-guided-reasoning
CommunityStructured, testable reasoning for AI outputs.
Software Engineering#pydantic#structured-output#constrained-decoding#schema-guided-reasoning#auditable-output#reproducible-ai
AuthorBbar0n234
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Schema-Guided Reasoning (SGR) provides a pattern to guide LLMs through a predefined structure, enabling reproducible, auditable, and testable reasoning by constraining outputs to a typed schema.
Core Features & Use Cases
- Structured outputs: define schemas with Pydantic models and use response_format/parse to enforce a fixed result structure.
- Deterministic reasoning order: the sequence of fields drives the model's step-by-step thinking.
- Auditable & testable: intermediate fields and outputs can be validated and reviewed.
- Use cases: evaluation, risk assessment, compliance verification, and systematic data extraction across domains.
Quick Start
Define a Pydantic schema and show how to parse a model response with response_format.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: schema-guided-reasoning Download link: https://github.com/Bbar0n234/learnflow-ai/archive/main.zip#schema-guided-reasoning Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.