Logotipo de Smart Task Router

Smart Task Router

Comunidad
celiktech24-cell
smart-task-router

Use when the user asks to build, fix or run any task, from a small edit to a large multi-file project. Plans with a strong model, picks the cheapest model and effort per subtask, verifies every step, escalates only on failure, and keeps state so work can resume.

Descripción general

Editorceliktech24-cell
Repositoriosmart-task-router
Nombre de la habilidadsmart-task-router
Estrellas
30
Forks
7
Archivos incluidos
Solo instrucciones
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando una petición es realmente relevante.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Todo en las instrucciones

    Todo lo que necesita el modelo está en las instrucciones: no hay archivos adicionales que sincronizar.

  • Código abierto

    Publicada por celiktech24-cell en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Smart Task Router en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/celiktech24-cell/smart-task-router/tree/main/skills/smart-task-router
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → Desde URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/celiktech24-cell/smart-task-router.git /tmp/smart-task-router
mkdir -p .claude/skills
cp -r /tmp/smart-task-router/skills/smart-task-router .claude/skills/smart-task-router
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Smart Task Router en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición es relevante, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Smart Task Router automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Smart Task Router no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición relevante, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

Smart Task Router

Principle: strong model thinks, cheap models type, real checks decide. Opus plans and reviews. Sonnet or Haiku build small, well-specified pieces. Every piece is proven by a check before it counts.

0. Pick the mode

  • Answer: a question or explanation. Reply directly, with no agents.
  • Small task: one concern, about 3 files or fewer, clear result. Use the Quick path.
  • Project: a feature across modules, a new app or service, a migration, an integration, or anything vague or large. Use the Project path.
  • "Continue" / "resume": read .router/PROGRESS.md and pick up at the first unfinished task.

Model tiers (used by both paths)

TierAgentModel / effortTypical work
E Easyrouter-easyhaiku, lowBoilerplate, renames, formatting, data conversion, tests written from a given spec, copying an existing pattern, docs
N Normalrouter-normalsonnet, mediumStandard features inside defined interfaces, UI components, scripts, endpoints that follow existing patterns
H Hardrouter-hardopus, highPlanning, core logic, interfaces and contracts, schemas, unclear bugs, security, production data, final review
X Last resortnone (model override)fable, highOnly after H fails twice, or when the user asks

Raise the tier for: a vague spec, no way to check the result, irreversible actions, many unknown files, or an earlier failure. Lower the tier for: clear examples, existing tests, a repeated pattern, or a reversible change.

Spawning: if the plugin's agents are installed, use them by name (they may appear namespaced, e.g. smart-task-router:router-easy), because they also set effort. Otherwise spawn a general agent with the tier's model as an override. If no agent tool exists at all, see "Without an agent tool" below.


Quick path (small tasks)

  1. Write a spec: goal, files, exact output, constraints, done-check.
  2. Delegate it to the tier's agent (or do it yourself if spawning would cost more than the edit).
  3. Run the done-check yourself.
  4. On failure, re-run one tier up and add the error to the spec. Escalate at most twice.
  5. Report in one line: E -> failed -> N -> passed.

Project path (big tasks)

All state lives in .router/ in the project root. It lets cheap agents work without the whole conversation, and it lets work resume in a new session. Suggest adding .router/ to .gitignore unless the user wants to keep it.

Phase 1: Recon (cheap, read-only)

Spawn router-scout (haiku) to write .router/CONTEXT.md, at most about 150 lines:

  • Stack, frameworks and versions, plus exact run, build, test and lint commands.
  • Folder map of relevant areas, entry points and config files.
  • Conventions: naming, error handling, state management, styling, and an example file to copy patterns from.
  • Files likely to be touched, and external services (APIs, DB, deploy target).

The codebase is explored once. Every later agent reads CONTEXT.md instead of re-exploring.

Phase 2: Plan (Tier H)

Write .router/PLAN.md with:

  1. Goal, non-goals and acceptance criteria: testable statements of "done".
  2. Decisions: architecture choices and their reasons.
  3. Contracts first: function signatures, API request and response shapes, DB schema, shared types, env vars. Contracts let cheap agents build pieces in parallel without guessing.
  4. Task list. Each task has:
    • id, title, tier, depends_on
    • files: exact paths to create or edit (one concern, about 3 files or fewer per task)
    • spec: what to build, which contract it implements, and which pattern to copy
    • done_check: a command or concrete observation

Order the tasks as contracts and scaffolding, then core logic, then features, then UI, then tests and docs. If the user is present, show the plan summary and get approval before building. Changing a plan is cheap. Rebuilding is expensive.

Phase 3: Build (task by task)

For each ready task (all of its dependencies done):

  1. Spawn the task's tier agent. Its prompt contains only:
    • the path to CONTEXT.md ("read this first")
    • the relevant contracts copied from PLAN.md
    • the task spec, the file list and the done-check
    • the rule: "Edit only the listed files. If something outside them must change, stop and report it."
  2. Tasks with no file overlap can run in parallel (use worktree isolation if available).
  3. Run the done-check yourself. Never trust the agent's report alone.
  4. Pass: mark it done in .router/PROGRESS.md (task id, tier used, files changed, one-line note). Commit if git is used, one commit per task as a checkpoint.
  5. Fail: escalate one tier and include the error output plus what was tried.
  6. Failed twice at Tier H means the plan is wrong for this part. Return to Phase 2, re-plan that part (split it, fix the contract) and continue. Never brute-force.

Agent reports must be short: pass or fail, files changed, any deviation from the spec, and open issues. No full file dumps.

Phase 4: Integrate and review (Tier H)

  1. Run the full build, tests and lint, then start the app and exercise the main flow.
  2. router-reviewer (read-only) checks the diff, not the whole repo, against the acceptance criteria, the contracts, security and conventions.
  3. Turn each finding into a new task in PLAN.md and route it through Phase 3 at the right tier.
  4. Repeat until the acceptance criteria pass.

Phase 5: Report

Report in a short summary: what was built, how it was verified, the tier mix (e.g. 12 tasks: 5 E, 5 N, 2 H, 1 escalation), and anything left for the user (keys to add, deploy steps, decisions).


Token rules

  • Pass paths, not file contents. Agents read only the files listed for them.
  • Do not re-explore what CONTEXT.md already covers. Update CONTEXT.md when you learn something new.
  • One concern per task. Big vague tasks cost more and fail more.
  • When the conversation grows long, rely on the .router/ files, not on recalling earlier messages.
  • If escalations exceed about 30% of tasks, stop and fix the plan or specs. The specs are too thin.
  • Do not route trivial edits through agents, because spawning one costs more than doing it.

Safety

  • Ask the user before irreversible actions: deploys, migrations on production databases, changes to live business data, deleting files, or sending messages.
  • Secrets go in env vars and are never written into code or .router/ files.

Without an agent tool (plain chat)

Follow the same phases yourself in order: recon notes, plan with contracts, build task by task, check each one, then review. Tell the user in one line which model and effort would suit the build phase next time.

Preguntas frecuentes

¿Qué hace la habilidad de IA Smart Task Router?

Use when the user asks to build, fix or run any task, from a small edit to a large multi-file project. Plans with a strong model, picks the cheapest model and effort per subtask, verifies every step, escalates only on failure, and keeps state so work can resume.

¿Por qué usar Smart Task Router en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Smart Task Router está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Smart Task Router en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/celiktech24-cell/smart-task-router/tree/main/skills/smart-task-router. TypingMind lee su archivo SKILL.md y la instala como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Smart Task Router?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Smart Task Router?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Smart Task Router con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Smart Task Router?

Sí. celiktech24-cell la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver todos

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇