json-outputs-implementer
JSON Outputs Implementer
Overview
This skill implements Anthropic's JSON outputs mode for guaranteed schema compliance. With output_format, Claude's responses are validated against your schema—ideal for data extraction, classification, and API formatting.
What This Skill Provides:
- Production-ready JSON schema design
- SDK integration (Pydantic for Python, Zod for TypeScript)
- Validation and error handling patterns
- Performance optimization strategies
- Complete implementation examples
Prerequisites:
- Decision made via
structured-outputs-advisor - Model: Claude Sonnet 4.5 or Opus 4.1
- Beta header:
structured-outputs-2025-11-13
When to Use This Skill
Use for:
- Extracting structured data from text/images
- Classification tasks with guaranteed categories
- Generating API-ready responses
- Formatting reports with fixed structure
- Database inserts requiring type safety
NOT for:
- Validating tool inputs →
strict-tool-implementer - Agentic workflows →
strict-tool-implementer
Response Style
- Schema-first: Design schema before implementation
- SDK-friendly: Leverage Pydantic/Zod when available
- Production-ready: Consider performance, caching, errors
- Example-driven: Provide complete working code
- Limitation-aware: Respect JSON Schema constraints
Workflow
| Phase | Description | Details |
|---|---|---|
| 1 | Schema Design | → workflow/phase-1-schema-design.md |
| 2 | SDK Integration | → workflow/phase-2-sdk-integration.md |
| 3 | Error Handling | → workflow/phase-3-error-handling.md |
| 4 | Testing | → workflow/phase-4-testing.md |
| 5 | Production Optimization | → workflow/phase-5-production.md |
Quick Reference
Python Template
from pydantic import BaseModel
from anthropic import Anthropic
class MySchema(BaseModel):
field: str
response = client.beta.messages.parse(
model="claude-sonnet-4-5",
betas=["structured-outputs-2025-11-13"],
messages=[...],
output_format=MySchema,
)
result = response.parsed_output # Validated!
Supported Schema Features
✅ Basic types, enums, format strings, nested objects/arrays, required fields
❌ Recursive schemas, min/max constraints, string length, complex regex
Reference Materials
Related Skills
structured-outputs-advisor- Choose the right modestrict-tool-implementer- For tool validation use cases
More from cskiro/claudex
bulletproof-react-auditor
Use PROACTIVELY when users ask about React project structure, Bulletproof React patterns, or need architecture guidance. Covers structure setup, codebase auditing, anti-pattern detection, and feature-based migration planning. Triggers on "bulletproof react", "React structure help", "organize React app", or "audit my architecture".
10codebase-auditor
Use PROACTIVELY when auditing code quality, running security scans, assessing technical debt, reviewing code for production readiness, setting up CI quality gates, or tracking DORA metrics. Analyzes codebases against OWASP Top 10, SOLID principles, Testing Trophy, and 2024-25 SDLC standards. Supports incremental audits for large codebases. Not for runtime profiling or real-time monitoring.
3skill-creator
Use PROACTIVELY when creating new Claude Code skills from scratch. Automated generation tool following Claudex marketplace standards with intelligent templates, pattern detection, and quality validation. Supports guided creation, quick start templates, clone-and-modify, and validation-only modes. Not for modifying existing skills or non-skill Claude Code configurations.
2sub-agent-creator
Use PROACTIVELY when creating specialized Claude Code sub-agents for task delegation. Automates agent creation following Anthropic's official patterns with proper frontmatter, tool configuration, and system prompts. Generates domain-specific agents, proactive auto-triggering agents, and security-sensitive agents with limited tools. Not for modifying existing agents or general prompt engineering.
2accessibility-audit
Use PROACTIVELY when user asks for accessibility review, a11y audit, WCAG compliance check, screen reader testing, keyboard navigation validation, or color contrast analysis. Audits React/TypeScript applications for WCAG 2.2 Level AA compliance with risk-based severity scoring. Includes MUI framework awareness to avoid false positives. Not for runtime accessibility testing in production, automated remediation, or non-React frameworks.
2structured-outputs-advisor
Use PROACTIVELY when users need guaranteed schema compliance or validated tool inputs from Anthropic's structured outputs feature. Expert advisor for choosing between JSON outputs (data extraction/formatting) and strict tool use (agentic workflows). Analyzes requirements, explains trade-offs, and delegates to specialized implementation skills. Not for simple text responses or unstructured outputs.
2