Agent skill

json-outputs-implementer

Use PROACTIVELY when extracting structured data from text/images, classifying content, or formatting API responses with guaranteed schema compliance. Implements Anthropic's JSON outputs mode with Pydantic/Zod SDK integration. Covers schema design, validation, testing, and production optimization. Not for tool parameter validation or agentic workflows (use strict-tool-implementer instead).

Stars 4
Forks 2

Install this agent skill to your Project

npx add-skill https://github.com/cskiro/claudex/tree/main/plugins/json-outputs-implementer/skills/json-outputs-implementer

SKILL.md

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

python
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

  • Common Use Cases
  • Schema Limitations

Related Skills

  • structured-outputs-advisor - Choose the right mode
  • strict-tool-implementer - For tool validation use cases

Expand your agent's capabilities with these related and highly-rated skills.

cskiro/claudex

e2e-testing

Use PROACTIVELY when setting up end-to-end testing, debugging UI issues, creating visual regression suites, or automating browser testing. Uses Playwright with LLM-powered visual analysis, screenshot capture, and fix recommendations. Zero-setup for React, Next.js, Vue, Node.js, and static sites. Not for unit testing, API-only testing, or mobile native apps.

4 2
Explore
cskiro/claudex

github-repo-setup

Use PROACTIVELY when user needs to create a new GitHub repository or set up a project with best practices. Automates repository creation with four modes - quick public repos (~30s), enterprise-grade with security and CI/CD (~120s), open-source community standards (~90s), and private team collaboration with governance (~90s). Not for existing repo configuration or GitHub Actions workflow debugging.

4 2
Explore
cskiro/claudex

sub-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.

4 2
Explore
cskiro/claudex

accessibility-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.

4 2
Explore
cskiro/claudex

otel-monitoring-setup

Use PROACTIVELY when setting up OpenTelemetry monitoring for Claude Code usage tracking, cost analysis, or productivity metrics. Provides local PoC mode (full Docker stack with Grafana) and enterprise mode (centralized infrastructure). Configures telemetry collection, imports dashboards, and verifies data flow. Not for non-Claude telemetry or custom metric definitions.

4 2
Explore
cskiro/claudex

mutation-testing

Use PROACTIVELY when checking if tests catch real bugs, assessing test suite quality, finding weak tests, or measuring mutation score. Validates test effectiveness beyond coverage metrics by introducing code mutations. Supports Stryker (JS/TS), PIT (Java), mutmut (Python). Not for projects without existing test suites.

4 2
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results