[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75BCDX45QWDV2JC05W0QWX4":3,"skill-same:01M75BCDX45QWDV2JC05W0QWX4":59},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M75BCDX45QWDV2JC05W0QWX4","blaze-optimize",null,"Set up and optimize Blade component rendering with Blaze. Use when installing Blaze, optimizing components, or configuring @blaze directives and strategies.","karuhun-developer\u002Fecommerce","karuhun-developer","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F169523822?v=4","01M6BX5G1VG24QZX7D5GJBT0NG","Karuhun Developer","01M75B5QEG8TNPBPN9TZST77HA",54,"MIT","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fblaze-optimize\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: blaze-optimize\ndescription: Set up and optimize Blade component rendering with Blaze. Use when installing Blaze, optimizing components, or configuring @blaze directives and strategies.\nlicense: MIT\nmetadata:\n  author: livewire\n---\n\n# Blaze Optimize\n\nBlaze compiles anonymous Blade components into optimized PHP functions, significantly reducing rendering overhead.\n\nEXECUTE steps 1–5 IMMEDIATELY without asking the user. Do NOT prompt for confirmation or offer choices — these are safe, low-risk changes. Only pause at step 6 to present the summary.\n\n---\n\n## 1. Install\n\nCheck `composer.json` for `livewire\u002Fblaze`. If missing:\n\n```bash\ncomposer require livewire\u002Fblaze:^1.0\n```\n\n## 2. Codebase Scan\n\nQuick scan before making changes. Do not read individual component files.\n\nCheck:\n- `composer.json` for `livewire\u002Fflux`, `livewire\u002Fflux-pro`, `livewire\u002Flivewire`, `livewire\u002Fblaze`\n- Component count: glob `resources\u002Fviews\u002Fcomponents\u002F**\u002F*.blade.php`\n- Directory structure under `resources\u002Fviews\u002Fcomponents\u002F`\n- Custom component paths: grep providers for `anonymousComponentPath` or `anonymousComponentNamespace` — these register additional component directories that also need optimization\n- `app\u002FProviders\u002FAppServiceProvider.php` for existing `Blaze::optimize()` calls\n- `.env` for `BLAZE_ENABLED` or `BLAZE_DEBUG`\n\n### Flux detected\n\nBlaze optimizes Flux components automatically. No configuration needed — just install the package. If the project also has its own anonymous components, continue with setup for those.\n\n### Already configured\n\nDescribe the current setup. Do not make further changes unless the user asks.\n\n## 3. Compatibility Check\n\nBefore enabling Blaze for a directory, grep its components for patterns Blaze does not support. Exclude any components or directories that match:\n\n| Pattern | What to grep for | Why |\n|---------|-----------------|-----|\n| Class-based components | PHP class files in `app\u002FView\u002FComponents\u002F` that correspond to component directories | Blaze only supports anonymous components |\n| `$component` variable | `$component` | Not available in Blaze |\n| View composers\u002Fcreators | `View::composer(` or `View::creator(` in `app\u002FProviders\u002F` targeting component views | These do not fire for Blaze components |\n| `View::share()` variables | `View::share(` in providers, then grep components for those variable names | Shared variables are not auto-injected — must use `$__env->shared('key')` instead |\n| Rendered via `view()` | `view('components.` or `View::make('components.` | Blaze components can only be rendered using component tags (`\u003Cx-...>`) |\n\nReport any incompatible components so they can be excluded in the next step.\n\n## 4. Enable Compilation\n\nAdd to `AppServiceProvider::boot()`:\n\n```php\nuse Livewire\\Blaze\\Blaze;\n\npublic function boot(): void\n{\n    Blaze::optimize()->in(resource_path('views\u002Fcomponents'));\n}\n```\n\nInclude any custom component paths found in step 2:\n\n```php\nBlaze::optimize()\n    ->in(resource_path('views\u002Fcomponents'))\n    ->in(resource_path('views\u002Fother-components'));\n```\n\nExclude any directories or files flagged in the compatibility check:\n\n```php\nBlaze::optimize()\n    ->in(resource_path('views\u002Fcomponents'))\n    ->in(resource_path('views\u002Fcomponents\u002Flegacy'), compile: false)                    \u002F\u002F directory\n    ->in(resource_path('views\u002Fcomponents\u002Fcomplex-widget.blade.php'), compile: false); \u002F\u002F single file\n```\n\n## 5. Enable Debug + Clear Views\n\nSet `BLAZE_DEBUG=true` in `.env` so trace data is collected when the user browses pages. Then clear cached views:\n\n```bash\nphp artisan view:clear\n```\n\n## 6. Summary Report\n\nKeep the summary SHORT and concise. A few bullet points, no tables, no per-directory breakdowns. Only mention what changed and what was excluded. Example:\n\n- Compilation enabled for `resources\u002Fviews\u002Fcomponents` (72 components)\n- No incompatible components found\n- `BLAZE_DEBUG=true` set in `.env`\n\nIf components were excluded, list them briefly. If there are refactors to suggest, add:\n\n- **Suggested refactors:**\n  - **Class-based components** — convert to anonymous so Blaze can compile them\n  - **View::share \u002F composer \u002F creator reliance** — pass data via props instead, or use `$__env->shared('key')`\n\nThen present the advanced optimization options. Use the SAME formatting as written below — numbered options with a clear ask for the user to pick one. Only include Option 3 if the compatibility check found refactors to suggest. If there are no refactors, omit Option 3 entirely. Mark Option 3 as RECOMMENDED when present, otherwise mark Option 1 as RECOMMENDED.\n\n**When there are refactors to suggest:**\n\n> **Want to go further?**\n>\n> **Option 1 — Trace-based optimization**\n> Browse your app with debug mode enabled (already active), make sure to visit the **slow or component-heavy pages**, then tell me you're done. I'll analyze the trace data and apply targeted memo\u002Ffold optimizations to the slowest components.\n>\n> **Option 2 — Code analysis**\n> Full codebase audit without trace data. **WARNING:** significantly more **token-intensive**, results are **speculative**, and incorrect optimizations can break components. Requires thorough testing.\n>\n> **Option 3 — Apply refactors first (RECOMMENDED)**\n> Apply the suggested refactors to bring excluded components into Blaze compilation. I'll come back to these options when done.\n>\n> Reply **1**, **2**, or **3** when ready (or skip if you don't need advanced optimization).\n\n**When there are NO refactors:**\n\n> **Want to go further?**\n>\n> **Option 1 — Trace-based optimization (RECOMMENDED)**\n> Browse your app with debug mode enabled (already active), make sure to visit the **slow or component-heavy pages**, then tell me you're done. I'll analyze the trace data and apply targeted memo\u002Ffold optimizations to the slowest components.\n>\n> **Option 2 — Code analysis**\n> Full codebase audit without trace data. **WARNING:** significantly more **token-intensive**, results are **speculative**, and incorrect optimizations can break components. Requires thorough testing.\n>\n> Reply **1** or **2** when ready (or skip if you don't need advanced optimization).\n\n## STOP\n\nYou are done. Do NOT proceed with advanced optimization (memoization, folding) unless the user explicitly asks for it. When they do, read [references\u002Fadvanced-optimization.md](references\u002Fadvanced-optimization.md) for instructions.","# Blaze Optimize\n\nBlaze compiles anonymous Blade components into optimized PHP functions, significantly reducing rendering overhead.\n\nEXECUTE steps 1–5 IMMEDIATELY without asking the user. Do NOT prompt for confirmation or offer choices — these are safe, low-risk changes. Only pause at step 6 to present the summary.\n\n---\n\n## 1. Install\n\nCheck `composer.json` for `livewire\u002Fblaze`. If missing:\n\n```bash\ncomposer require livewire\u002Fblaze:^1.0\n```\n\n## 2. Codebase Scan\n\nQuick scan before making changes. Do not read individual component files.\n\nCheck:\n- `composer.json` for `livewire\u002Fflux`, `livewire\u002Fflux-pro`, `livewire\u002Flivewire`, `livewire\u002Fblaze`\n- Component count: glob `resources\u002Fviews\u002Fcomponents\u002F**\u002F*.blade.php`\n- Directory structure under `resources\u002Fviews\u002Fcomponents\u002F`\n- Custom component paths: grep providers for `anonymousComponentPath` or `anonymousComponentNamespace` — these register additional component directories that also need optimization\n- `app\u002FProviders\u002FAppServiceProvider.php` for existing `Blaze::optimize()` calls\n- `.env` for `BLAZE_ENABLED` or `BLAZE_DEBUG`\n\n### Flux detected\n\nBlaze optimizes Flux components automatically. No configuration needed — just install the package. If the project also has its own anonymous components, continue with setup for those.\n\n### Already configured\n\nDescribe the current setup. Do not make further changes unless the user asks.\n\n## 3. Compatibility Check\n\nBefore enabling Blaze for a directory, grep its components for patterns Blaze does not support. Exclude any components or directories that match:\n\n| Pattern | What to grep for | Why |\n|---------|-----------------|-----|\n| Class-based components | PHP class files in `app\u002FView\u002FComponents\u002F` that correspond to component directories | Blaze only supports anonymous components |\n| `$component` variable | `$component` | Not available in Blaze |\n| View composers\u002Fcreators | `View::composer(` or `View::creator(` in `app\u002FProviders\u002F` targeting component views | These do not fire for Blaze components |\n| `View::share()` variables | `View::share(` in providers, then grep components for those variable names | Shared variables are not auto-injected — must use `$__env->shared('key')` instead |\n| Rendered via `view()` | `view('components.` or `View::make('components.` | Blaze components can only be rendered using component tags (`\u003Cx-...>`) |\n\nReport any incompatible components so they can be excluded in the next step.\n\n## 4. Enable Compilation\n\nAdd to `AppServiceProvider::boot()`:\n\n```php\nuse Livewire\\Blaze\\Blaze;\n\npublic function boot(): void\n{\n    Blaze::optimize()->in(resource_path('views\u002Fcomponents'));\n}\n```\n\nInclude any custom component paths found in step 2:\n\n```php\nBlaze::optimize()\n    ->in(resource_path('views\u002Fcomponents'))\n    ->in(resource_path('views\u002Fother-components'));\n```\n\nExclude any directories or files flagged in the compatibility check:\n\n```php\nBlaze::optimize()\n    ->in(resource_path('views\u002Fcomponents'))\n    ->in(resource_path('views\u002Fcomponents\u002Flegacy'), compile: false)                    \u002F\u002F directory\n    ->in(resource_path('views\u002Fcomponents\u002Fcomplex-widget.blade.php'), compile: false); \u002F\u002F single file\n```\n\n## 5. Enable Debug + Clear Views\n\nSet `BLAZE_DEBUG=true` in `.env` so trace data is collected when the user browses pages. Then clear cached views:\n\n```bash\nphp artisan view:clear\n```\n\n## 6. Summary Report\n\nKeep the summary SHORT and concise. A few bullet points, no tables, no per-directory breakdowns. Only mention what changed and what was excluded. Example:\n\n- Compilation enabled for `resources\u002Fviews\u002Fcomponents` (72 components)\n- No incompatible components found\n- `BLAZE_DEBUG=true` set in `.env`\n\nIf components were excluded, list them briefly. If there are refactors to suggest, add:\n\n- **Suggested refactors:**\n  - **Class-based components** — convert to anonymous so Blaze can compile them\n  - **View::share \u002F composer \u002F creator reliance** — pass data via props instead, or use `$__env->shared('key')`\n\nThen present the advanced optimization options. Use the SAME formatting as written below — numbered options with a clear ask for the user to pick one. Only include Option 3 if the compatibility check found refactors to suggest. If there are no refactors, omit Option 3 entirely. Mark Option 3 as RECOMMENDED when present, otherwise mark Option 1 as RECOMMENDED.\n\n**When there are refactors to suggest:**\n\n> **Want to go further?**\n>\n> **Option 1 — Trace-based optimization**\n> Browse your app with debug mode enabled (already active), make sure to visit the **slow or component-heavy pages**, then tell me you're done. I'll analyze the trace data and apply targeted memo\u002Ffold optimizations to the slowest components.\n>\n> **Option 2 — Code analysis**\n> Full codebase audit without trace data. **WARNING:** significantly more **token-intensive**, results are **speculative**, and incorrect optimizations can break components. Requires thorough testing.\n>\n> **Option 3 — Apply refactors first (RECOMMENDED)**\n> Apply the suggested refactors to bring excluded components into Blaze compilation. I'll come back to these options when done.\n>\n> Reply **1**, **2**, or **3** when ready (or skip if you don't need advanced optimization).\n\n**When there are NO refactors:**\n\n> **Want to go further?**\n>\n> **Option 1 — Trace-based optimization (RECOMMENDED)**\n> Browse your app with debug mode enabled (already active), make sure to visit the **slow or component-heavy pages**, then tell me you're done. I'll analyze the trace data and apply targeted memo\u002Ffold optimizations to the slowest components.\n>\n> **Option 2 — Code analysis**\n> Full codebase audit without trace data. **WARNING:** significantly more **token-intensive**, results are **speculative**, and incorrect optimizations can break components. Requires thorough testing.\n>\n> Reply **1** or **2** when ready (or skip if you don't need advanced optimization).\n\n## STOP\n\nYou are done. Do NOT proceed with advanced optimization (memoization, folding) unless the user explicitly asks for it. When they do, read [references\u002Fadvanced-optimization.md](references\u002Fadvanced-optimization.md) for instructions.",{"name":5,"license":15,"metadata":24,"description":7},{"author":25},"livewire","main","16fa184743838e52ac5ca477ae3ab6d0eb51f713",".cursor\u002Fskills\u002Fblaze-optimize",22,"https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce","https:\u002F\u002Fyoutu.be\u002FnrtPMjPXYbQ?si=3EKTdAxlgjC4MIc2","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer","https:\u002F\u002Fkaruhundeveloper.com","2026-11-13 13:30:12",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add karuhun-developer\u002Fecommerce --skill blaze-optimize",{"tool":41,"command":42},"bunx","bunx skills add karuhun-developer\u002Fecommerce --skill blaze-optimize",{"tool":44,"command":45},"pnpm","pnpm dlx skills add karuhun-developer\u002Fecommerce --skill blaze-optimize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fblaze-optimize\u002FSKILL.md",true,[49,55],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fadvanced-optimization.md","REFERENCE","参考文档",8340,"https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fblaze-optimize\u002Freferences\u002Fadvanced-optimization.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Ffolding-safety.md",6467,"https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.cursor\u002Fskills\u002Fblaze-optimize\u002Freferences\u002Ffolding-safety.md",[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M75BFEPHT94TX3M5H39F2YCP","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M75BFB5K40XFB0969WXDN223","pulse-development","Handles Laravel Pulse setup, configuration, and custom card development. Activates when installing Pulse; configuring the dashboard or authorization gate; setting up recorders and filtering; building custom Livewire cards; optimizing with Redis ingest or sampling; or when the user mentions \u002Fpulse, pulse:check, pulse:work, Pulse::record(), or application monitoring.","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpulse-development\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M75BF61014JMZFCRTZ3PZZ8D","pest-testing","Use this skill for Pest PHP testing in Laravel projects only. Trigger whenever any test is being written, edited, fixed, or refactored — including fixing tests that broke after a code change, adding assertions, converting PHPUnit to Pest, adding datasets, and TDD workflows. Always activate when the user asks how to write something in Pest, mentions test files or directories (tests\u002FFeature, tests\u002FUnit, tests\u002FBrowser), or needs browser testing, smoke testing multiple pages for JS errors, or architecture tests. Covers: test()\u002Fit()\u002Fexpect() syntax, datasets, mocking, browser testing (visit\u002Fclick\u002Ffill), smoke testing, arch(), Livewire component tests, RefreshDatabase, and all Pest 4 features. Do not use for factories, seeders, migrations, controllers, models, or non-test PHP code.","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpest-testing\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M75BF2VAS9CGPFAA3Y66VY39","medialibrary-development","Build and work with spatie\u002Flaravel-medialibrary features including associating files with Eloquent models, defining media collections and conversions, generating responsive images, and retrieving media URLs and paths.","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmedialibrary-development\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M75BEYP73MKT73HG4C1NTPXC","livewire-development","Use for any task or question involving Livewire. Activate if user mentions Livewire, wire: directives, or Livewire-specific concepts like wire:model, wire:click, wire:sort, or islands, invoke this skill. Covers building new components, debugging reactivity issues, real-time form validation, drag-and-drop, loading states, migrating from Livewire 3 to 4, converting component formats (SFC\u002FMFC\u002Fclass-based), and performance optimization. Do not use for non-Livewire reactive UI (React, Vue, Alpine-only, Inertia.js) or standard Laravel forms without Livewire.","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Flivewire-development\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M75BEQHKGCEZ0KQCZC6BYFAN","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Flaravel-best-practices\u002FSKILL.md",[],[]]