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.
npx skills add litestar-org/litestar-skills --skill litestar-queuesgit clone --depth 1 https://github.com/litestar-org/litestar-skillsWrote 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.
[](https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-queues)<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-queues"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-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.
<a href="https://agentmods.dev/skills/litestar-org/litestar-skills/litestar-queues"><img src="https://agentmods.dev/badge/skills/litestar-org/litestar-skills/litestar-queues.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.03694 |
| Opus 5.5 | $0.00027 | $0.01478 |
| Sonnet 5.5 | $0.00014 | $0.00739 |
| Haiku 4.5 | $0.00007 | $0.00369 |
Grade A, and why
litestar-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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 239 lines — stays where its author put it; the contents beside it link to each section on GitHub.
litestar-queues
litestar-queues 0.15.1 is the first-party Litestar worker and task-queue runtime for durable task state, worker lifecycles, schedules, uniqueness, bounded maintenance, external execution dispatch, and live task events.
Keep persistence and placement separate:
- A queue backend owns task records, uniqueness reservations, maintenance coordination, and optional event history.
- An execution backend decides where a claimed task runs (
"local","immediate", Cloud Tasks, Cloud Run Jobs, Kafka, Pub/Sub, RabbitMQ, SQS). - Worker wakeups are delivery hints only; persisted queue records remain the source of truth.
Code Style Rules
- Wire lifecycle, DI, task discovery, schedules, workers, and CLI commands through
QueuePlugin(QueueConfig(...)). - Put worker settings under
QueueConfig(worker=WorkerConfig(...)); injectNamedDependency[QueueService]in handlers instead of module globals. - Import core types (
QueuePlugin,QueueConfig,WorkerConfig,QueueService,TaskListPage,QueueMaintenanceConfig,build_maintenance_route,task) fromlitestar_queues; import backend configs from.sqlspec,.advanced_alchemy,.redis, or.valkey. - Keep persisted task arguments and metadata JSON-serializable; pass stable entity IDs rather than large payloads.
Quick Reference
Minimal Plugin Setup
QueueConfig() defaults to queue_backend="ephemeral" (private per-invocation SQLite), execution_backend="local", and WorkerConfig(placement="server"). Process-local "memory" storage requires a shared-process placement:
from litestar import Litestar
from litestar_queues import QueueConfig, QueuePlugin, WorkerConfig
dev_app = Litestar(plugins=[QueuePlugin(QueueConfig())])
memory_config = QueueConfig(queue_backend="memory", worker=WorkerConfig(placement="asgi"))
Incompatible storage, execution, and placement combinations fail fast at startup.
Tasks, Enqueueing, Uniqueness, and Cancellation
from datetime import timedelta
from litestar_queues import QueueEventActor, QueueService, RetryBackoff, job_cancelled, non_retryable, task
@task(
"reports.render",
queue="reports",
priority=10,
retries=3,
retry_backoff=RetryBackoff(initial_delay=2.0, multiplier=2.0, max_delay=60.0),
timeout=120,
expires_in=timedelta(minutes=30),
unique_by="arguments",
unique_until="terminal",
actor=QueueEventActor(type="service", id="reports-worker", name="Reports Worker"),
)
async def render_report(report_id: str, *, format: str = "pdf") -> str:
"""Render a report or abort retries on permanent input errors."""
if report_id == "invalid":
non_retryable("Report ID does not exist")
return f"{report_id}.{format}"
@task("reports.refresh", interval=timedelta(minutes=15), jitter=30, retries=2)
async def refresh_reports() -> None:
"""Periodically refresh report summaries."""
async def queue_report(queue_service: QueueService, report_id: str) -> str:
"""Enqueue a report task with runtime overrides and wait briefly."""
result = await queue_service.enqueue(render_report, report_id, timeout=600, metadata={"origin": "api"})
await result.wait(timeout=30)
return result.status or "unknown"
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · -127 lines 8cf6c0953052
- 13d ago Changed · +9 tokens per session 3d769154026d
- 23d ago Changed 7ffe4181e698
- 1mo ago Changed · -472 lines 38d15ad514d2
- 1mo ago Changed · +22 lines f8e05508e54b
- 2mo ago Changed · +6 lines ac0adc604b06
- 2mo ago Changed · +200 lines · -15 tokens per session dcb45b668d59
- 3mo ago First seen · 610 lines · 74 tokens per session scan A 4568f147bb90
litestar-queues is a skill published in the GitHub repository litestar-org/litestar-skills (19 stars, last pushed today), licensed MIT. It adds 68 tokens to every session and 3,694 once invoked, about $0.0003 per session on Opus 5.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.
litestar-queues compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| litestar-queueslitestar-org/litestar-skills | Skill | 19 | today | MIT | A | 68 | Claude Code |
| add-server-logicmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 83 | Claude Code |
| integrate-webapimicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 105 | Claude Code |
| add-cloud-flowmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 91 | Claude Code |
| integrate-backendmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 86 | Claude Code |
| migrate-webapi-selectallmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 141 | Claude Code |
| generate-codeful-mcp-toolmicrosoft/power-platform-skills | Skill | 1.2k | today | MIT | A | 71 | Claude Code |