Json to pydantic

From phenobarbital/ai-parrot · View interactive version

Json to pydantic is an AI agent skill from the GitHub repository phenobarbital/ai-parrot. Converts JSON data snippets into Python Pydantic data models.

How to use this skill

Skill file

JSON to Pydantic Skill

This skill helps convert raw JSON data or API responses into structured, strongly-typed Python classes using Pydantic.

Instructions

  1. Analyze the Input: Look at the JSON object provided by the user.
  2. Infer Types:
  1. Follow the Example:

Review examples/ to see how to structure the output code. notice how nested dictionaries like preferences are extracted into their own class.

Style Guidelines

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.