json-to-pydantic
Converts JSON data snippets into Python Pydantic data models.
How do I install this agent skill?
npx skills add https://github.com/rominirani/antigravity-skills --skill json-to-pydanticIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is a safe utility for converting JSON data into Python Pydantic models. It provides instructional examples and follows standard development practices for data modeling. No malicious patterns, network exfiltration, or unauthorized command executions were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
3 files scanned · No issues
What does this agent skill do?
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.- Input:
examples/input_data.json - Output:
examples/output_model.py
- Input:
Style Guidelines
- Use
PascalCasefor class names. - Use type hints (
List,Optional) fromtypingmodule. - If a field can be missing or null, default it to
None.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/rominirani/antigravity-skills/json-to-pydantic">View json-to-pydantic on skillZs</a>