json-to-pydantic

JSON to Pydantic Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "json-to-pydantic" with this command: npx skills add rominirani/antigravity-skills/rominirani-antigravity-skills-json-to-pydantic

JSON to Pydantic Skill

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

Instructions

Analyze the Input: Look at the JSON object provided by the user.

Infer Types:

  • string -> str

  • number -> int or float

  • boolean -> bool

  • array -> List[Type]

  • null -> Optional[Type]

  • Nested Objects -> Create a separate sub-class.

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.

  • Input: examples/input_data.json

  • Output: examples/output_model.py

Style Guidelines

  • Use PascalCase for class names.

  • Use type hints (List , Optional ) from typing module.

  • If a field can be missing or null, default it to None .

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

git-commit-formatter

No summary provided by upstream source.

Repository SourceNeeds Review
General

database-schema-validator

No summary provided by upstream source.

Repository SourceNeeds Review
General

adk-tool-scaffold

No summary provided by upstream source.

Repository SourceNeeds Review
General

license-header-adder

No summary provided by upstream source.

Repository SourceNeeds Review