What problem does it solve?
This Skill automates the creation of SQLAlchemy models and Pydantic schemas, ensuring consistency and adherence to project standards, thereby reducing boilerplate code and potential errors in database and API development.
Core Features & Use Cases
- Boilerplate Reduction: Generates standard SQLAlchemy models and Pydantic schemas based on provided entity names and attributes.
- Standardization: Enforces project conventions like
BaseModel inheritance, soft deletes, timestamps, naming conventions, and relation definitions.
- Use Case: When adding a new feature that requires a new database entity (e.g., 'Product'), use this Skill to quickly generate the
model_product.py and schema_product.py files, pre-configured with all necessary fields and relationships.
Quick Start
Use the model generator skill to create a new SQLAlchemy model and Pydantic schema for an entity named 'Category' with string fields 'name' and 'description'.