Auto-activate for msgspec imports, msgspec.Struct, msgspec.Meta, msgspec.json, msgspec.msgpack, tagged unions, enc_hook, dec_hook, or convert(). Use when defining msgspec models, serialization codecs, validation constraints, discriminated unions, or Litestar DTO data shapes. Not for Pydantic, dataclasses, attrs, or ORM models unless converting at a boundary.
The exact command may vary by repository. Check the README on GitHub.
For the skill author
Drop this on your repo README
Shows your skill is listed on Skillteca, generates a backlink and trackable traffic.
[](https://www.skillteca.com.br/skills/msgspec-litestar-org?utm_source=badge&utm_medium=readme&utm_campaign=badge)
One short email with only the new Desenvolvimento skills. 4 minutes of reading, no spam, unsubscribe with one click.
You confirm your email on the first send. No spam. Unsubscribe with one click.
msgspec Skill
msgspec is a high-performance Python library for serialization, deserialization, and validation. Structs are ~5x more memory-efficient than regular classes and serialize faster than Pydantic or dataclasses.
Code Style Rules
Use PEP 604 for unions: T | None (not Optional[T])
from __future__ import annotations rule — Modules that definemsgspec.Struct subclasses (library-like — runtime introspected) must NOT use from __future__ import annotations. Consum
[Description truncada. Veja o README completo no GitHub.]