0109-nuxt-models
CommunityHydrate typed Nuxt models with casts and relations.
System Documentation
What problem does it solve?
This Skill solves the problem of turning raw API payloads into consistent, type-safe Nuxt domain objects so you can reliably access enums, dates, and related entities without repetitive parsing code.
Core Features & Use Cases
- Automatic hydration: Convert API response data into model instances using a unified lifecycle from transform to readiness.
- Property casting: Cast fields into enums and value objects (e.g., DateValue) for behavior-rich, strongly typed properties.
- Relation hydration: Hydrate nested related models (e.g., Author) so model relationships are available immediately after booting.
Examples
Use this Skill when creating models for API entities, defining relationships between models, casting properties to enums/dates, or building value objects that provide formatting and domain behavior.
Quick Start
Create a model class extending the base Model, override primaryKey(), define casts() for enum/value-object fields, and define relations() for nested model hydration.
Dependency Matrix
Required Modules
None requiredComponents
💻 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: 0109-nuxt-models Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0109-nuxt-models 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.