stacks-jobs

Manage Stacks background job classes with queues, retries, and scheduled execution.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-jobs-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-jobs
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-jobs
Command: npx skills add https://github.com/bughq/bughq --skill stacks-jobs-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stacksjs/queue, @stacksjs/scheduler, @stacksjs/enums.

What problem does it solve?

This Skill simplifies the creation and management of background tasks, ensuring that time-consuming operations do not block your main application flow.

Core Features & Use Cases

  • Job Scaffolding: Quickly define job classes with built-in support for queues, retries, and timeouts.
  • Flexible Dispatching: Execute jobs immediately, delay them, or trigger them conditionally based on application state.
  • Scheduled Tasks: Automate recurring operations using cron-like syntax directly within your job definitions.

Quick Start

Use the stacks-jobs skill to generate a new background job class named ProcessUserUploads in the app/Jobs directory.

Frequently Asked Questions about stacks-jobs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define and manage background jobs in a TypeScript application?

Background jobs in TypeScript can be defined and managed using the stacks-jobs module, which facilitates the creation of job classes with built-in support for queues, retries, and timeouts to prevent blocking your main application flow.

What is the best way to schedule recurring background tasks with cron syntax?

Scheduling recurring background tasks with cron-like syntax is supported directly within job definitions by integrating the @stacksjs/scheduler module to automate recurring operations seamlessly.

Do I need a queue module to handle asynchronous task processing?

Yes, asynchronous task processing requires integration with the @stacksjs/queue module to handle job dispatching and worker orchestration for immediate, delayed, or conditional execution.

Can I delay or conditionally trigger background job execution based on application state?

Yes, background job execution offers flexible dispatching, allowing you to execute jobs immediately, delay them, or trigger them conditionally based on your current application state.

How do I scaffold a new background job class for processing uploads?

You can scaffold a new background job class by generating a file in the app/Jobs directory, which quickly defines the class structure with pre-configured support for queues, retries, and timeouts.

Why use a dedicated background processing system instead of running tasks synchronously?

A dedicated background processing system simplifies the creation of time-consuming operations, ensuring that heavy tasks do not block your main application flow while providing robust retry and timeout mechanisms.