[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75BBVR9JB7QV70QX1K2CD2C":3,"skill-same:01M75BBVR9JB7QV70QX1K2CD2C":55},{"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},"01M75BBVR9JB7QV70QX1K2CD2C","medialibrary-development",null,"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.","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.claude\u002Fskills\u002Fmedialibrary-development\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: medialibrary-development\ndescription: 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.\nlicense: MIT\nmetadata:\n  author: Spatie\n---\n\n# Media Library Development\n\n## Overview\n\nUse spatie\u002Flaravel-medialibrary to associate files with Eloquent models. Supports image\u002Fvideo conversions, responsive images, multiple collections, and various storage disks.\n\n## When to Activate\n\n- Activate when working with file uploads, media attachments, or image processing in Laravel.\n- Activate when code references `HasMedia`, `InteractsWithMedia`, the `Media` model, or media collections\u002Fconversions.\n- Activate when the user wants to add, retrieve, convert, or manage files attached to Eloquent models.\n\n## Scope\n\n- In scope: media uploads, collections, conversions, responsive images, custom properties, file retrieval, path\u002FURL generation.\n- Out of scope: general file storage without Eloquent association, non-Laravel frameworks.\n\n## Workflow\n\n1. Identify the task (model setup, adding media, defining conversions, retrieving files, etc.).\n2. Read `references\u002Fmedialibrary-guide.md` and focus on the relevant section.\n3. Apply the patterns from the reference, keeping code minimal and Laravel-native.\n\n## Core Concepts\n\n### Model Setup\n\nEvery model that should have media must implement `HasMedia` and use the `InteractsWithMedia` trait:\n\n```php\nuse Spatie\\MediaLibrary\\HasMedia;\nuse Spatie\\MediaLibrary\\InteractsWithMedia;\n\nclass BlogPost extends Model implements HasMedia\n{\n    use InteractsWithMedia;\n}\n```\n\n### Adding Media\n\n```php\n$blogPost->addMedia($file)->toMediaCollection('images');\n$blogPost->addMediaFromUrl($url)->toMediaCollection('images');\n$blogPost->addMediaFromRequest('file')->toMediaCollection('images');\n```\n\n### Defining Collections\n\n```php\npublic function registerMediaCollections(): void\n{\n    $this->addMediaCollection('avatar')->singleFile();\n    $this->addMediaCollection('downloads')->useDisk('s3');\n}\n```\n\n### Defining Conversions\n\n```php\nuse Spatie\\MediaLibrary\\MediaCollections\\Models\\Media;\nuse Spatie\\Image\\Enums\\Fit;\n\npublic function registerMediaConversions(?Media $media = null): void\n{\n    $this->addMediaConversion('thumb')\n        ->fit(Fit::Contain, 300, 300)\n        ->nonQueued();\n}\n```\n\n### Retrieving Media\n\n```php\n$url = $model->getFirstMediaUrl('images');\n$thumbUrl = $model->getFirstMediaUrl('images', 'thumb');\n$allMedia = $model->getMedia('images');\n```\n\n## Do and Don't\n\nDo:\n- Always implement the `HasMedia` interface alongside the `InteractsWithMedia` trait.\n- Use `?Media $media = null` as the parameter for `registerMediaConversions()`.\n- Call `->toMediaCollection()` to finalize adding media.\n- Use `->nonQueued()` for conversions that should run synchronously.\n- Use `->singleFile()` on collections that should only hold one file.\n- Use `Spatie\\Image\\Enums\\Fit` enum values for fit methods.\n\nDon't:\n- Don't forget to run `php artisan vendor:publish --provider=\"Spatie\\MediaLibrary\\MediaLibraryServiceProvider\" --tag=\"medialibrary-migrations\"` before migrating.\n- Don't use `env()` for disk configuration; use `config()` or set it in `config\u002Fmedia-library.php`.\n- Don't call `addMedia()` without calling `toMediaCollection()` — the media won't be saved.\n- Don't reference conversion names that aren't registered in `registerMediaConversions()`.\n\n## References\n\n- `references\u002Fmedialibrary-guide.md`","# Media Library Development\n\n## Overview\n\nUse spatie\u002Flaravel-medialibrary to associate files with Eloquent models. Supports image\u002Fvideo conversions, responsive images, multiple collections, and various storage disks.\n\n## When to Activate\n\n- Activate when working with file uploads, media attachments, or image processing in Laravel.\n- Activate when code references `HasMedia`, `InteractsWithMedia`, the `Media` model, or media collections\u002Fconversions.\n- Activate when the user wants to add, retrieve, convert, or manage files attached to Eloquent models.\n\n## Scope\n\n- In scope: media uploads, collections, conversions, responsive images, custom properties, file retrieval, path\u002FURL generation.\n- Out of scope: general file storage without Eloquent association, non-Laravel frameworks.\n\n## Workflow\n\n1. Identify the task (model setup, adding media, defining conversions, retrieving files, etc.).\n2. Read `references\u002Fmedialibrary-guide.md` and focus on the relevant section.\n3. Apply the patterns from the reference, keeping code minimal and Laravel-native.\n\n## Core Concepts\n\n### Model Setup\n\nEvery model that should have media must implement `HasMedia` and use the `InteractsWithMedia` trait:\n\n```php\nuse Spatie\\MediaLibrary\\HasMedia;\nuse Spatie\\MediaLibrary\\InteractsWithMedia;\n\nclass BlogPost extends Model implements HasMedia\n{\n    use InteractsWithMedia;\n}\n```\n\n### Adding Media\n\n```php\n$blogPost->addMedia($file)->toMediaCollection('images');\n$blogPost->addMediaFromUrl($url)->toMediaCollection('images');\n$blogPost->addMediaFromRequest('file')->toMediaCollection('images');\n```\n\n### Defining Collections\n\n```php\npublic function registerMediaCollections(): void\n{\n    $this->addMediaCollection('avatar')->singleFile();\n    $this->addMediaCollection('downloads')->useDisk('s3');\n}\n```\n\n### Defining Conversions\n\n```php\nuse Spatie\\MediaLibrary\\MediaCollections\\Models\\Media;\nuse Spatie\\Image\\Enums\\Fit;\n\npublic function registerMediaConversions(?Media $media = null): void\n{\n    $this->addMediaConversion('thumb')\n        ->fit(Fit::Contain, 300, 300)\n        ->nonQueued();\n}\n```\n\n### Retrieving Media\n\n```php\n$url = $model->getFirstMediaUrl('images');\n$thumbUrl = $model->getFirstMediaUrl('images', 'thumb');\n$allMedia = $model->getMedia('images');\n```\n\n## Do and Don't\n\nDo:\n- Always implement the `HasMedia` interface alongside the `InteractsWithMedia` trait.\n- Use `?Media $media = null` as the parameter for `registerMediaConversions()`.\n- Call `->toMediaCollection()` to finalize adding media.\n- Use `->nonQueued()` for conversions that should run synchronously.\n- Use `->singleFile()` on collections that should only hold one file.\n- Use `Spatie\\Image\\Enums\\Fit` enum values for fit methods.\n\nDon't:\n- Don't forget to run `php artisan vendor:publish --provider=\"Spatie\\MediaLibrary\\MediaLibraryServiceProvider\" --tag=\"medialibrary-migrations\"` before migrating.\n- Don't use `env()` for disk configuration; use `config()` or set it in `config\u002Fmedia-library.php`.\n- Don't call `addMedia()` without calling `toMediaCollection()` — the media won't be saved.\n- Don't reference conversion names that aren't registered in `registerMediaConversions()`.\n\n## References\n\n- `references\u002Fmedialibrary-guide.md`",{"name":5,"license":15,"metadata":24,"description":7},{"author":25},"Spatie","main","16fa184743838e52ac5ca477ae3ab6d0eb51f713",".claude\u002Fskills\u002Fmedialibrary-development",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 medialibrary-development",{"tool":41,"command":42},"bunx","bunx skills add karuhun-developer\u002Fecommerce --skill medialibrary-development",{"tool":44,"command":45},"pnpm","pnpm dlx skills add karuhun-developer\u002Fecommerce --skill medialibrary-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmedialibrary-development\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fmedialibrary-guide.md","REFERENCE","参考文档",14646,"https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmedialibrary-development\u002Freferences\u002Fmedialibrary-guide.md",[56,63,70,77,82,89],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"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":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},"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":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},"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":78,"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":79,"categories":80,"keywords":81,"publishedAt":19},"01M75BF2VAS9CGPFAA3Y66VY39","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Fecommerce\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmedialibrary-development\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"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":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"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",[],[]]