quicktype
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.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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:
python3 ~/.claude/skills/quicktype/scripts/quicktype.py <file> [--lang LANG] [--out FILE]
-
Display the generated types in a fenced code block
-
If
--outspecified, save to that file
Supported Languages
| Flag | Language |
|---|---|
ts |
TypeScript |
go |
Go structs |
py |
Python dataclass |
rs |
Rust structs |
swift |
Swift Codable |
kotlin |
Kotlin data class |
Examples
Input: /quicktype api/users.json
Output: TypeScript interfaces for the JSON structure
Input: /quicktype config.json --lang go
Output: Go struct definitions
Input: /quicktype response.json --out src/types/api.ts
Output: Types saved to specified file
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-03-11
- Mise à jour de l’index
- 2026-03-11
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!