route-task

A command that classifies a development task and starts a suitable development workflow. It accepts a task link, issue reference, URL, or local file path.

In plain words
What is it for?
Use it to start feature development or subagent-driven development from a GitHub issue, document, URL, or local file.
Why use it?
It helps route work to an appropriate workflow instead of making the developer choose one manually.

Command

Install

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.

agentmods
npx agentmods add commands/dapi/claude-code-marketplace/route-task
Clone the repo
git clone --depth 1 https://github.com/dapi/claude-code-marketplace
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,371 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.02371
Opus 5 $0.00011 $0.01185
Sonnet 5 $0.00004 $0.00474
Haiku 4.5 $0.00002 $0.00237

Measured 2d ago against content hash 98e17ad1d775, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

route-task 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 2d ago.

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.

task-router/commands/route-task.md · 209 lines

How it starts

The opening of the file, as written. The whole thing — 209 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/route-task — Маршрутизация задачи в workflow

Version: 1.0.0

Получает ссылку на задачу или путь к локальному файлу, классифицирует через haiku-агента и запускает подходящий workflow разработки.

Перед началом работы покажи пользователю: route-task v1.0.0


Фаза 1: Валидация входных данных

Проверь $ARGUMENTS:

  1. Если пусто — спроси пользователя: "Укажи ссылку на задачу (GitHub Issue URL, Google Doc URL, URL, путь к файлу) или ссылку на issue (#123)"
  2. Извлечь флаг --new-session: если $ARGUMENTS содержит --new-session, запомни NEW_SESSION=true и удали флаг из строки аргументов. Иначе NEW_SESSION=false. Флаг означает, что эта сессия уже выделенная (запущена в отдельной вкладке/окне) и предлагать "открыть новую сессию" не нужно.
  3. Обрезать пробелы. Если несколько аргументов — использовать первый.
  4. Если аргумент начинается с github.com или docs.google.com (без протокола) — добавить https://.
  5. Если аргумент начинается с /, ~/, или ./ — это путь к локальному файлу:
    • Раскрыть ~/ до абсолютного пути (заменить ~ на домашнюю директорию).
    • Проверить существование файла через Read tool (прочитать первые 5 строк).
    • Если файл не найден — покажи: "Файл не найден: {path}. Проверь путь и повтори." и останови выполнение.
    • Если файл найден — переходи к Фазе 2.
  6. Если не похоже на URL (http://, https://) и не является ссылкой на issue (#NNN) и не является локальным путём — покажи: "Неверный формат. Укажи URL (http:// или https://), путь к файлу (/path/to/plan.md) или ссылку на issue (#123)." и останови выполнение.
  7. Если формат корректный — переходи к Фазе 2.

Фаза 2: Классификация задачи

Запусти субагент-классификатор через Task tool:

Task:
  subagent_type: "task-router:task-classifier"
  description: "Classify task for routing"
  prompt: "Classify this task and determine the best workflow route: $ARGUMENTS"
  model: haiku
  max_turns: 10

Если Task tool завершился ошибкой (таймаут, crash, модель недоступна) — покажи: "Не удалось классифицировать задачу. Агент-классификатор не запустился. Попробуй позже: /route-task {url}" и останови выполнение.

Read the full file on GitHub · 209 lines

Changes

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.

  1. 2d ago First seen · 209 lines · 22 tokens per session scan A 98e17ad1d775

Subscribe to this mod's changes

route-task is a command published in the GitHub repository dapi/claude-code-marketplace (16 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 2,371 once invoked, about $0.0001 per session on Opus 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.