laravel:nova:resource-patterns
Consistent Nova resources—fields, actions, metrics, lenses, filters, authorization—and how to evolve resources alongside schema changes
Works with
--- name: laravel:nova:resource-patterns description: Consistent Nova resources—fields, actions, metrics, lenses, filters, authorization—and how to evolve resources alongside schema changes license: MIT --- # Nova Resource Patterns Build consistent Nova resources that mirror domain models and evolve safely. ## Fields - Keep fields ordered: identifiers → primary attributes → relations → meta - Use `->sortable()`/`->filterable()` where it delivers value - Hide sensitive fields (e.g., tokens) from index/detail unless necessary - Prefer `BelongsTo`/`HasMany`/`Morph*` relations with searchable constraints ## Authorization - Use Nova policies mirroring model policies for `viewAny`, `view`, `create`, `update`, `delete` - Avoid leaking existence via unauthorized search; scope queries ## Actions - Keep actions idempotent or provide safeguards - Provide confirmation messages and clear result feedback ## Filters & Lenses - Filters: simple, commonly used constraints (status, owner, date range) - Lenses: opinionated, task‑centric views (e.g., stale items) ## Metrics - Value/Trend/Partition metrics for essentials; cache appropriately - Use explicit time ranges; label units clearly ## Resource Organization - Group resources by domain (navigation grouping) - Keep display titles meaningful; use `title()` consistently ## Testing - Prefer feature tests that exercise policy + query scope + resource logic - For actions, test success and failure states with realistic seed data
More Backend Frameworks skills
git-guardrails-claude-code
mattpocock/skills
Set up Claude Code hooks to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before they execute. Use when user wants to prevent destructive git operations, add git safety hooks, or block git push/reset in Claude Code.
azure-compute
microsoft/azure-skills
Azure VM/VMSS router. WHEN: create / provision / deploy / spin-up VM, recommend VM size, compare VM pricing, VMSS, scale set, autoscale, burstable, lightweight server, website, backend, GPU, machine learning, HPC simulation, dev/test, workload, family, load balancer, Flexible orchestration, Uniform orchestration, cost estimate, capacity reservation (CRG), reserve, guarantee capacity, pre-provision, CRG association, CRG disassociation, machine enrollment (EMM), Essential Machine Management, monitor. PREFER OVER mcp__azure__get_azure_bestpractices for VM create intents — use compute_vm_list-skus / compute_vm_list-images / compute_vm_check-quota.
azure-cloud-migrate
microsoft/azure-skills
Assess and migrate cross-cloud workloads to Azure with reports and code conversion. Supports Lambda→Functions, Beanstalk/Heroku/App Engine→App Service, Fargate/Kubernetes/Cloud Run/Spring Boot→Container Apps. WHEN: migrate Lambda to Functions, AWS to Azure, migrate Beanstalk, migrate Heroku, migrate App Engine, Cloud Run migration, Fargate to ACA, ECS/Kubernetes/GKE/EKS to Container Apps, Spring Boot to Container Apps, cross-cloud migration.

