[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ESMCCMG71Z3PVVZR9X9G3R":3,"skill-same:01M7ESMCCMG71Z3PVVZR9X9G3R":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7ESMCCMG71Z3PVVZR9X9G3R","laravel-pro",null,"Laravel guidance — Eloquent ORM, routing, queues, Blade\u002FLivewire, and deploying PHP apps well.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-laravel-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: laravel-pro\ndescription: Laravel guidance — Eloquent ORM, routing, queues, Blade\u002FLivewire, and deploying PHP apps well.\ncategory: development\n---\n\n## Overview\n\nLaravel is PHP's most complete framework: Eloquent ORM, Blade templating, queues, scheduling, broadcasting, and first-party packages (Sanctum, Horizon, Scout) cover the full lifecycle of a web app. Modern Laravel pairs a robust backend with Livewire\u002FInertia for interactivity without a separate SPA. This skill covers building Laravel apps idiomatically — Eloquent without N+1s, queue discipline, and production PHP configuration.\n\n## When to use\n\n- Building a PHP web app or API with Laravel.\n- Eliminating N+1 queries or slow Eloquent code.\n- Choosing between Blade, Livewire, and Inertia for the frontend.\n- Setting up queues, scheduling, and Horizon for background work.\n- Deploying PHP (opcache, workers, permissions) correctly.\n- Building multi-tenant Laravel applications.\n- Upgrading Laravel across major versions.\n\n## Core concepts\n\n- **Eloquent ORM.** Active-record models with expressive relationships. Eager load with `with()` to avoid N+1s; use query scopes for reusable filters; prefer `cursor()` over `get()` for large datasets to avoid loading everything into memory.\n- **Routing and controllers.** Routes in `routes\u002Fweb.php` \u002F `routes\u002Fapi.php`; keep controllers thin with form requests handling validation\u002Fauthorization (`php artisan make:request`). Resource controllers map REST conventions automatically.\n- **Migrations and seeders.** Version-controlled schema in `database\u002Fmigrations`; always write the `down()` method; seed with factories for realistic dev data.\n- **Queues and Horizon.** Database\u002FRedis queue drivers; jobs should be idempotent, retryable, and small. Horizon (Redis) gives a dashboard, supervision, and metrics for queue workers — use it in production.\n- **Task scheduling.** The scheduler (`app\u002FConsole\u002FKernel.php` or `routes\u002Fconsole.php`) replaces most cron entries: one system cron hits `schedule:run` every minute, Laravel handles the rest. Use `withoutOverlapping()` and `onOneServer()` for safety.\n- **Frontend options.** Blade for server-rendered pages, Livewire for reactive components without leaving PHP, Inertia for Vue\u002FReact SPAs driven by Laravel controllers. Pick one per surface; mixing all three creates confusion.\n- **Auth your way.** Breeze\u002FJetstream scaffolds, Sanctum for API tokens and SPA auth, Passport only when you need a full OAuth2 server.\n- **Service container.** The IoC container resolves dependencies via type-hinting; bind interfaces to implementations in providers for testability. Constructor injection keeps classes honest about their dependencies.\n- **Events and listeners.** Decoupled side effects (`OrderPlaced` → `SendConfirmation`, `UpdateInventory`); queue listeners for slow ones. Prefer explicit dispatch over model observers for business-critical flows.\n- **Policies and Gates.** Authorization logic in policies (`OrderPolicy@update`), checked via `authorize()` or Blade `@can` — never inline `if ($user->id === ...)` checks scattered through controllers.\n- **Octane.** Long-lived workers (FrankenPHP\u002FRoadRunner\u002FSwoole) for high-throughput Laravel — watch for state leaking between requests via singletons or static properties.\n- **Telescope.** Local debug dashboard for queries, jobs, mail, and requests — invaluable in development; never enable it in production.\n\n## Practical workflow\n\n1. **Scaffold and configure.** `laravel new shop`; set `.env` per environment (never commit it); configure cache, session, and queue drivers for something real (redis\u002Fdatabase, not `sync`\u002F`file` in prod).\n2. **Model the domain.** Migrations first, then models with relationships, casts, and scopes; factories + seeders for dev data.\n   ```php\n   class Order extends Model\n   {\n       protected $casts = ['total' => 'decimal:2', 'placed_at' => 'datetime'];\n       public function scopePaid($query) { return $query->where('status', 'paid'); }\n       public function items() { return $this->hasMany(OrderItem::class); }\n   }\n   ```\n3. **Build the API\u002Fweb layer.** Form requests for validation, API resources (`JsonResource`) to shape responses (never return raw models), policies for authorization.\n   - Resources keep response shapes stable and documented; transform dates, hide internals, include relationships deliberately.\n4. **Add background work.** Dispatch jobs for anything slow; monitor with Horizon; schedule recurring tasks in the scheduler instead of raw cron.\n   ```php\n   ProcessOrder::dispatch($order)->onQueue('orders');\n   \u002F\u002F scheduler:\n   Schedule::command('invoices:send')->daily()->withoutOverlapping();\n   ```\n5. **Optimize PHP for prod.** Enable OPcache with timestamps off, run `config:cache`, `route:cache`, `view:cache` at deploy; set proper file permissions (storage\u002F bootstrap\u002Fcache writable by the web user).\n6. **Test the layers.** Feature tests hitting HTTP endpoints, unit tests for services, factories for fixtures; test queued jobs with `Queue::fake()` and events with `Event::fake()` where appropriate.\n7. **Cache strategically.** `Cache::remember()` for expensive queries, tagged caches for group invalidation, and route\u002Fmodel caching via the `*:cache` commands.\n8. **Deploy.** Build assets, run migrations in the release step, restart queue workers (`queue:restart`) so they pick up new code, and warm caches.\n\n   ```php\n   class OrderResource extends JsonResource\n   {\n       public function toArray(Request $request): array\n       {\n           return [\n               'id' => $this->id,\n               'total' => $this->total,\n               'status' => $this->status,\n               'placed_at' => $this->placed_at->toIso8601String(),\n               'items' => OrderItemResource::collection($this->whenLoaded('items')),\n           ];\n       }\n   }\n   ```\n\n## Common pitfalls\n\n- **N+1 queries** — `with()` eager loading on every relationship touched in loops\u002Fresources; watch with Laravel Debugbar or Telescope in dev.\n- **`sync` queue driver in production** — jobs run inline, making requests slow and failures invisible; use redis\u002Fdatabase.\n- **Forgetting `queue:restart`** after deploys — long-lived workers keep running old code.\n- **Uncached config\u002Froutes\u002Fviews** — skipping the `*:cache` commands leaves significant performance on the table.\n- **Mass-assignment without `$fillable`** — either a MassAssignmentException or, worse, an open fillable list letting users set `is_admin`.\n- **Storing uploads on local disk** — use the `s3` (object storage) disk; local disks don't survive multi-server deploys.\n- **Debug mode on in prod** (`APP_DEBUG=true`) — exposes stack traces, env vars, and DB credentials.\n- **Business logic in observers** — hidden side effects firing on every save; prefer explicit events\u002Fjobs.\n- **No rate limiting on API routes** — throttle sensitive endpoints; Laravel's throttle middleware is one line.\n- **Env caching confusion** — `config:cache` bakes env values; changing `.env` after caching does nothing until re-cached.\n- **Missing `APP_KEY`** — encrypted values become undecryptable; set it once per environment and never rotate it casually.\n- **N+1 in Blade** — `$order->items` inside a `@foreach` is the same disease in a template; eager-load in the controller.\n","## Overview\n\nLaravel is PHP's most complete framework: Eloquent ORM, Blade templating, queues, scheduling, broadcasting, and first-party packages (Sanctum, Horizon, Scout) cover the full lifecycle of a web app. Modern Laravel pairs a robust backend with Livewire\u002FInertia for interactivity without a separate SPA. This skill covers building Laravel apps idiomatically — Eloquent without N+1s, queue discipline, and production PHP configuration.\n\n## When to use\n\n- Building a PHP web app or API with Laravel.\n- Eliminating N+1 queries or slow Eloquent code.\n- Choosing between Blade, Livewire, and Inertia for the frontend.\n- Setting up queues, scheduling, and Horizon for background work.\n- Deploying PHP (opcache, workers, permissions) correctly.\n- Building multi-tenant Laravel applications.\n- Upgrading Laravel across major versions.\n\n## Core concepts\n\n- **Eloquent ORM.** Active-record models with expressive relationships. Eager load with `with()` to avoid N+1s; use query scopes for reusable filters; prefer `cursor()` over `get()` for large datasets to avoid loading everything into memory.\n- **Routing and controllers.** Routes in `routes\u002Fweb.php` \u002F `routes\u002Fapi.php`; keep controllers thin with form requests handling validation\u002Fauthorization (`php artisan make:request`). Resource controllers map REST conventions automatically.\n- **Migrations and seeders.** Version-controlled schema in `database\u002Fmigrations`; always write the `down()` method; seed with factories for realistic dev data.\n- **Queues and Horizon.** Database\u002FRedis queue drivers; jobs should be idempotent, retryable, and small. Horizon (Redis) gives a dashboard, supervision, and metrics for queue workers — use it in production.\n- **Task scheduling.** The scheduler (`app\u002FConsole\u002FKernel.php` or `routes\u002Fconsole.php`) replaces most cron entries: one system cron hits `schedule:run` every minute, Laravel handles the rest. Use `withoutOverlapping()` and `onOneServer()` for safety.\n- **Frontend options.** Blade for server-rendered pages, Livewire for reactive components without leaving PHP, Inertia for Vue\u002FReact SPAs driven by Laravel controllers. Pick one per surface; mixing all three creates confusion.\n- **Auth your way.** Breeze\u002FJetstream scaffolds, Sanctum for API tokens and SPA auth, Passport only when you need a full OAuth2 server.\n- **Service container.** The IoC container resolves dependencies via type-hinting; bind interfaces to implementations in providers for testability. Constructor injection keeps classes honest about their dependencies.\n- **Events and listeners.** Decoupled side effects (`OrderPlaced` → `SendConfirmation`, `UpdateInventory`); queue listeners for slow ones. Prefer explicit dispatch over model observers for business-critical flows.\n- **Policies and Gates.** Authorization logic in policies (`OrderPolicy@update`), checked via `authorize()` or Blade `@can` — never inline `if ($user->id === ...)` checks scattered through controllers.\n- **Octane.** Long-lived workers (FrankenPHP\u002FRoadRunner\u002FSwoole) for high-throughput Laravel — watch for state leaking between requests via singletons or static properties.\n- **Telescope.** Local debug dashboard for queries, jobs, mail, and requests — invaluable in development; never enable it in production.\n\n## Practical workflow\n\n1. **Scaffold and configure.** `laravel new shop`; set `.env` per environment (never commit it); configure cache, session, and queue drivers for something real (redis\u002Fdatabase, not `sync`\u002F`file` in prod).\n2. **Model the domain.** Migrations first, then models with relationships, casts, and scopes; factories + seeders for dev data.\n   ```php\n   class Order extends Model\n   {\n       protected $casts = ['total' => 'decimal:2', 'placed_at' => 'datetime'];\n       public function scopePaid($query) { return $query->where('status', 'paid'); }\n       public function items() { return $this->hasMany(OrderItem::class); }\n   }\n   ```\n3. **Build the API\u002Fweb layer.** Form requests for validation, API resources (`JsonResource`) to shape responses (never return raw models), policies for authorization.\n   - Resources keep response shapes stable and documented; transform dates, hide internals, include relationships deliberately.\n4. **Add background work.** Dispatch jobs for anything slow; monitor with Horizon; schedule recurring tasks in the scheduler instead of raw cron.\n   ```php\n   ProcessOrder::dispatch($order)->onQueue('orders');\n   \u002F\u002F scheduler:\n   Schedule::command('invoices:send')->daily()->withoutOverlapping();\n   ```\n5. **Optimize PHP for prod.** Enable OPcache with timestamps off, run `config:cache`, `route:cache`, `view:cache` at deploy; set proper file permissions (storage\u002F bootstrap\u002Fcache writable by the web user).\n6. **Test the layers.** Feature tests hitting HTTP endpoints, unit tests for services, factories for fixtures; test queued jobs with `Queue::fake()` and events with `Event::fake()` where appropriate.\n7. **Cache strategically.** `Cache::remember()` for expensive queries, tagged caches for group invalidation, and route\u002Fmodel caching via the `*:cache` commands.\n8. **Deploy.** Build assets, run migrations in the release step, restart queue workers (`queue:restart`) so they pick up new code, and warm caches.\n\n   ```php\n   class OrderResource extends JsonResource\n   {\n       public function toArray(Request $request): array\n       {\n           return [\n               'id' => $this->id,\n               'total' => $this->total,\n               'status' => $this->status,\n               'placed_at' => $this->placed_at->toIso8601String(),\n               'items' => OrderItemResource::collection($this->whenLoaded('items')),\n           ];\n       }\n   }\n   ```\n\n## Common pitfalls\n\n- **N+1 queries** — `with()` eager loading on every relationship touched in loops\u002Fresources; watch with Laravel Debugbar or Telescope in dev.\n- **`sync` queue driver in production** — jobs run inline, making requests slow and failures invisible; use redis\u002Fdatabase.\n- **Forgetting `queue:restart`** after deploys — long-lived workers keep running old code.\n- **Uncached config\u002Froutes\u002Fviews** — skipping the `*:cache` commands leaves significant performance on the table.\n- **Mass-assignment without `$fillable`** — either a MassAssignmentException or, worse, an open fillable list letting users set `is_admin`.\n- **Storing uploads on local disk** — use the `s3` (object storage) disk; local disks don't survive multi-server deploys.\n- **Debug mode on in prod** (`APP_DEBUG=true`) — exposes stack traces, env vars, and DB credentials.\n- **Business logic in observers** — hidden side effects firing on every save; prefer explicit events\u002Fjobs.\n- **No rate limiting on API routes** — throttle sensitive endpoints; Laravel's throttle middleware is one line.\n- **Env caching confusion** — `config:cache` bakes env values; changing `.env` after caching does nothing until re-cached.\n- **Missing `APP_KEY`** — encrypted values become undecryptable; set it once per environment and never rotate it casually.\n- **N+1 in Blade** — `$order->items` inside a `@foreach` is the same disease in a template; eager-load in the controller.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-laravel-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill laravel-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill laravel-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill laravel-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-laravel-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]