Jobs

On this page 5

stacks-jobs · Backend and API · model-invoked

Writing the job classes in app/Jobs/: the handle method, the queue, retry and timeout configuration, and the dispatch patterns. The queue internals live in Queue.

When to reach for it

  • Job structure
  • The handle method
  • Job configuration (queue, tries, backoff, timeout, rate)
  • Dispatching patterns (dispatch, dispatchIf, dispatchAfter, dispatchNow)
  • The Every schedule constants

Inside the skill

The sections an agent reads once the skill loads.

  • Key Paths
  • Creating a Job
  • Job Configuration Options
  • Dispatching Jobs
  • Fluent Job Builder
  • Scheduled Jobs
  • CLI Commands
  • Gotchas

Where the code lives

  • Application jobs: app/Jobs/
  • Queue config: config/queue.ts

Using it

This one is model-invoked. Your agent reaches for it on its own when the task matches, and you can also call it by name:

/stacks-jobs

Source: stacks-jobs/SKILL.md. Shadow it for one project with app/Skills/stacks-jobs/SKILL.md, then re-run buddy setup:ai. See Writing your own.