classes-instead-of-dicts
CommunityEnforce typed contracts with class-based models.
AuthorMRiabov
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Enforce typed schema contracts by preferring classes (especially pydantic.BaseModel) over freeform dicts to prevent runtime errors and improve validation, testing, and API reliability.
Core Features & Use Cases
- Prefer explicit typed classes for API contracts, data transfer, and function interfaces.
- Use pydantic.BaseModel for input/output validation and SQLAlchemy models for persistence.
- Refactor legacy dict-based contracts into typed models to improve maintainability and scalability.
Quick Start
Refactor a simple payload from a dict to a pydantic model and update API handlers to accept typed inputs.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: classes-instead-of-dicts Download link: https://github.com/MRiabov/Problemologist-AI/archive/main.zip#classes-instead-of-dicts Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.