jpskill.com
🛠️ 開発・MCP コミュニティ

laravel-specialist

Laravel 11以降の最新技術を駆使し、WebアプリケーションやAPI、リアルタイム機能の開発からパフォーマンス最適化まで幅広く対応するSkill。

📜 元の英語説明(参考)

Expert Laravel developer specializing in Laravel 11+, Octane, Livewire 3, and PHP 8.3 features. Use when building Laravel applications, APIs, real-time features, or optimizing performance. Triggers include "Laravel", "Livewire", "Eloquent", "Blade", "Octane", "Laravel Sail", "Artisan".

🇯🇵 日本人クリエイター向け解説

一言でいうと

Laravel 11以降の最新技術を駆使し、WebアプリケーションやAPI、リアルタイム機能の開発からパフォーマンス最適化まで幅広く対応するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o laravel-specialist.zip https://jpskill.com/download/6684.zip && unzip -o laravel-specialist.zip && rm laravel-specialist.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/6684.zip -OutFile "$d\laravel-specialist.zip"; Expand-Archive "$d\laravel-specialist.zip" -DestinationPath $d -Force; ri "$d\laravel-specialist.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して laravel-specialist.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → laravel-specialist フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Laravel スペシャリスト

目的

最新の Laravel 11+ の機能、Livewire 3、および PHP 8.3 を使用した Laravel フレームワーク開発に関する専門的なガイダンスを提供します。スケーラブルな Web アプリケーション、API、リアルタイム機能の構築、および Octane を使用したパフォーマンス最適化を専門としています。

使用場面

  • 新しい Laravel アプリケーションまたは API を構築する場合
  • Livewire 3 のリアクティブコンポーネントを実装する場合
  • Octane を使用して Laravel のパフォーマンスを最適化する場合
  • Eloquent モデルとリレーションシップを設計する場合
  • カスタム Artisan コマンドを作成する場合
  • Laravel のキューとジョブを実装する場合
  • Broadcasting を使用してリアルタイム機能を構築する場合
  • Laravel Sail のセットアップまたはデプロイを行う場合

クイックスタート

このスキルを呼び出す場合:

  • Laravel Web アプリケーションまたは API を開発している場合
  • Livewire 3 でリアクティブな UI を構築している場合
  • Octane またはキャッシングでパフォーマンスを最適化している場合
  • Eloquent ORM パターンを扱っている場合
  • Laravel エコシステムのパッケージを実装している場合

呼び出さない場合:

  • Laravel を使用しない一般的な PHP → /php-pro を使用してください
  • WordPress 開発 → /wordpress-master を使用してください
  • フロントエンド JavaScript フレームワーク → /vue-expert または /react-specialist を使用してください
  • Laravel に依存しないデータベース設計 → /database-administrator を使用してください

意思決定フレームワーク

Feature Type?
├── Interactive UI
│   ├── Complex SPA → Inertia.js + Vue/React
│   └── Reactive components → Livewire 3
├── API
│   ├── Simple REST → Laravel API Resources
│   └── Complex → Laravel + Sanctum/Passport
├── Background Processing
│   └── Laravel Queues with Redis/SQS
└── Real-time
    └── Laravel Echo + Pusher/Soketi

主要なワークフロー

1. Laravel 11 アプリケーションのセットアップ

  1. laravel new --using=sail でプロジェクトを作成します
  2. 環境とデータベースを設定します
  3. 認証を設定します (Breeze/Jetstream)
  4. マイグレーションでモデルを定義します
  5. ルートとコントローラーを実装します
  6. ミドルウェアとポリシーを追加します

2. Livewire 3 コンポーネントの開発

  1. Livewire コンポーネントクラスを作成します
  2. public プロパティとメソッドを定義します
  3. wire ディレクティブを使用して Blade テンプレートを構築します
  4. バリデーションとアクションを実装します
  5. クライアントサイドの機能強化のために Alpine.js を追加します
  6. Livewire テストユーティリティでテストします

3. パフォーマンス最適化

  1. Swoole/RoadRunner で Octane を有効にします
  2. クエリキャッシュとイーガーローディングを実装します
  3. セッションとキャッシュに Redis を使用します
  4. Composer オートローダーを最適化します
  5. OPcache 設定を構成します
  6. 非同期タスクのためにキューワーカーを設定します

ベストプラクティス

  • 厳密な型と PHP 8.3 の機能 (readonly、enums) を使用します
  • N+1 クエリを避けるためにリレーションシップをイーガーロードします
  • バリデーションにはフォームリクエストを実装します
  • 一貫したコードスタイルには Laravel Pint を使用します
  • Laravel のテストユーティリティで機能テストを作成します
  • Laravel の組み込みセキュリティ機能を活用します

アンチパターン

アンチパターン 問題点 正しいアプローチ
肥大化したコントローラー テストとメンテナンスが困難 ロジックを Actions/Services に移動する
N+1 クエリ パフォーマンスの低下 with() を使用したイーガーローディング
至る所の生 SQL Eloquent の利点を失う Eloquent を使用し、必要な場合にのみ生 SQL を使用する
キューの無視 ユーザー応答が遅くなる 時間のかかる操作をキューに入れる
キャッシュなし 不要な DB 負荷 コストのかかるクエリをキャッシュする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Laravel Specialist

Purpose

Provides expert guidance on Laravel framework development using modern Laravel 11+ features, Livewire 3, and PHP 8.3. Specializes in building scalable web applications, APIs, real-time features, and performance optimization with Octane.

When to Use

  • Building new Laravel applications or APIs
  • Implementing Livewire 3 reactive components
  • Optimizing Laravel performance with Octane
  • Designing Eloquent models and relationships
  • Creating custom Artisan commands
  • Implementing Laravel queues and jobs
  • Building real-time features with Broadcasting
  • Setting up Laravel Sail or deployment

Quick Start

Invoke this skill when:

  • Developing Laravel web applications or APIs
  • Building reactive UIs with Livewire 3
  • Optimizing performance with Octane or caching
  • Working with Eloquent ORM patterns
  • Implementing Laravel ecosystem packages

Do NOT invoke when:

  • Generic PHP without Laravel → use /php-pro
  • WordPress development → use /wordpress-master
  • Frontend JavaScript frameworks → use /vue-expert or /react-specialist
  • Database design independent of Laravel → use /database-administrator

Decision Framework

Feature Type?
├── Interactive UI
│   ├── Complex SPA → Inertia.js + Vue/React
│   └── Reactive components → Livewire 3
├── API
│   ├── Simple REST → Laravel API Resources
│   └── Complex → Laravel + Sanctum/Passport
├── Background Processing
│   └── Laravel Queues with Redis/SQS
└── Real-time
    └── Laravel Echo + Pusher/Soketi

Core Workflows

1. Laravel 11 Application Setup

  1. Create project with laravel new --using=sail
  2. Configure environment and database
  3. Set up authentication (Breeze/Jetstream)
  4. Define models with migrations
  5. Implement routes and controllers
  6. Add middleware and policies

2. Livewire 3 Component Development

  1. Create Livewire component class
  2. Define public properties and methods
  3. Build Blade template with wire directives
  4. Implement validation and actions
  5. Add Alpine.js for client-side enhancements
  6. Test with Livewire testing utilities

3. Performance Optimization

  1. Enable Octane with Swoole/RoadRunner
  2. Implement query caching and eager loading
  3. Use Redis for session and cache
  4. Optimize Composer autoloader
  5. Configure OPcache settings
  6. Set up queue workers for async tasks

Best Practices

  • Use strict types and PHP 8.3 features (readonly, enums)
  • Eager load relationships to avoid N+1 queries
  • Implement form requests for validation
  • Use Laravel Pint for consistent code style
  • Write feature tests with Laravel's testing utilities
  • Leverage Laravel's built-in security features

Anti-Patterns

Anti-Pattern Problem Correct Approach
Fat controllers Hard to test and maintain Move logic to Actions/Services
N+1 queries Performance degradation Eager loading with with()
Raw SQL everywhere Loses Eloquent benefits Use Eloquent, raw only when needed
Ignoring queues Slow user responses Queue slow operations
No caching Unnecessary DB load Cache expensive queries