← Back to list

json-to-pydantic
by xingxerx
⭐ 0🍴 0📅 Jan 21, 2026
SKILL.md
name: json-to-pydantic description: Generates typed Pydantic models or TypeScript interfaces from raw JSON.
JSON to Pydantic/Types
This skill converts raw JSON data into strictly typed code.
Usage
When the user provides a JSON object or points to a JSON file and asks for "types" or "models":
- Analyze JSON: Read the JSON structure. Identify types (string, int, boolean, array, object).
- Determine Target: Ask or infer if the output should be Python (Pydantic) or TypeScript (Interface).
- Generate Code:
Python (Pydantic)
- Use
pydantic.BaseModel. - Use
typing.List,typing.Optional, etc. - Generate nested classes for nested objects.
- Example:
from pydantic import BaseModel from typing import List, Optional class Address(BaseModel): street: str city: str class User(BaseModel): id: int name: str tags: List[str] address: Optional[Address] = None
TypeScript
- Use
interface. - Example:
interface Address { street: string; city: string; } interface User { id: number; name: string; tags: string[]; address?: Address; }
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon