[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BG2T85Y0KGX8TYBJTMNTQS":3,"skill-same:01M7BG2T85Y0KGX8TYBJTMNTQS":48},{"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":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7BG2T85Y0KGX8TYBJTMNTQS","laravel-patterns",null,"Laravel architecture patterns, routing\u002Fcontrollers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-AI-应用工具\u002FYYC3-AI-应用工具-Everything-claude-code\u002Fskills\u002Flaravel-patterns\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: laravel-patterns\ndescription: Laravel architecture patterns, routing\u002Fcontrollers, Eloquent ORM, service layers, queues, events, caching, and API resources for production apps.\norigin: ECC\n---\n\n# Laravel Development Patterns\n\nProduction-grade Laravel architecture patterns for scalable, maintainable applications.\n\n## When to Use\n\n- Building Laravel web applications or APIs\n- Structuring controllers, services, and domain logic\n- Working with Eloquent models and relationships\n- Designing APIs with resources and pagination\n- Adding queues, events, caching, and background jobs\n\n## How It Works\n\n- Structure the app around clear boundaries (controllers -> services\u002Factions -> models).\n- Use explicit bindings and scoped bindings to keep routing predictable; still enforce authorization for access control.\n- Favor typed models, casts, and scopes to keep domain logic consistent.\n- Keep IO-heavy work in queues and cache expensive reads.\n- Centralize config in `config\u002F*` and keep environments explicit.\n\n## Examples\n\n### Project Structure\n\nUse a conventional Laravel layout with clear layer boundaries (HTTP, services\u002Factions, models).\n\n### Recommended Layout\n\n```\napp\u002F\n├── Actions\u002F            # Single-purpose use cases\n├── Console\u002F\n├── Events\u002F\n├── Exceptions\u002F\n├── Http\u002F\n│   ├── Controllers\u002F\n│   ├── Middleware\u002F\n│   ├── Requests\u002F       # Form request validation\n│   └── Resources\u002F      # API resources\n├── Jobs\u002F\n├── Models\u002F\n├── Policies\u002F\n├── Providers\u002F\n├── Services\u002F           # Coordinating domain services\n└── Support\u002F\nconfig\u002F\ndatabase\u002F\n├── factories\u002F\n├── migrations\u002F\n└── seeders\u002F\nresources\u002F\n├── views\u002F\n└── lang\u002F\nroutes\u002F\n├── api.php\n├── web.php\n└── console.php\n```\n\n### Controllers -> Services -> Actions\n\nKeep controllers thin. Put orchestration in services and single-purpose logic in actions.\n\n```php\nfinal class CreateOrderAction\n{\n    public function __construct(private OrderRepository $orders) {}\n\n    public function handle(CreateOrderData $data): Order\n    {\n        return $this->orders->create($data);\n    }\n}\n\nfinal class OrdersController extends Controller\n{\n    public function __construct(private CreateOrderAction $createOrder) {}\n\n    public function store(StoreOrderRequest $request): JsonResponse\n    {\n        $order = $this->createOrder->handle($request->toDto());\n\n        return response()->json([\n            'success' => true,\n            'data' => OrderResource::make($order),\n            'error' => null,\n            'meta' => null,\n        ], 201);\n    }\n}\n```\n\n### Routing and Controllers\n\nPrefer route-model binding and resource controllers for clarity.\n\n```php\nuse Illuminate\\Support\\Facades\\Route;\n\nRoute::middleware('auth:sanctum')->group(function () {\n    Route::apiResource('projects', ProjectController::class);\n});\n```\n\n### Route Model Binding (Scoped)\n\nUse scoped bindings to prevent cross-tenant access.\n\n```php\nRoute::scopeBindings()->group(function () {\n    Route::get('\u002Faccounts\u002F{account}\u002Fprojects\u002F{project}', [ProjectController::class, 'show']);\n});\n```\n\n### Nested Routes and Binding Names\n\n- Keep prefixes and paths consistent to avoid double nesting (e.g., `conversation` vs `conversations`).\n- Use a single parameter name that matches the bound model (e.g., `{conversation}` for `Conversation`).\n- Prefer scoped bindings when nesting to enforce parent-child relationships.\n\n```php\nuse App\\Http\\Controllers\\Api\\ConversationController;\nuse App\\Http\\Controllers\\Api\\MessageController;\nuse Illuminate\\Support\\Facades\\Route;\n\nRoute::middleware('auth:sanctum')->prefix('conversations')->group(function () {\n    Route::post('\u002F', [ConversationController::class, 'store'])->name('conversations.store');\n\n    Route::scopeBindings()->group(function () {\n        Route::get('\u002F{conversation}', [ConversationController::class, 'show'])\n            ->name('conversations.show');\n\n        Route::post('\u002F{conversation}\u002Fmessages', [MessageController::class, 'store'])\n            ->name('conversation-messages.store');\n\n        Route::get('\u002F{conversation}\u002Fmessages\u002F{message}', [MessageController::class, 'show'])\n            ->name('conversation-messages.show');\n    });\n});\n```\n\nIf you want a parameter to resolve to a different model class, define explicit binding. For custom binding logic, use `Route::bind()` or implement `resolveRouteBinding()` on the model.\n\n```php\nuse App\\Models\\AiConversation;\nuse Illuminate\\Support\\Facades\\Route;\n\nRoute::model('conversation', AiConversation::class);\n```\n\n### Service Container Bindings\n\nBind interfaces to implementations in a service provider for clear dependency wiring.\n\n```php\nuse App\\Repositories\\EloquentOrderRepository;\nuse App\\Repositories\\OrderRepository;\nuse Illuminate\\Support\\ServiceProvider;\n\nfinal class AppServiceProvider extends ServiceProvider\n{\n    public function register(): void\n    {\n        $this->app->bind(OrderRepository::class, EloquentOrderRepository::class);\n    }\n}\n```\n\n### Eloquent Model Patterns\n\n### Model Configuration\n\n```php\nfinal class Project extends Model\n{\n    use HasFactory;\n\n    protected $fillable = ['name', 'owner_id', 'status'];\n\n    protected $casts = [\n        'status' => ProjectStatus::class,\n        'archived_at' => 'datetime',\n    ];\n\n    public function owner(): BelongsTo\n    {\n        return $this->belongsTo(User::class, 'owner_id');\n    }\n\n    public function scopeActive(Builder $query): Builder\n    {\n        return $query->whereNull('archived_at');\n    }\n}\n```\n\n### Custom Casts and Value Objects\n\nUse enums or value objects for strict typing.\n\n```php\nuse Illuminate\\Database\\Eloquent\\Casts\\Attribute;\n\nprotected $casts = [\n    'status' => ProjectStatus::class,\n];\n```\n\n```php\nprotected function budgetCents(): Attribute\n{\n    return Attribute::make(\n        get: fn (int $value) => Money::fromCents($value),\n        set: fn (Money $money) => $money->toCents(),\n    );\n}\n```\n\n### Eager Loading to Avoid N+1\n\n```php\n$orders = Order::query()\n    ->with(['customer', 'items.product'])\n    ->latest()\n    ->paginate(25);\n```\n\n### Query Objects for Complex Filters\n\n```php\nfinal class ProjectQuery\n{\n    public function __construct(private Builder $query) {}\n\n    public function ownedBy(int $userId): self\n    {\n        $query = clone $this->query;\n\n        return new self($query->where('owner_id', $userId));\n    }\n\n    public function active(): self\n    {\n        $query = clone $this->query;\n\n        return new self($query->whereNull('archived_at'));\n    }\n\n    public function builder(): Builder\n    {\n        return $this->query;\n    }\n}\n```\n\n### Global Scopes and Soft Deletes\n\nUse global scopes for default filtering and `SoftDeletes` for recoverable records.\nUse either a global scope or a named scope for the same filter, not both, unless you intend layered behavior.\n\n```php\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nfinal class Project extends Model\n{\n    use SoftDeletes;\n\n    protected static function booted(): void\n    {\n        static::addGlobalScope('active', function (Builder $builder): void {\n            $builder->whereNull('archived_at');\n        });\n    }\n}\n```\n\n### Query Scopes for Reusable Filters\n\n```php\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nfinal class Project extends Model\n{\n    public function scopeOwnedBy(Builder $query, int $userId): Builder\n    {\n        return $query->where('owner_id', $userId);\n    }\n}\n\n\u002F\u002F In service, repository etc.\n$projects = Project::ownedBy($user->id)->get();\n```\n\n### Transactions for Multi-Step Updates\n\n```php\nuse Illuminate\\Support\\Facades\\DB;\n\nDB::transaction(function (): void {\n    $order->update(['status' => 'paid']);\n    $order->items()->update(['paid_at' => now()]);\n});\n```\n\n### Migrations\n\n### Naming Convention\n\n- File names use timestamps: `YYYY_MM_DD_HHMMSS_create_users_table.php`\n- Migrations use anonymous classes (no named class); the filename communicates intent\n- Table names are `snake_case` and plural by default\n\n### Example Migration\n\n```php\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n    public function up(): void\n    {\n        Schema::create('orders', function (Blueprint $table): void {\n            $table->id();\n            $table->foreignId('customer_id')->constrained()->cascadeOnDelete();\n            $table->string('status', 32)->index();\n            $table->unsignedInteger('total_cents');\n            $table->timestamps();\n        });\n    }\n\n    public function down(): void\n    {\n        Schema::dropIfExists('orders');\n    }\n};\n```\n\n### Form Requests and Validation\n\nKeep validation in form requests and transform inputs to DTOs.\n\n```php\nuse App\\Models\\Order;\n\nfinal class StoreOrderRequest extends FormRequest\n{\n    public function authorize(): bool\n    {\n        return $this->user()?->can('create', Order::class) ?? false;\n    }\n\n    public function rules(): array\n    {\n        return [\n            'customer_id' => ['required', 'integer', 'exists:customers,id'],\n            'items' => ['required', 'array', 'min:1'],\n            'items.*.sku' => ['required', 'string'],\n            'items.*.quantity' => ['required', 'integer', 'min:1'],\n        ];\n    }\n\n    public function toDto(): CreateOrderData\n    {\n        return new CreateOrderData(\n            customerId: (int) $this->validated('customer_id'),\n            items: $this->validated('items'),\n        );\n    }\n}\n```\n\n### API Resources\n\nKeep API responses consistent with resources and pagination.\n\n```php\n$projects = Project::query()->active()->paginate(25);\n\nreturn response()->json([\n    'success' => true,\n    'data' => ProjectResource::collection($projects->items()),\n    'error' => null,\n    'meta' => [\n        'page' => $projects->currentPage(),\n        'per_page' => $projects->perPage(),\n        'total' => $projects->total(),\n    ],\n]);\n```\n\n### Events, Jobs, and Queues\n\n- Emit domain events for side effects (emails, analytics)\n- Use queued jobs for slow work (reports, exports, webhooks)\n- Prefer idempotent handlers with retries and backoff\n\n### Caching\n\n- Cache read-heavy endpoints and expensive queries\n- Invalidate caches on model events (created\u002Fupdated\u002Fdeleted)\n- Use tags when caching related data for easy invalidation\n\n### Configuration and Environments\n\n- Keep secrets in `.env` and config in `config\u002F*.php`\n- Use per-environment config overrides and `config:cache` in production\n","# Laravel Development Patterns\n\nProduction-grade Laravel architecture patterns for scalable, maintainable applications.\n\n## When to Use\n\n- Building Laravel web applications or APIs\n- Structuring controllers, services, and domain logic\n- Working with Eloquent models and relationships\n- Designing APIs with resources and pagination\n- Adding queues, events, caching, and background jobs\n\n## How It Works\n\n- Structure the app around clear boundaries (controllers -> services\u002Factions -> models).\n- Use explicit bindings and scoped bindings to keep routing predictable; still enforce authorization for access control.\n- Favor typed models, casts, and scopes to keep domain logic consistent.\n- Keep IO-heavy work in queues and cache expensive reads.\n- Centralize config in `config\u002F*` and keep environments explicit.\n\n## Examples\n\n### Project Structure\n\nUse a conventional Laravel layout with clear layer boundaries (HTTP, services\u002Factions, models).\n\n### Recommended Layout\n\n```\napp\u002F\n├── Actions\u002F            # Single-purpose use cases\n├── Console\u002F\n├── Events\u002F\n├── Exceptions\u002F\n├── Http\u002F\n│   ├── Controllers\u002F\n│   ├── Middleware\u002F\n│   ├── Requests\u002F       # Form request validation\n│   └── Resources\u002F      # API resources\n├── Jobs\u002F\n├── Models\u002F\n├── Policies\u002F\n├── Providers\u002F\n├── Services\u002F           # Coordinating domain services\n└── Support\u002F\nconfig\u002F\ndatabase\u002F\n├── factories\u002F\n├── migrations\u002F\n└── seeders\u002F\nresources\u002F\n├── views\u002F\n└── lang\u002F\nroutes\u002F\n├── api.php\n├── web.php\n└── console.php\n```\n\n### Controllers -> Services -> Actions\n\nKeep controllers thin. Put orchestration in services and single-purpose logic in actions.\n\n```php\nfinal class CreateOrderAction\n{\n    public function __construct(private OrderRepository $orders) {}\n\n    public function handle(CreateOrderData $data): Order\n    {\n        return $this->orders->create($data);\n    }\n}\n\nfinal class OrdersController extends Controller\n{\n    public function __construct(private CreateOrderAction $createOrder) {}\n\n    public function store(StoreOrderRequest $request): JsonResponse\n    {\n        $order = $this->createOrder->handle($request->toDto());\n\n        return response()->json([\n            'success' => true,\n            'data' => OrderResource::make($order),\n            'error' => null,\n            'meta' => null,\n        ], 201);\n    }\n}\n```\n\n### Routing and Controllers\n\nPrefer route-model binding and resource controllers for clarity.\n\n```php\nuse Illuminate\\Support\\Facades\\Route;\n\nRoute::middleware('auth:sanctum')->group(function () {\n    Route::apiResource('projects', ProjectController::class);\n});\n```\n\n### Route Model Binding (Scoped)\n\nUse scoped bindings to prevent cross-tenant access.\n\n```php\nRoute::scopeBindings()->group(function () {\n    Route::get('\u002Faccounts\u002F{account}\u002Fprojects\u002F{project}', [ProjectController::class, 'show']);\n});\n```\n\n### Nested Routes and Binding Names\n\n- Keep prefixes and paths consistent to avoid double nesting (e.g., `conversation` vs `conversations`).\n- Use a single parameter name that matches the bound model (e.g., `{conversation}` for `Conversation`).\n- Prefer scoped bindings when nesting to enforce parent-child relationships.\n\n```php\nuse App\\Http\\Controllers\\Api\\ConversationController;\nuse App\\Http\\Controllers\\Api\\MessageController;\nuse Illuminate\\Support\\Facades\\Route;\n\nRoute::middleware('auth:sanctum')->prefix('conversations')->group(function () {\n    Route::post('\u002F', [ConversationController::class, 'store'])->name('conversations.store');\n\n    Route::scopeBindings()->group(function () {\n        Route::get('\u002F{conversation}', [ConversationController::class, 'show'])\n            ->name('conversations.show');\n\n        Route::post('\u002F{conversation}\u002Fmessages', [MessageController::class, 'store'])\n            ->name('conversation-messages.store');\n\n        Route::get('\u002F{conversation}\u002Fmessages\u002F{message}', [MessageController::class, 'show'])\n            ->name('conversation-messages.show');\n    });\n});\n```\n\nIf you want a parameter to resolve to a different model class, define explicit binding. For custom binding logic, use `Route::bind()` or implement `resolveRouteBinding()` on the model.\n\n```php\nuse App\\Models\\AiConversation;\nuse Illuminate\\Support\\Facades\\Route;\n\nRoute::model('conversation', AiConversation::class);\n```\n\n### Service Container Bindings\n\nBind interfaces to implementations in a service provider for clear dependency wiring.\n\n```php\nuse App\\Repositories\\EloquentOrderRepository;\nuse App\\Repositories\\OrderRepository;\nuse Illuminate\\Support\\ServiceProvider;\n\nfinal class AppServiceProvider extends ServiceProvider\n{\n    public function register(): void\n    {\n        $this->app->bind(OrderRepository::class, EloquentOrderRepository::class);\n    }\n}\n```\n\n### Eloquent Model Patterns\n\n### Model Configuration\n\n```php\nfinal class Project extends Model\n{\n    use HasFactory;\n\n    protected $fillable = ['name', 'owner_id', 'status'];\n\n    protected $casts = [\n        'status' => ProjectStatus::class,\n        'archived_at' => 'datetime',\n    ];\n\n    public function owner(): BelongsTo\n    {\n        return $this->belongsTo(User::class, 'owner_id');\n    }\n\n    public function scopeActive(Builder $query): Builder\n    {\n        return $query->whereNull('archived_at');\n    }\n}\n```\n\n### Custom Casts and Value Objects\n\nUse enums or value objects for strict typing.\n\n```php\nuse Illuminate\\Database\\Eloquent\\Casts\\Attribute;\n\nprotected $casts = [\n    'status' => ProjectStatus::class,\n];\n```\n\n```php\nprotected function budgetCents(): Attribute\n{\n    return Attribute::make(\n        get: fn (int $value) => Money::fromCents($value),\n        set: fn (Money $money) => $money->toCents(),\n    );\n}\n```\n\n### Eager Loading to Avoid N+1\n\n```php\n$orders = Order::query()\n    ->with(['customer', 'items.product'])\n    ->latest()\n    ->paginate(25);\n```\n\n### Query Objects for Complex Filters\n\n```php\nfinal class ProjectQuery\n{\n    public function __construct(private Builder $query) {}\n\n    public function ownedBy(int $userId): self\n    {\n        $query = clone $this->query;\n\n        return new self($query->where('owner_id', $userId));\n    }\n\n    public function active(): self\n    {\n        $query = clone $this->query;\n\n        return new self($query->whereNull('archived_at'));\n    }\n\n    public function builder(): Builder\n    {\n        return $this->query;\n    }\n}\n```\n\n### Global Scopes and Soft Deletes\n\nUse global scopes for default filtering and `SoftDeletes` for recoverable records.\nUse either a global scope or a named scope for the same filter, not both, unless you intend layered behavior.\n\n```php\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nfinal class Project extends Model\n{\n    use SoftDeletes;\n\n    protected static function booted(): void\n    {\n        static::addGlobalScope('active', function (Builder $builder): void {\n            $builder->whereNull('archived_at');\n        });\n    }\n}\n```\n\n### Query Scopes for Reusable Filters\n\n```php\nuse Illuminate\\Database\\Eloquent\\Builder;\n\nfinal class Project extends Model\n{\n    public function scopeOwnedBy(Builder $query, int $userId): Builder\n    {\n        return $query->where('owner_id', $userId);\n    }\n}\n\n\u002F\u002F In service, repository etc.\n$projects = Project::ownedBy($user->id)->get();\n```\n\n### Transactions for Multi-Step Updates\n\n```php\nuse Illuminate\\Support\\Facades\\DB;\n\nDB::transaction(function (): void {\n    $order->update(['status' => 'paid']);\n    $order->items()->update(['paid_at' => now()]);\n});\n```\n\n### Migrations\n\n### Naming Convention\n\n- File names use timestamps: `YYYY_MM_DD_HHMMSS_create_users_table.php`\n- Migrations use anonymous classes (no named class); the filename communicates intent\n- Table names are `snake_case` and plural by default\n\n### Example Migration\n\n```php\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nreturn new class extends Migration\n{\n    public function up(): void\n    {\n        Schema::create('orders', function (Blueprint $table): void {\n            $table->id();\n            $table->foreignId('customer_id')->constrained()->cascadeOnDelete();\n            $table->string('status', 32)->index();\n            $table->unsignedInteger('total_cents');\n            $table->timestamps();\n        });\n    }\n\n    public function down(): void\n    {\n        Schema::dropIfExists('orders');\n    }\n};\n```\n\n### Form Requests and Validation\n\nKeep validation in form requests and transform inputs to DTOs.\n\n```php\nuse App\\Models\\Order;\n\nfinal class StoreOrderRequest extends FormRequest\n{\n    public function authorize(): bool\n    {\n        return $this->user()?->can('create', Order::class) ?? false;\n    }\n\n    public function rules(): array\n    {\n        return [\n            'customer_id' => ['required', 'integer', 'exists:customers,id'],\n            'items' => ['required', 'array', 'min:1'],\n            'items.*.sku' => ['required', 'string'],\n            'items.*.quantity' => ['required', 'integer', 'min:1'],\n        ];\n    }\n\n    public function toDto(): CreateOrderData\n    {\n        return new CreateOrderData(\n            customerId: (int) $this->validated('customer_id'),\n            items: $this->validated('items'),\n        );\n    }\n}\n```\n\n### API Resources\n\nKeep API responses consistent with resources and pagination.\n\n```php\n$projects = Project::query()->active()->paginate(25);\n\nreturn response()->json([\n    'success' => true,\n    'data' => ProjectResource::collection($projects->items()),\n    'error' => null,\n    'meta' => [\n        'page' => $projects->currentPage(),\n        'per_page' => $projects->perPage(),\n        'total' => $projects->total(),\n    ],\n]);\n```\n\n### Events, Jobs, and Queues\n\n- Emit domain events for side effects (emails, analytics)\n- Use queued jobs for slow work (reports, exports, webhooks)\n- Prefer idempotent handlers with retries and backoff\n\n### Caching\n\n- Cache read-heavy endpoints and expensive queries\n- Invalidate caches on model events (created\u002Fupdated\u002Fdeleted)\n- Use tags when caching related data for easy invalidation\n\n### Configuration and Environments\n\n- Keep secrets in `.env` and config in `config\u002F*.php`\n- Use per-environment config overrides and `config:cache` in production\n",{"name":5,"origin":24,"description":7},"ECC","main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-AI-应用工具\u002FYYC3-AI-应用工具-Everything-claude-code\u002Fskills\u002Flaravel-patterns",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill laravel-patterns",{"tool":40,"command":41},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill laravel-patterns",{"tool":43,"command":44},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill laravel-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-AI-应用工具\u002FYYC3-AI-应用工具-Everything-claude-code\u002Fskills\u002Flaravel-patterns\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"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},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\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},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\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},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\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},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\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},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]