Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

moonshine-field

Skill by moonshine-software

Guides the assistant to create custom MoonShine form fields for Laravel admin panels. It covers a PHP field class, a Blade view, Alpine.js interactivity, and data handling. Aimed at developers building custom input types or data entry controls.

  • Score 84
  • 1.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install moonshine-field

Built from the published package, never by AI.

git clone --depth 1 https://github.com/moonshine-software/moonshine /tmp/moonshine && mkdir -p ~/.claude/skills && cp -r /tmp/moonshine/skills/moonshine-field ~/.claude/skills/moonshine-field

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install moonshine-field in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill helps an AI assistant build custom form fields for the MoonShine admin panel. Each field has two parts: a PHP class in app/MoonShine/Fields/ and a Blade view in resources/views/admin/fields/. The skill sets out rules for the field class, such as fluent methods that return static, saving values through resolveOnApply(), and adding {{ $attributes }} to the root element of the view.

The skill explains how fields switch between form input mode and table preview mode, and which methods control each one. It also covers viewData() for passing extra data to the view, prepareBeforeRender() for preparing logic, and Alpine.js for interactive controls. It is written for developers who work on a Laravel project with the MoonShine 4.x package installed.

Written from the project's SKILL.md and checked against it.

What it can do

  • Create field classesPlans and writes a PHP field class in app/MoonShine/Fields/ for a custom input type.
  • Create Blade viewsWrites the matching Blade view in resources/views/admin/fields/ with props and root attributes.
  • Add Alpine.js interactivityAdds Alpine.js behaviour to a field view, passing config from PHP when several fields share a page.
  • Handle data on saveShows how to save values with resolveOnApply() and resolveOnAfterApply() for relationships.
  • Control form and table displayUses resolveValue() for form inputs and resolvePreview() for formatted values in tables.

What you need

  • Laravel
  • MoonShine 4.x package installed

Try asking

  • Create a MoonShine star rating field with a PHP class and Blade view
  • Build a custom MoonShine field with Alpine.js for a color picker
  • Show me how to save a MoonShine custom field to a relationship

Good to know

  • Depends on references/fields-development.md, which is not included in the source shown
  • Targets MoonShine 4.x only

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/moonshine-field/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Grep Glob Edit Write Bash

  • SKILL.md5 KB
  • references/fields-development.md35 KB

Alternatives to moonshine-field

All alternatives →

Compare with react-component-performance, react-component-performance or lecture-style

moonshine-field: common questions

What does the moonshine-field skill do?

It guides an AI assistant to create custom form fields for the MoonShine admin panel, with a PHP class, a Blade view and Alpine.js.

Where do the MoonShine custom field files go?

The PHP class goes in app/MoonShine/Fields/ and the Blade view goes in resources/views/admin/fields/.

Which MoonShine version does it support?

The source states it requires Laravel with the MoonShine 4.x package installed.

How do I install moonshine-field?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is moonshine-field free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is moonshine-field safe to use?

It scores 84 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to moonshine-field?

Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.

moonshine-field Install

Add to stack

Loading.