Smart Task Routerのロゴ

Smart Task Router

コミュニティ
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.

概要

公開者celiktech24-cell
リポジトリsmart-task-router
スキル名smart-task-router
スター
30
フォーク
7
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    celiktech24-cellがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSmart Task RouterをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/celiktech24-cell/smart-task-router/tree/main/skills/smart-task-router
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSmart Task Routerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSmart Task Routerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Smart Task Routerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでSmart Task Routerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Smart Task Routerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSmart Task Routerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/celiktech24-cell/smart-task-router/tree/main/skills/smart-task-routerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Smart Task Routerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Smart Task Routerは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSmart Task Routerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Smart Task Router」は無料ですか?

はい。celiktech24-cellがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇