laravel
Laravel API and backend reference skill: thin controllers, Form Requests, Action-driven business logic, API Resources, strict Eloquent usage, queues, caching, auth, observability, and the Laravel AI ecosystem. Use for Laravel application code, routes, models, jobs, tests, and related backend workflow changes.
What this skill does
<EXTREMELY-IMPORTANT> This skill is a routing shell over the reference set, not a place to retype the whole Laravel playbook. Non-negotiable rules: 1. Load `references/stack.md` first, then only the task-relevant references. 2. **No business logic in controllers.** Controllers validate (Form Request), delegate (Action), return (API Resource). Nothing else. 3. **No returning Eloquent models directly.** Every response goes through an API Resource. 4. **No inline validation.** All validation lives in Form Request classes. 5. **No `$guarded = []`.** Every model uses explicit `$fillable`. 6. **No raw queries.** Use Eloquent or query builder with parameter bindings. 7. **No bare `queue:work`.** All queue processing uses Horizon. 8. **`Model::shouldBeStrict()`** must be enabled in `AppServiceProvider::boot()`. </EXTREMELY-IMPORTANT> # laravel ## Inputs - `$request`: The Laravel task, bug, feature, or subsystem being worked on ## Goal Route Laravel work through the correct project conventions so the implementation follows the existing backend architecture instead of generic framework defaults. ## Step 0: Read the stack contract Always start with: - `references/stack.md` That establishes the locked runtime, package, and architecture choices for this Laravel surface. **Success criteria**: The project's Laravel stack choices are explicit before implementation starts. ## Step 1: Load only the relevant references Use the routing table to pick reference files that match the actual task. Do not bulk-load the full reference tree. | Task | Read | |------|------| | Starting a session / understanding the stack | `references/stack.md` | | Creating or modifying files, folder conventions | `references/folder-structure.md` | | API routes, versioning, middleware | `references/routing.md` | | Creating or editing a controller | `references/controller-pattern.md` | | Adding validation to a request | `references/form-requests.md` | | Creating or editing a model, relationships, scopes | `references/eloquent-models.md` | | API response transformation, pagination, filtering | `references/api-resources.md` | | Business logic, Actions, DTOs, service providers | `references/service-layer.md` | | Authentication, tokens, roles, policies | `references/auth.md` | | Migrations, seeders, factories, query optimization | `references/database.md` | | Error responses, exception handling | `references/error-handling.md` | | Logging configuration, structured logging | `references/logging.md` | | Redis caching, cache invalidation, TTL strategy | `references/caching.md` | | Jobs, queues, events, Horizon, broadcasting | `references/queues-jobs.md` | | Writing tests (feature or unit) | `references/testing.md` | | Security hardening, CORS, rate limiting, webhooks | `references/security.md` | | API documentation generation | `references/api-docs.md` | | Telescope, Horizon dashboard, Pulse, health checks | `references/observability.md` | | Filament admin panel, resources, pages, widgets | `references/filament.md` | | Docker setup, CI/CD, deployment | `references/docker.md` | | Notifications, email, SMS | `references/notifications-mail.md` | | File uploads, S3, media library | `references/file-storage.md` | | Task scheduling, cron jobs | `references/scheduling.md` | | AI agents, text/image/audio generation, embeddings, RAG | `references/ai-sdk.md` | | AI-assisted development, Boost setup, guidelines, skills | `references/boost.md` | | MCP servers, exposing app to AI clients, tools/resources/prompts | `references/mcp.md` | Multiple tasks? Read multiple files. The references are self-contained. **Success criteria**: Only the task-relevant Laravel conventions are in play. ## Step 2: Implement with the core Laravel guardrails Keep these rules active: - controllers validate, delegate, and return - responses go through API Resources - list endpoints paginate - models use explicit `$fillable` - mutations use the correct Action or transaction pattern - queues use the project's queue and Horizon conventions **Success criteria**: The change matches the project’s Laravel architecture instead of framework-default shortcuts. ## Step 3: Verify with the narrowest relevant checks Use the smallest verification loop that matches the task: - PHPUnit or Pest tests - focused artisan or framework checks - static analysis or linting if already part of the repo workflow **Success criteria**: The change is validated in the way this Laravel project expects. ## Guardrails - Do not inline the whole Laravel handbook in `SKILL.md`. - Do not skip `references/stack.md`. - Do not return raw Eloquent models directly. - Do not put business logic in controllers. - Do not add `disable-model-invocation`; this is a normal domain skill. ## When To Load References - `references/stack.md` Always. - then only the task-relevant files under `references/` ## Output Contract Report: 1. which Laravel references were loaded 2. the architecture pattern chosen 3. the change made 4. the verification run
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.