> laravel-background-processing
Scalable asynchronous workflows using Queues, Jobs, and Events. Use when implementing queued jobs, event-driven workflows, or async processing in Laravel. (triggers: app/Jobs/**/*.php, app/Events/**/*.php, app/Listeners/**/*.php, ShouldQueue, dispatch, batch, chain, listener)
curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/laravel-background-processing?format=md"Laravel Background Processing
Priority: P1 (HIGH)
Structure
app/
├── Jobs/ # Asynchronous tasks
├── Events/ # Communication flags
└── Listeners/ # Task reactions
Implementation Guidelines
- Offload Heavy Tasks: Move any logic taking >100ms to a Queued Job.
- ShouldQueue Interface: Add to Listeners for transparent async execution.
- Redis Driver: Use Redis for reliable and high-throughput queuing.
- Job Chaining: Use
Bus::chain()for dependent sequential jobs. - Job Batching: Use
Bus::batch()for parallel task monitoring. - Failures: Define
failed()method in jobs to handle permanent errors. - Monitoring: Use Laravel Horizon for real-time queue observability.
Anti-Patterns
- Blocking UX: No heavy logic in Request path: Always defer to Queues.
- Raw Models: No large job payloads: Pass model IDs, not full objects.
- Implicit Flow: No deep event-loop logic: Keep listener chains shallow.
- Silent Failures: No unmonitored queues: Ensure retries and alerts.
References
> related_skills --same-repo
> typescript-tooling
Development tools, linting, and build config for TypeScript. Use when configuring ESLint, Prettier, Jest, Vitest, tsconfig, or any TS build tooling. (triggers: tsconfig.json, .eslintrc.*, jest.config.*, package.json, eslint, prettier, jest, vitest, build, compile, lint)
> typescript-security
Secure coding practices for TypeScript. Use when validating input, handling auth tokens, sanitizing data, or managing secrets and sensitive configuration. (triggers: **/*.ts, **/*.tsx, validate, sanitize, xss, injection, auth, password, secret, token)
> typescript-language
Modern TypeScript standards for type safety and maintainability. Use when working with types, interfaces, generics, enums, unions, or tsconfig settings. (triggers: **/*.ts, **/*.tsx, tsconfig.json, type, interface, generic, enum, union, intersection, readonly, const, namespace)
> typescript-best-practices
Idiomatic TypeScript patterns for clean, maintainable code. Use when writing or refactoring TypeScript classes, functions, modules, or async logic. (triggers: **/*.ts, **/*.tsx, class, function, module, import, export, async, promise)