Claude Code Plugins

Community-maintained marketplace

Feedback

Design and implement database models following best practices with clear singular naming, proper timestamps, appropriate data types, database constraints, relationship definitions, and validation at multiple layers. Use this skill when creating new Eloquent models, defining model relationships (hasMany, belongsTo, etc.), adding fillable or guarded properties, implementing model casts for attributes, defining database constraints and foreign keys, or working with model factories and seeders. This skill applies when working on files in app/Models/ directory, creating model classes, defining table structures, or implementing model accessors and mutators.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name Backend Models
description Design and implement database models following best practices with clear singular naming, proper timestamps, appropriate data types, database constraints, relationship definitions, and validation at multiple layers. Use this skill when creating new Eloquent models, defining model relationships (hasMany, belongsTo, etc.), adding fillable or guarded properties, implementing model casts for attributes, defining database constraints and foreign keys, or working with model factories and seeders. This skill applies when working on files in app/Models/ directory, creating model classes, defining table structures, or implementing model accessors and mutators.

Backend Models

When to use this skill

  • When creating new Eloquent models for database tables
  • When defining model relationships (hasMany, belongsTo, belongsToMany, hasOne, etc.)
  • When adding fillable or guarded properties to control mass assignment
  • When implementing model casts for attributes (dates, JSON, enums, etc.)
  • When defining database constraints (NOT NULL, UNIQUE, foreign keys)
  • When working with model factories for testing or seeding
  • When working on files in app/Models/ directory
  • When creating model classes or updating existing models
  • When implementing model accessors and mutators
  • When defining custom model methods or scopes
  • When choosing appropriate data types for model properties
  • When implementing model validation logic

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend models.

Instructions

For details, refer to the information provided in this file: backend models