stacks-models

Official

Define and manage Stacks data models with ease.

Authorstacksjs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The Skill helps developers define, validate, and generate data models in Stacks, covering defineModel() usage, attribute validation, factories, relationships, and common traits to accelerate backend development.

Core Features & Use Cases

  • DefineModel API for declarative model schemas and storage mappings
  • Relationships: hasOne, hasMany, belongsTo, belongsToMany
  • Traits: useAuth, useUuid, useTimestamps, useSearch, useApi, billable, taggable, categorizable, commentable, likeable, observe
  • Computed properties (get/set) and model generation templates
  • Use cases: scaffold framework models, implement application models, seed data and validation rules

Quick Start

Create a new model with the generator and begin wiring attributes, relations, and traits in your app.

Dependency Matrix

Required Modules

None required

Components

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: stacks-models
Download link: https://github.com/stacksjs/stacks/archive/main.zip#stacks-models

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.