Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Structured Outputs?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-structured-outputs)
---
name: structured-outputs
description: Get reliable structured data from LLMs with JSON schema/tool use, validation, repair and retries.
tags: [ai-agents]
---
# Structured Outputs
## When to use
- Extraction, classification, routing
## Procedure
1. Define a strict schema
2. Use native structured output or tool calling
3. Validate with zod/pydantic
4. Retry with the validation error on failure
5. Log failures for prompt fixes
## Checklist
- [ ] Schema validated on every response
## Anti-patterns
- Trusting the model to emit valid JSON without validation