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.
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-fieldRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/moonshine-software/moonshine /tmp/moonshine && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/moonshine/skills/moonshine-field ~/.gemini/antigravity-cli/skills/moonshine-fieldAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
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.
