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->strnumber->intorfloatboolean->boolarray->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 likepreferencesare extracted into their own class.
More from rominirani/antigravity-skills
git-commit-formatter
Formats git commit messages according to Conventional Commits specification. Use this when the user asks to commit changes or write a commit message.
29database-schema-validator
Validates SQL schema files for compliance with internal safety and naming policies.
16adk-tool-scaffold
Scaffolds a new custom Tool class for the Agent Development Kit (ADK).
15license-header-adder
Adds the standard open-source license header to new source files. Use involves creating new code files that require copyright attribution.
14always-verify-gcp
A workflow skill for all Google Cloud resource management tasks (create, delete, modify). This skill ensures that the correct CLI tool (`gcloud`, `bq`, `gsutil`) is chosen and that its commands are verified against the latest official documentation before execution.
8