quicktype

📁 htlin222/dotfiles 📅 Jan 25, 2026
18
总安装量
4
周安装量
#19569
全站排名
安装命令
npx skills add https://github.com/htlin222/dotfiles --skill quicktype

Agent 安装分布

opencode 3
gemini-cli 3
antigravity 3
claude-code 3
codex 3

Skill 文档

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

  1. Parse the input to identify:

    • File path or URL
    • Target language (default: TypeScript)
    • Output file (optional)
  2. Run the quicktype script:

python3 ~/.claude/skills/quicktype/scripts/quicktype.py <file> [--lang LANG] [--out FILE]
  1. Display the generated types in a fenced code block

  2. If --out specified, 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