Task Router Skill
Task Router
Multi-queue task orchestration system. Tasks are routed to queues by model source, with support for task dependencies, context passing, and failure handling. Each model source has its own FIFO queue, executing one task at a time.
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install bg1avd/model-queueInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
A multi-queue task orchestration system where tasks are routed to queues based on their target model source. Supports task dependencies, context passing between tasks, and configurable failure handling.
Models are grouped by their underlying source (e.g., local Ollama, remote Ollama, cloud API). All tasks targeting models on the same source share a single queue.
Configuration in TOOLS.md:
MODEL_SOURCE_OLLAMA_LOCAL=ollama/llama3,ollama/qwen2.5,ollama/mistral
MODEL_SOURCE_OLLAMA_REMOTE=ollama-remote/qwen3.5:27b,ollama-remote/llama3:70b
MODEL_SOURCE_CLOUD_NVIDIA=nvidia/z-ai/glm5,nvidia/llama3
Each model source has its own queue file:
${MODEL_QUEUES_DIR}/ollama-local.json
${MODEL_QUEUES_DIR}/ollama-remote.json
Queues are independent — a blocked task in one queue doesn't affect other queues.
{
"id": "T-001",
"queue": "ollama-local",
"model": "ollama/qwen2.5",
"description": "Analyze the sales data",
"goal": "Generate a summary of Q1 sales performance",
"status": "pending",
"priority": 0,
"depends_on": null,
"on_depends_fail": "block",
"context_input": null,
"result": null,
"result_status": null,
"result_summary": null,
"retries": 0,
"maxRetries": 3,
"subagent_session": null,
"added_at": "2026-03-04T16:51:00Z",
"started_at": null,
"completed_at": null
}
| Status | Description |
|---|---|
pending |
Ready to be dispatched (no dependencies or resolved) |
waiting |
Has dependency, waiting for it to complete |
running |
Currently executing via subagent |
done |
Completed successfully |
failed |
Failed after max retries |
blocked |
Dependency failed, waiting for user action |
skipped |
Skipped by user or due to dependency failure |
| Mode | Trigger | Purpose |
|---|---|---|
| *... |
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# Model Queue Skill
A multi-queue task orchestration system where tasks are routed to queues based on their target model source. Supports task dependencies, context passing between tasks, and configurable failure handling.
---
## Core Concepts
### Model Source Mapping
Models are grouped by their underlying source (e.g., local Ollama, remote Ollama, cloud API). All tasks targeting models on the same source share a single queue.
**Configuration in TOOLS.md:**
```
MODEL_SOURCE_OLLAMA_LOCAL=ollama/llama3,ollama/qwen2.5,ollama/mistral
MODEL_SOURCE_OLLAMA_REMOTE=ollama-remote/qwen3.5:27b,ollama-remote/llama3:70b
MODEL_SOURCE_CLOUD_NVIDIA=nvidia/z-ai/glm5,nvidia/llama3
```
### Queue Isolation
Each model source has its own queue file:
- `${MODEL_QUEUES_DIR}/ollama-local.json`
- `${MODEL_QUEUES_DIR}/ollama-remote.json`
Queues are independent — a blocked task in one queue doesn't affect other queues.
---
## Task Object Schema
```json
{
"id": "T-001",
"queue": "ollama-local",
"model": "ollama/qwen2.5",
"description": "Analyze the sales data",
"goal": "Generate a summary of Q1 sales performance",
"status": "pending",
"priority": 0,
"depends_on": null,
"on_depends_fail": "block",
"context_input": null,
"result": null,
"result_status": null,
"result_summary": null,
"retries": 0,
"maxRetries": 3,
"subagent_session": null,
"added_at": "2026-03-04T16:51:00Z",
"started_at": null,
"completed_at": null
}
```
---
## Task Statuses
| Status | Description |
|--------|-------------|
| `pending` | Ready to be dispatched (no dependencies or resolved) |
| `waiting` | Has dependency, waiting for it to complete |
| `running` | Currently executing via subagent |
| `done` | Completed successfully |
| `failed` | Failed after max retries |
| `blocked` | Dependency failed, waiting for user action |
| `skipped` | Skipped by user or due to dependency failure |
---
## Two Operating Modes
| Mode | Trigger | Purpose |
|------|---------|---------|
| *...Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.