laravel-background-processing
БесплатноБез исполняемых скриптовНе проверенBuild scalable asynchronous workflows using Queues, Jobs, and Events in Laravel. Use when implementing queued jobs, event-driven workflows, or async…
от HoangNguyen0403★ 598 звёзд на GitHubОб этом скилле
Laravel Background Processing
Priority: P1 (HIGH)
Structure
app/
├── Jobs/ # Asynchronous tasks
├── Events/ # Communication flags
└── Listeners/ # Task reactions
Implementation Guidelines
Queued Jobs
- Job Creation: Use
php artisan make:job ProcessOrder. Classes must implementShouldQueue. - Execution: Implement logic inside
handle()method. Pass only model IDs to constructor, not full Eloquent model. - Dispatching: Trigger via
ProcessOrder::dispatch($orderId).
Advanced Workflow Patterns
- Job Chaining: Use
Bus::chain([new ProcessPayment($order), new SendReceipt($order)])->dispatch()for sequential dependencies. Handle failures with->catch(fn => ...). - Job Batching: Use
Bus::batch([new ImportRow(1), ...])->then(...)->catch(...)->dispatch(). Use$this->batch()->cancel()to abort and track via$batch->progress().
Events & Listeners
- Scaffolding: Run
php artisan make:event OrderPlacedandphp artisan make:listener SendConfirmation --event=OrderPlaced. - Async Execution: Add
ShouldQueueto listeners to process them asynchronously. - Activation: Trigger with
Event::dispatch(new OrderPlaced($order)).
Reliability & Monitoring
- Error Handling: Implement
public function failed(Throwable $exception)in your job class. Usepublic int $tries = 3andpublic int $backoff = 60for retries. - Setup: Run
queue:failed-tablemigration to track dead jobs. - Monitoring: Use Laravel Horizon (run
php artisan horizon) for real-time observability; never usequeue:workin production.
Anti-Patterns
- No heavy logic in request path: Defer tasks >100ms to Queues.
- No full model in job payload: Pass IDs; Eloquent fetches on run.
- No deep event listener chains: Keep listener depth shallow.
- No unmonitored queues: Configure retries and Horizon alerts.
References
Horizon checklist
- Horizon deployments must publish and edit
config/horizon.php, then runphp artisan horizon; do not usequeue:workas the production monitor.
Установить laravel-background-processing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл laravel-background-processing?
Build scalable asynchronous workflows using Queues, Jobs, and Events in Laravel. Use when implementing queued jobs, event-driven workflows, or async processing in Laravel.
Как установить скилл laravel-background-processing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл laravel-background-processing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic