Skip to content
Back to skills

Structured Outputs

ASecurity

Get reliable structured data from LLMs with JSON schema/tool use, validation, repair and retries.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsrust

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill structured-outputs --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Structured Outputs?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Structured Outputs
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-structured-outputs/badge)](https://www.skillsdirectory.com/skills/karthikrshet-structured-outputs)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.