laravel-queues

laravel-queues is a skill for Claude Code, Codex from AsyrafHussin/agent-skills. It costs 105 tokens per session (2,355 once invoked), scanned A, original, MIT.

A guide to Laravel queues, which run background jobs outside the user’s immediate web request, in Laravel 13 applications using MySQL and Redis.

In plain words
What is it for?
Use it to design and audit background jobs, configure workers and Horizon, handle retries and failures, chain or batch jobs, and test queue behavior.
Why use it?
It helps avoid jobs that run too slowly, retry incorrectly, use outdated data, leak worker memory, or silently fail under load.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

not rated 75repo +3 15d ago A scan Socket: passSnyk: passSkillSpector: pass 105 tokens original MIT

Good fit Use it to design and audit background jobs, configure workers and Horizon, handle retries and failures, chain or batch jobs, and test queue behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asyrafhussin/agent-skills/laravel-queues
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AsyrafHussin/agent-skills --skill laravel-queues
Clone the repo
git clone --depth 1 https://github.com/AsyrafHussin/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for laravel-queues

README.md
[![agentmods](https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-queues/github.svg)](https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-queues)
Your own site
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-queues"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-queues/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for laravel-queues

Your own site · 80×15
<a href="https://agentmods.dev/skills/asyrafhussin/agent-skills/laravel-queues"><img src="https://agentmods.dev/badge/skills/asyrafhussin/agent-skills/laravel-queues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 20 May 2026
  • Snyk pass 20 May 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.02355
Opus 5 $0.00053 $0.01177
Sonnet 5 $0.00021 $0.00471
Haiku 4.5 $0.00011 $0.00235

Measured 12d ago against content hash 311cfd9af633, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

laravel-queues scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/laravel-queues/SKILL.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Laravel Queues & Jobs

Production-grade queue patterns for Laravel 13 (MySQL + Redis). Contains 20 rules across 6 categories covering driver choice, job design, retry/failure handling, worker scaling, batching/chaining, and testing. Targets the failure modes that pass code review but break under load — silent re-dispatch on retry, models stale on serialisation, missing idempotency on payment jobs, workers leaking memory, and "we forgot ShouldQueue and the request takes 12 seconds in production."

Metadata

  • Version: 1.0.0
  • Scope: PHP / Laravel 13 + MySQL + Redis (queues), optional Horizon
  • Rule Count: 20 rules across 6 categories
  • License: MIT

How to Use

When the user asks "design this background job", "audit our queue setup", "why is this job not running", or anything queue-related — work through this skill's rules as a checklist against the relevant files (job classes, config/queue.php, config/horizon.php, supervisor config, the dispatching call sites).

For audit mode, output per-rule verdicts:

  • PASS — pattern correctly applied
  • FAIL — anti-pattern present (with file:line + fix recommendation)
  • N/A — does not apply to this codebase

End with a top-priority fix list (idempotency on payment jobs, missing ShouldQueue, supervisor stopwaitsecs too low — these are the most common production-bite issues).

When to Apply

Reference this skill when:

  • Writing a new background job (php artisan make:job)
  • Reviewing a PR that adds or modifies a job class
  • Setting up queue workers on a new server (Forge / Vapor / bare server)
  • Configuring config/queue.php or config/horizon.php
  • Debugging a stuck, looping, or repeatedly-failing job
  • Choosing between dispatch(), dispatchSync(), dispatchAfterResponse(), Bus::batch(), Bus::chain()
  • Adding queue testing (Queue::fake(), Bus::fake())
  • Deciding whether to adopt Horizon

Step 1: Detect Queue Setup

Inspect:

File What to learn
config/queue.php Default connection (QUEUE_CONNECTION env), failed-jobs storage, after_commit setting
config/horizon.php (if present) Horizon environments, balance strategy, worker counts, timeouts
app/Jobs/*.php Job classes, ShouldQueue usage, tries/backoff, failed() methods
app/Console/Kernel.php or routes/console.php Scheduled jobs (Schedule::job(...), withoutOverlapping)
database/migrations/*_create_failed_jobs_table.php Failed-jobs storage migration; or DynamoDB driver in config
supervisor*.conf / /etc/supervisor/conf.d/ Worker process management, numprocs, --max-time, stopwaitsecs

Read the full file on GitHub · 200 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 200 lines · 105 tokens per session scan A 311cfd9af633

Subscribe to this mod's changes

laravel-queues is a skill published in the GitHub repository AsyrafHussin/agent-skills (75 stars, last pushed 15d ago), licensed MIT. It adds 105 tokens to every session and 2,355 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.