by PromptSpace
Automatically transform JSON files or raw strings into production-ready TypeScript interfaces or Python dataclasses.
$12
One-time purchase
by PromptSpace
Automatically transform JSON files or raw strings into production-ready TypeScript interfaces or Python dataclasses.
$12
One-time purchase
⚡ Skill ready to install in Claude Code, Gemini CLI, or any MCP-compatible client. Read the install guides →
The JSON to Types Converter handles the tedious task of manually defining data structures for API responses or JSON datasets. It recursively analyzes any JSON source—whether a local file or a raw string—and generates production-ready TypeScript interfaces or Python dataclasses.
While you can ask a standard LLM to "convert this JSON," this skill provides a structured developer workflow that an LLM alone often misses. It auto-detects your project's language environment, handles singularization of array roots (e.g., turning users.json into a User interface), manages complex union types for mixed arrays, and follows language-specific best practices like snake_case conversion for Python and Record<string, unknown> for dynamic objects.
typing module and __future__ annotations.tsconfig.json or pyproject.toml to choose the right language.It generates a clean, well-commented types.ts or models.py file and provides a summary report of the inferred schema, including which fields were marked as optional based on property presence across array items.
mkdir -p ~/.claude/skills/json-to-types && curl -s -X POST 'https://api.promptspace.in/api/skills/json-to-types/install' | python3 -c "import sys,json; sys.stdout.write(json.load(sys.stdin).get('installInstructions') or '')" > ~/.claude/skills/json-to-types/SKILL.mdFree skills install directly. Paid skills require purchase - use the download button above after buying.
Security Scanned
Passed automated security review
No special permissions declared or detected
OpenClaw, Cursor, Claude Code, Codex CLI
PromptSpace
We build AI agent skill packages for content creators. Specializing in Chinese social media automation.