← Back to Skills Marketplace
imgolye

Agent Task Queue

by imgolye · GitHub ↗ · v0.1.0
cross-platform ✓ Security Clean
377
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install agent-task-queue
Description
Build and operate a multi-agent task queue in OpenClaw with priority queues, delayed/dead-letter queues, scheduling, retry/timeout control, dependency manage...
README (SKILL.md)

Agent Task Queue

Use this skill when a task needs queue-based orchestration for multiple agents or workers. The bundled runtime is in src/ and covers:

  • Priority queue, delayed queue, and dead-letter queue behavior
  • Scheduler polling with concurrency limits, retries, and timeouts
  • Dependency validation, dependency gating, and result propagation
  • Task logs and aggregate metrics
  • Pluggable storage through in-memory, SQLite, or Redis backends

Workflow

  1. Import TaskQueue and Scheduler from src/index.ts.
  2. Pick storage:
    • Default InMemoryStorage for local execution or tests
    • SQLiteStorage for single-node persistence
    • RedisStorage for distributed workers
  3. Register handlers with scheduler.register(taskType, handler).
  4. Enqueue tasks with priority, runAt, dependencies, retryPolicy, and timeoutMs as needed.
  5. Drive execution via scheduler.tick() or scheduler.start().
  6. Inspect queue.logs(), queue.metrics(), queue.getSnapshot(), and queue.get(taskId) for state and traceability.

Key Files

  • src/TaskQueue.ts: queue lifecycle, ready/dead-letter snapshots, logs, metrics
  • src/Scheduler.ts: polling loop, concurrency control, retries, timeout handling
  • src/DependencyManager.ts: DAG validation and dependency result propagation
  • src/storage/: storage implementations
  • tests/task-queue.test.ts: behavior coverage
  • examples/basic.ts: end-to-end usage

Implementation Notes

  • Dependency tasks must already exist when a dependent task is enqueued.
  • A task becomes runnable only after all dependencies are completed.
  • Completed dependency results are stored and exposed to downstream handlers through context.dependencies.
  • When retries are exhausted, the task is moved to dead_letter.
  • Timeout cancellation uses AbortSignal; long-running handlers should watch context.signal.

Validation

Run:

npm run check

If Redis or SQLite packages are unavailable in the environment, install dependencies first with npm install.

Usage Guidance
This skill appears to be what it claims: a bundled TypeScript task-queue runtime. Before installing or running it: (1) inspect package.json and be prepared to run npm install (better-sqlite3 is a native module and may require build tools); (2) if you use RedisStorage, only point it at Redis instances you trust because task data and dependency results will be stored there; (3) SQLiteStorage will create a local file (task-queue.sqlite) in the working directory; (4) running npm test or npm run check will execute the test suite and build steps — run these in a sandbox if you are cautious; (5) note that task handlers you register execute arbitrary code and therefore can access network, files, or secrets available to the runtime; review any handlers you or the agent provides before allowing the scheduler to run continuously.
Capability Analysis
Type: OpenClaw Skill Name: agent-task-queue Version: 0.1.0 The skill bundle provides a legitimate and well-structured TypeScript task queue system for multi-agent orchestration. It includes features like priority handling, dependency management, and multiple storage backends (SQLite, Redis, and In-Memory). Analysis of the source code (src/), instructions (SKILL.md), and dependencies (package.json) reveals no evidence of malicious intent, data exfiltration, or unauthorized execution; all components align strictly with the stated purpose of managing task lifecycles and execution tracking.
Capability Assessment
Purpose & Capability
The name/description (multi-agent task queue) matches the included TypeScript runtime (TaskQueue, Scheduler, DependencyManager, and storage backends). The package.json dependencies (redis, better-sqlite3) align with the provided Redis and SQLite storage implementations.
Instruction Scope
SKILL.md instructs only queue-related actions (importing TaskQueue/Scheduler, picking storage backend, registering handlers, enqueueing tasks, running scheduler). It advises running npm install / npm run check; it does not instruct reading unrelated files, environment variables, or posting data to unknown endpoints.
Install Mechanism
There is no automated install spec in the registry bundle; the README/SKILL.md expect you to run npm install locally. Dependencies are from npm and there are no downloads from arbitrary URLs. Note: better-sqlite3 is a native module that may require build tools when installed.
Credentials
The skill declares no required env vars or credentials. Redis usage is opt-in via the RedisStorage constructor (accepts a URL argument) — no hidden env access is present. No unrelated secrets are requested.
Persistence & Privilege
The skill is not forced-always, does not request elevated platform privileges, and does not modify other skills or global agent configuration. Running the SQLite backend will create a local DB file; using Redis will connect to a provided Redis endpoint.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install agent-task-queue
  3. After installation, invoke the skill by name or use /agent-task-queue
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial release
Metadata
Slug agent-task-queue
Version 0.1.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Agent Task Queue?

Build and operate a multi-agent task queue in OpenClaw with priority queues, delayed/dead-letter queues, scheduling, retry/timeout control, dependency manage... It is an AI Agent Skill for Claude Code / OpenClaw, with 377 downloads so far.

How do I install Agent Task Queue?

Run "/install agent-task-queue" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Agent Task Queue free?

Yes, Agent Task Queue is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Agent Task Queue support?

Agent Task Queue is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Agent Task Queue?

It is built and maintained by imgolye (@imgolye); the current version is v0.1.0.

💬 Comments