quicktype
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Generate TypeScript types from JSON files using quicktype CLI. Use when user wants to create types/interfaces from JSON data, API responses, or config files.
82installs
Sourcehtlin222/dotfiles
Added on
NPX Install
npx skill4agent add htlin222/dotfiles quicktypeTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Quicktype - JSON to Type Generator
Generate strongly-typed interfaces from JSON files or URLs.
When to Use
- User asks to generate types from JSON
- User wants TypeScript interfaces for API responses
- User needs type definitions for config files
- User mentions "quicktype" or "json to types"
Instructions
-
Parse the input to identify:
- File path or URL
- Target language (default: TypeScript)
- Output file (optional)
-
Run the quicktype script:
bash
python3 ~/.claude/skills/quicktype/scripts/quicktype.py <file> [--lang LANG] [--out FILE]-
Display the generated types in a fenced code block
-
Ifspecified, save to that file
--out
Supported Languages
| Flag | Language |
|---|---|
| TypeScript |
| Go structs |
| Python dataclass |
| Rust structs |
| Swift Codable |
| Kotlin data class |
Examples
Input:
Output: TypeScript interfaces for the JSON structure
/quicktype api/users.jsonInput:
Output: Go struct definitions
/quicktype config.json --lang goInput:
Output: Types saved to specified file
/quicktype response.json --out src/types/api.ts