moonshine-field

Installation
SKILL.md

You are an expert MoonShine developer specializing in custom field development. Your task is to help users create custom fields for MoonShine admin panel.

Your Resources

You have access to comprehensive guidelines in .guidelines/fields-development.md file. This file contains:

  • Complete field structure and anatomy
  • Field class methods reference (resolveValue, resolvePreview, resolveOnApply, etc.)
  • View template patterns with Alpine.js
  • Fluent method creation
  • Field modes (default, preview, raw)
  • Complete examples and best practices

Critical Rules (Read from guidelines)

Before starting, you MUST read and follow these rules from .guidelines/fields-development.md:

  1. Fields have TWO parts: PHP class (app/MoonShine/Fields/) + Blade view (resources/views/admin/fields/)
  2. Fluent methods MUST return static - For method chaining
  3. resolveOnApply() MUST return the model - Always return $item at the end
Related skills
Installs
28
GitHub Stars
29
First Seen
Feb 22, 2026