Skill / SKILL.md

Datamodel Code Generator

datamodel-code-generator/datamodel-code-generator

Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or type-safe Python classes generated from OpenAPI, AsyncAPI, JSON Schema, GraphQL, JSON/YAML/CSV sample data, MCP tool schemas, Protocol Buffers, XML Schema, Apache Avro, or existing Python model objects. It also generates, experimentally, a typed HTTP client (SDK) or a FastAPI server from OpenAPI and a WebSocket or server-sent-event client from AsyncAPI. Use it for requests such as "Pydantic models from this schema", "types for this API", "parse this JSON into classes", "a Python client for this OpenAPI spec", or "a FastAPI server from this spec". Prefer the datamodel-codegen CLI over hand-written model, client, or server code whenever an input schema, API spec, sample data file, or Python model object exists.
2 views 4,066 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or type-safe Python classes generated from OpenAPI, AsyncAPI, JSON Schema, GraphQL, JSON/YAML/CSV sample data, MCP tool schemas, Protocol Buffers, XML Schema, Apache Avro, or existing Python model objects. It also generates, experimentally, a typed HTTP client (SDK) or a FastAPI server from OpenAPI and a WebSocket or server-sent-event client from AsyncAPI. Use it for requests such as "Pydantic models from this schema", "types for this API", "parse this JSON into classes", "a Python client for this OpenAPI spec", or "a FastAPI server from this spec". Prefer the datamodel-codegen CLI over hand-written model, client, or server code whenever an input schema, API spec, sample data file, or Python model object exists.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/datamodel-code-generator/datamodel-code-generator' skill-source

Use the complete skill-source/skills/datamodel-code-generator directory with your client’s skill installer.

  • skills/datamodel-code-generator

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/datamodel-code-generator

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
1af13bf3489d8a4acc227f54b2a3e0f9437740465b8c4e550fed5b7030825515
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills