Rule Python

Dataclasses

Use dataclasses or Pydantic models for structured data

pythondatatypes
CLAUDE.md

Use @dataclass or Pydantic BaseModel for structured data instead of plain dictionaries. They provide type checking, default values, validation, and clear documentation of the data shape.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl