jobs-events

jobs-events is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 30 tokens per session (642 once invoked), scanned A, original, MIT.

A guide for building Laravel jobs, events, listeners, and queued workflows. Laravel is a PHP framework, and queues let slow work run outside the main request.

In plain words
What is it for?
Use it when creating Laravel queue jobs, event listeners, retry and failure handling, queue settings, or tests for dispatched work.
Why use it?
It helps keep background work focused, retryable, safely serialized, and resistant to duplicate effects when a job runs again.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating Laravel queue jobs, event listeners, retry and failure handling, queue settings, or tests for dispatched work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/event4u-app/agent-config/jobs-events
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 event4u-app/agent-config --skill jobs-events
Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config

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 jobs-events

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/jobs-events/github.svg)](https://agentmods.dev/skills/event4u-app/agent-config/jobs-events)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/jobs-events"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/jobs-events/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 jobs-events

Your own site · 80×15
<a href="https://agentmods.dev/skills/event4u-app/agent-config/jobs-events"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/jobs-events.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 642 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.
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.00030 $0.00642
Opus 5 $0.00015 $0.00321
Sonnet 5 $0.00006 $0.00128
Haiku 4.5 $0.00003 $0.00064

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

Security

Grade A, and why

jobs-events 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 9d 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.

src/skills/jobs-events/SKILL.md · 98 lines

How it starts

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

jobs-events

When to use

Use when creating jobs, events, listeners, or queued workflows.

Do NOT use when:

  • Artisan commands (use artisan-commands skill)
  • Scheduling configuration (use laravel-scheduling skill)

Procedure: Create a Job

Step 0: Inspect

  1. Check existing jobs — match naming, queue config, retry strategy, failure handling.
  2. Determine sync vs. async — only queue work that is slow, retryable, or non-blocking.
  3. Check queue driver: .env / config/queue.php (Redis, database, sync).
  4. Check Horizon: config/horizon.php for queue names, supervisors, balancing.

Step 1: Create the job class

  1. Pass IDs or compact DTOs in constructor — not full models with relations.
  2. Set queue via $this->onQueue(Queue::NAME->value).
  3. Add tags() for Horizon filtering.
  4. Set $maxExceptions, backoff(), $uniqueFor as needed.

Step 2: Implement handle()

  1. Keep focused and readable.
  2. Delegate complex logic to services/actions.
  3. Design for idempotency — retries must not create duplicates.

Step 3: Test

  • Bus::fake(), Queue::fake(), Event::fake().
  • Test side effects, not just dispatch assertions.

Procedure: Create an Event + Listener

Step 1: Create event

  • Past-tense naming: OrderPlaced, ImportCompleted.
  • Keep payload focused.
  • Laravel 11+: automatic discovery — no manual registration.

Step 2: Create listener

  • One responsibility per listener.
  • Delegate large logic to services.
  • Use ShouldQueue on listeners that do heavy work.

Conventions

→ See guideline php/jobs.md for full conventions (serialization, idempotency, events, dispatching).

Output format

  1. Job/Event/Listener class(es) with proper serialization and retry config
  2. Event registration in EventServiceProvider if needed

Gotcha

  • Without ShouldQueue, jobs run synchronously.
  • Queued jobs serialize constructor args — don't pass loaded models.
  • Listener exceptions block the event chain — queue heavy listeners.
  • Set $tries and $backoff — unlimited retries overwhelm the queue.

Read the full file on GitHub · 98 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. 9d ago First seen · 98 lines · 30 tokens per session scan A 16a051d807dc

Subscribe to this mod's changes

jobs-events is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 642 once invoked, about $0.0002 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-09-03.