moonshine-advanced-v4

Implement advanced MoonShine v4 controllers, handlers, routes, and type casts.

4|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/agarzon/moonshine-v4-skills --skill moonshine-advanced-v4
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moonshine-advanced-v4
Source: https://github.com/agarzon/moonshine-v4-skills/tree/main/moonshine-advanced-v4
Command: npx skills add https://github.com/agarzon/moonshine-v4-skills --skill moonshine-advanced-v4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you implement MoonShine v4 features that go beyond basic CRUD, reducing trial-and-error when building controllers, handlers, async actions, custom routes, type casts, notifications, and tests.

Core Features & Use Cases

  • Custom Controllers and Routes: Create MoonShine-aware endpoints, load pages, return JSON responses, and register routes with the correct middleware and parameter handling.
  • Handlers and Async Actions: Add reusable index-page actions, queueable operations, and inline async methods for dynamic UI updates and resource workflows.
  • Advanced Data and UI Patterns: Work with CrudResource, DataCaster contracts, notifications, toasts, dynamic fragments, package integrations, and testing patterns for production-ready admin panel extensions.
  • Use Case: Use this Skill when you need to add an export button, build a custom import flow, create a non-Eloquent resource, or test MoonShine actions without breaking framework conventions.

Quick Start

Use the moonshine-advanced-v4 skill to help implement the MoonShine v4 feature you are working on and load the relevant advanced guidance for that task.

Frequently Asked Questions about moonshine-advanced-v4

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create custom controllers and routes in MoonShine v4?▼

Creating custom controllers in MoonShine v4 involves building admin-aware endpoints that load pages and return JsonResponse flows. You register routes with middleware-safe parameter handling to maintain framework conventions across your admin panel extensions.

How do I add async actions and reusable handlers to a MoonShine resource?▼

Adding async actions and reusable handlers to a MoonShine resource requires implementing queueable operations and inline async methods. These enable dynamic UI updates and resource workflows directly on your index pages without breaking framework conventions.

Can I use non-Eloquent data sources with a MoonShine CrudResource?▼

You can use non-Eloquent data sources with a MoonShine CrudResource by implementing DataCaster contracts. This approach binds custom data structures to the admin panel while satisfying framework-specific CrudResource requirements.

What is the best way to handle notifications and toasts in MoonShine v4?▼

The best way to handle notifications and toasts in MoonShine v4 is using the framework's built-in notification and toast handling mechanisms within custom controllers. This provides dynamic feedback during async execution and resource workflows.

How do I test MoonShine v4 actions and custom endpoints?▼

Testing MoonShine v4 actions and custom endpoints requires applying framework-specific testing patterns to your controllers and handlers. This ensures your custom action endpoints, JsonResponse flows, and async methods function correctly without breaking admin panel conventions.