Skill Routerのロゴ

Skill Router

組織
Rune-kit
skill-router

Meta-enforcement layer that routes EVERY agent action through the correct skill. MUST check this routing table before ANY response involving code, files, or technical decisions. Default: route to rune:cook for code tasks. Prevents rationalization, enforces check-before-act discipline.

概要

公開者Rune-kit
リポジトリrune
スキル名skill-router
スター
88
フォーク
26
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Rune-kit/rune.git /tmp/rune
mkdir -p .claude/skills
cp -r /tmp/rune/skills/skill-router .claude/skills/skill-router
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

Live Routing Context

Routing overrides (if available): !cat .rune/metrics/routing-overrides.json 2>/dev/null || echo "No adaptive routing rules active."

Recent skill usage: !cat .rune/metrics/skills.json 2>/dev/null | head -20 || echo "No metrics collected yet."

skill-router

Purpose

The missing enforcement layer for Rune. While individual skills have HARD-GATEs and constraints, nothing forces the agent to check for the right skill before acting. skill-router fixes this by intercepting every user request and routing it through the correct skill(s) before any code is written, any file is read, or any clarifying question is asked.

This is L0 — it sits above L1 orchestrators. It doesn't do work itself; it ensures the right skill does the work.

Triggers

  • ALWAYS — This skill is conceptually active on every user message
  • Loaded via system prompt or plugin description, not invoked manually
  • The agent MUST internalize this routing table and apply it before every response

Calls (outbound connections)

  • Any skill (L1-L3): routes to the correct skill based on intent detection

Called By (inbound connections)

  • None — this is the entry point. Nothing calls skill-router; it IS the first check.

Workflow

Step 0 — Check Routing Overrides (H3 Adaptive Routing)

Before standard routing, check if adaptive routing rules exist:

  1. Use Read on .rune/metrics/routing-overrides.json
  2. If the file exists and has active rules, scan each rule's condition against the current user intent
  3. If a rule matches:
    • Apply the override action (e.g., "route to problem-solver before debug")
    • Log: "Adaptive routing: applying rule [id] — [action]"
  4. If no file exists or no rules match, proceed to standard routing (Step 1)

Override constraints:

  • Overrides MUST NOT bypass layer discipline (L3 cannot call L1)
  • Overrides MUST NOT skip quality gates (sentinel, preflight, verification)
  • Overrides MUST NOT route to non-existent skills
  • If an override seems wrong, announce it and let user decide to keep or disable

Model hint support (Adaptive Model Re-balancing):

  • Override entries may include "model_hint": "opus" — this signals that a skill previously failed at sonnet-level and needed opus reasoning depth
  • When a model_hint is present, announce: "Adaptive routing: this skill previously required opus-level reasoning for [context]. Escalating model."
  • Model hints are written by cook Phase 8 when debug-fix loops hit max retries on the same error pattern
  • Model hints do NOT override explicit user model preferences

Context Efficiency (Trigger-Table Pattern)

Skill-router's routing table above IS the trigger table — it maps keywords to skill paths without loading any skill content. Skills are loaded on-demand via the Skill tool only when routed. This keeps baseline context usage minimal.

Rules for context efficiency:

  • NEVER read a SKILL.md to decide routing — use the routing table keywords
  • NEVER load multiple skills speculatively — route to ONE, let it chain if needed
  • Skill content is loaded by the Skill tool, not by skill-router reading files

Step 0.25 — Request Classifier (Fast-Path Filter)

Before intent classification, categorize the request into one of 5 types. This determines the enforcement level — how strictly routing must be followed.

Request TypeKeywords / SignalsEnforcementAction
CODE_CHANGE"build", "implement", "add", "create", "fix", "refactor", "update code"FULLcook mandatory, no exceptions
QUESTION"what is", "how does", "explain", "why"LITECheck if a skill has domain knowledge first; answer directly if no skill matches
DEBUG_REQUEST"error", "bug", "not working", "broken", "crash", "fails"FULLdebug skill mandatory
REVIEW_REQUEST"review", "check", "audit", "look at this code"FULLreview skill mandatory
EXPLORE"find", "search", "where is", "show me", "list"LITEscout if codebase-related; answer directly if general

Enforcement levels:

  • FULL → MUST route through a skill. Writing code without skill invocation = protocol violation.
  • LITE → SHOULD check if a skill applies. Can answer directly if no skill matches and the response involves no code changes.

Escape hatch: If request is clearly trivial (< 5 LOC change, single-line fix, user says "just do it"), classify as CODE_CHANGE but cook activates Fast Mode automatically.

Step 0.3 — Skill Discovery (/rune list)

If user says /rune list, "what skills do I have", "show all skills", "available skills", or "what can rune do":

  1. Scan installed skills: Glob for skills/*/skill.md (core L0-L3) and extensions/*/PACK.md (L4 packs)
  2. Scan paid extensions: Glob for extensions/pro-*/PACK.md (Pro/Business packs — only present if purchased)
  3. Output the catalog grouped by tier:
## Rune Skills Catalog

### Core Skills (L0-L3) — Always Available
| Skill | Layer | Description |
|-------|-------|-------------|
(list each skill from skills/*/skill.md — read name + description from frontmatter)

### Extension Packs (L4) — Domain Knowledge
| Pack | Skills | Trigger |
|------|--------|---------|
(list each pack from extensions/*/PACK.md — read name + skill count + trigger commands)

### Pro/Business Packs (if installed)
| Pack | Skills | Trigger |
|------|--------|---------|
(list each pack from extensions/pro-*/PACK.md)
  1. Tip line at bottom: "Use /rune <pack> <skill> to invoke any skill directly. Use /rune <pack> for the full pack workflow."

Filtering: /rune list <query> filters by name or domain keyword (e.g., /rune list finance shows only finance-related skills).

Step 0.5 — STOP before responding

Before generating ANY response (including clarifying questions), the agent MUST:

  1. Check the request type from Step 0.25 — if FULL enforcement, routing is mandatory
  2. Classify the user's intent using the routing table below
  3. Identify which skill(s) match — if even 1% chance a skill applies, invoke it
  4. Invoke the skill via the Skill tool
  5. Follow the skill's instructions — the skill dictates the workflow, not the agent

Step 1 — Intent Classification (Progressive Disclosure)

Skills are organized into 3 tiers for discoverability. Tier 1 skills handle 90% of user requests.

Tier 1 — Primary Entry Points (User-Facing)

These 5 skills are the main interface. Most user intents route here first:

User IntentRoute ToWhen
Build / implement / add feature / fix bugrune:cookAny code change request
Large multi-part task / parallel workrune:team5+ files or 3+ modules
Deploy + launch + marketingrune:launchShip to production
Legacy code / rescue / modernizerune:rescueOld/messy codebase
Check project health / full auditrune:auditQuality assessment
New project / bootstrap / scaffoldrune:scaffoldGreenfield project creation
Auto / autopilot / autonomous / "do it all" / "làm hết" / "đi ngủ"rune:autopilot ⚡ProAutonomous multi-session execution (requires approved plan + Pro tier installed)

Default route: If unclear, route to rune:cook. Cook handles 70% of all requests.

Pro skill note: rune:autopilot requires @rune-pro installed. If not available, fall back to rune:cook with the approved plan and inform user that autopilot is a Pro feature.

Tier 2 — Power User Skills (Direct Invocation)

For users who know exactly what they want:

User IntentRoute ToPriority
Plan / design / architectrune:planL2 — requires opus
Brainstorm / explore ideasrune:brainstormL2 — before plan
Review code / check qualityrune:reviewL2
Write testsrune:testL2 — TDD
Refactorrune:surgeonL2 — incremental
Deploy (without marketing)rune:deployL2
Security concernrune:sentinelL2 — opus for critical
Performance issuerune:perfL2
Database changerune:dbL2
Received code review / PR feedbackrune:review-intakeL2
Protect / audit / document business logicrune:logic-guardianL2
Create / edit a Rune skillrune:skill-forgeL2 — requires opus
Incident / outagerune:incidentL2
UI/UX designrune:designL2
Fix bug / debug only (no fix)rune:debug → rune:fixL2 chain
Marketing assets onlyrune:marketingL2
Gather requirements / BA / elicit needsrune:baL2 — requires opus
"Did it fully implement?" / "does code match spec?" / check completenessrune:convergeL3 — needs requirements.md
Generate / update docsrune:docsL2
Build MCP serverrune:mcp-builderL2
Red-team / challenge a plan / stress-testrune:adversaryL2 — requires opus
Tier 3 — Internal Skills (Called by Other Skills)

These are rarely invoked directly — they're called by Tier 1/2 skills:

SkillCalled ByPurpose
rune:scoutcook, plan, teamCodebase scanning
rune:fixdebug, cookApply code changes
rune:preflightcookQuality gate
rune:verificationcook, fixRun lint/test/build
rune:hallucination-guardcook, fixVerify imports
rune:completion-gatecookValidate claims
rune:convergecookSpec↔code gap scan (Phase 6.5)
rune:sentinel-envcook, scaffold, onboardEnvironment pre-flight
rune:research / rune:docs-seekeranyLook up docs
rune:session-bridgecook, teamSave context (in-session state handoff)
rune:journalcook, teamPersistent work log within a session
rune:neural-memorycook, team, any L1/L2Cross-session cognitive persistence via Neural Memory MCP — semantic complement to session-bridge and journal
rune:gitcook, scaffold, team, launchSemantic commits, PRs, branches
rune:doc-processordocs, marketingPDF/DOCX/XLSX/PPTX generation
"Done" / "ship it" / "xong"—rune:verification → commit
"recall", "remember", "brain", "nmem", "cross-project memory"rune:neural-memoryRetrieve or persist cross-session context
Tier 4 — Domain Extension Packs (L4)

When user intent matches a domain-specific pattern or user explicitly invokes an L4 trigger command, route to the L4 pack.

Split pack loading (context-efficient): First Read the pack's PACK.md index. If the index contains format: split in its frontmatter metadata, it is a split pack — the index lists skills in a table but skill content lives in separate files under skills/. Match user intent to the specific skill name in the table, then Read only that skill file (e.g., extensions/backend/skills/api-design.md). This loads ~100-200 lines instead of ~1000+.

Monolith pack loading (legacy): If no format: split marker, the PACK.md contains all skills inline — read it fully and extract the matching ### skill-name section.

User Intent / Domain SignalRoute ToPack File
Frontend UI, design system, a11y, animation@rune/uiextensions/ui/PACK.md
API design, auth, middleware, rate limiting@rune/backendextensions/backend/PACK.md
Docker, CI/CD, monitoring, server setup@rune/devopsextensions/devops/PACK.md
React Native, Flutter, mobile app, app store@rune/mobileextensions/mobile/PACK.md
OWASP, pentest, secrets, compliance@rune/securityextensions/security/PACK.md
Trading, fintech, charts, market data@rune/tradingextensions/trading/PACK.md
Multi-tenant, billing, SaaS subscription@rune/saasextensions/saas/PACK.md
Shopify, payments, cart, inventory@rune/ecommerceextensions/ecommerce/PACK.md
LLM, RAG, embeddings, fine-tuning@rune/ai-mlextensions/ai-ml/PACK.md
Three.js, WebGL, game loop, physics@rune/gamedevextensions/gamedev/PACK.md
Blog, CMS, MDX, i18n, SEO@rune/contentextensions/content/PACK.md
Analytics, A/B testing, funnels, dashboards@rune/analyticsextensions/analytics/PACK.md
Chrome extension, manifest, service worker@rune/chrome-extextensions/chrome-ext/PACK.md
PRD, roadmap, KPI, release notes, product spec@rune-pro/productextensions/pro-product/PACK.md
Sales outreach, pipeline, call prep, prospecting@rune-pro/salesextensions/pro-sales/PACK.md
Data science, SQL, dashboards, statistical analysis@rune-pro/data-scienceextensions/pro-data-science/PACK.md
Support tickets, KB, escalation, SLA tracking@rune-pro/supportextensions/pro-support/PACK.md
Budget, expense, revenue forecast, P&L, cash flow@rune-pro/financeextensions/pro-finance/PACK.md
Contract review, NDA, compliance, GDPR, IP audit@rune-pro/legalextensions/pro-legal/PACK.md

L4 routing rules:

  1. If user explicitly invokes an L4 trigger (e.g., /rune rag-patterns), read the PACK.md index first, then load only the matching skill file (split packs) or extract the matching section (monolith packs)
  2. If the intent also involves implementation, route to cook (L1) first — cook will detect L4 context in Phase 1.5
  3. L4 packs supplement L1/L2 workflows — they are domain knowledge, not standalone orchestrators
  4. L4 packs can call L3 utilities (scout, verification) but CANNOT call L1 or L2 skills
  5. If the L4 pack file is not found on disk, skip silently and proceed with standard routing
  6. NEVER load an entire split pack — always load index first, then only the specific skill file needed

Step 1.5 — File Ownership Matrix (Constraint Inheritance)

When the routed skill produces file changes, the owner skill's constraints apply to those files — even if a different skill (e.g., cook) is the orchestrator.

File PatternOwner SkillConstraints Applied
*.test.*, *.spec.*, __tests__/rune:testTest patterns, assertions, no test.skip, coverage rules
migrations/, schema.*, *.prismarune:dbMigration safety, rollback script, parameterized queries
Dockerfile, *.yml (CI/CD), terraform/rune:deployDeployment checklist, no hardcoded secrets
docs/*.md, README.md, CHANGELOG.mdrune:docsDocumentation patterns, no stale references
SKILL.md, PACK.mdrune:skill-forgeSkill template compliance, frontmatter validation
.env*, *secret*, *credential*rune:sentinelSecurity scan mandatory, never commit secrets
*.css, *.scss, tailwind.config.*@rune/uiDesign system patterns (if L4 pack installed)

Ownership rules:

  1. Ownership = constraints apply, NOT exclusive access. cook can modify test files during Phase 4 as long as test constraints are honored.
  2. If a file matches multiple patterns, ALL matching constraints apply (union, not exclusive).
  3. If no pattern matches, the routed skill's own constraints apply (default behavior).
  4. File ownership is checked DURING implementation, not at routing time — it augments, not replaces, skill routing.

Step 2 — Compound Intent Resolution

Many requests combine intents. Route to the HIGHEST-PRIORITY skill first:

Priority: L1 > L2 > L3
Within same layer: process skills > implementation skills

Example: "Add auth and deploy it"
  → rune:cook (add auth) FIRST
  → rune:deploy SECOND (after cook completes)

Example: "Fix the login bug and add tests"
  → rune:debug (diagnose) FIRST
  → rune:fix (apply fix) SECOND
  → rune:test (add tests) THIRD

L4 integration: If cook is the primary route AND a domain pack matches,
cook handles orchestration while the L4 pack provides domain patterns.
Both are active — cook for workflow, L4 for domain knowledge.

Step 3 — Anti-Rationalization Gate

The agent MUST NOT bypass routing with these excuses:

ThoughtRealityAction
"This is too simple for a skill"Simple tasks still benefit from structureRoute it
"I already know how to do this"Skills have constraints you'll missRoute it
"Let me just read the file first"Skills tell you HOW to readRoute first
"I need more context before routing"Route first, skill will gather contextRoute it
"The user just wants a quick answer"Quick answers can still be wrongCheck routing table
"No skill matches exactly"Pick closest match, or use scout + planRoute it
"I'll apply the skill patterns mentally"Mental application misses constraintsActually invoke it
"This is just a follow-up"Follow-ups can change intentRe-check routing

Step 4 — Execute

Once routed:

  1. Announce: "Using rune:<skill> to [purpose]"
  2. Invoke the skill via Skill tool
  3. Follow the skill's workflow exactly
  4. If the skill has a checklist/phases, track via TodoWrite

Step 5 — Post-Completion Neural Memory Capture

After ANY L1 or L2 workflow completes (cook, team, launch, rescue, scaffold, plan, design, debug, fix, review, deploy, sentinel, perf, db, ba, docs, mcp-builder, etc.):

  1. Trigger rune:neural-memory in Capture Mode automatically
  2. Save 2–5 memories covering: key decisions made, bugs fixed, patterns applied, architectural choices
  3. Use rich cognitive language (causal, temporal, decisional) — NOT flat facts
  4. Tag memories with [project-name, skill-used, topic]
  5. This step is MANDATORY even if the user did not ask for it
  6. Exception: skip if the workflow produced zero technical output (e.g., only a clarifying question was asked)

Capture Mode trigger phrase: "Session artifact — capturing to Neural Memory."

Routing Exceptions

These DO NOT need skill routing:

  • Pure conversational responses ("hello", "thanks")
  • Answering questions about Rune itself (meta-questions)
  • Single-line factual answers with no code impact
  • Resuming an already-active skill workflow

Proactive Skill Recommendations (One-Hop Max)

At the end of a skill's workflow, skill-router MAY suggest a complementary skill — limited to ONE recommendation to prevent infinite referral chains.

Chain Metadata Awareness (Priority Source)

When a previous skill's output contains a chain_metadata block in the conversation context, skill-router MUST use it as the PRIMARY source for next-skill suggestions:

  1. Read chain_metadata.suggested_next — these are data-driven recommendations from the skill that just ran. They have MORE context than the hardcoded table below.
  2. Read chain_metadata.status — override suggestion logic based on outcome:
    • BLOCKED → suggest debug or fix regardless of what the hardcoded table says
    • NEEDS_CONTEXT → suggest scout or research
    • DONE_WITH_CONCERNS → suggest review or sentinel
  3. Read chain_metadata.domain — trigger L4 pack auto-suggest (see below)
  4. Forward chain_metadata.exports — when announcing the suggestion, mention what data is available: "Review can use the 5 changed files and test results from cook."

Conflict resolution: If chain_metadata.suggested_next recommends skill A but the hardcoded table below recommends skill B, prefer chain_metadata — it was generated from actual output data, not generic rules.

Announcement format with chain_metadata:

Suggested next: `rune:<skill>` — <chain_metadata.suggested_next.reason>
Available data: <list of export keys the suggested skill would consume>
Run it? (skip to continue)

Hardcoded Fallback Table

When NO chain_metadata is present (skill didn't emit one, or legacy invocation), fall back to this static table:

After This SkillSuggestRationale
debugfixRoot cause found — apply the fix
fixtestCode changed — verify with tests
planadversaryPlan created — stress-test before implementation
test (GREEN)preflightTests pass — check for edge cases and completeness
review (issues found)fixIssues identified — apply fixes
sentinel (findings)fixSecurity issues — remediate
L4 Extension Auto-Suggest (Domain Context Detection)

When routing a request through L1/L2 skills, skill-router SHOULD detect domain signals and suggest relevant L4 packs the user may not know they have:

Domain Signal DetectedSuggest PackAnnouncement
Financial terms (budget, revenue, P&L, runway, cash flow)@rune-pro/finance"You have @rune-pro/finance with 7 specialized skills. Use /rune finance to access."
Legal terms (contract, NDA, compliance, GDPR, IP)@rune-pro/legal"You have @rune-pro/legal with 6 specialized skills. Use /rune legal to access."
HR terms (hiring, JD, interview, onboarding, comp)@rune-pro/hr"You have @rune-pro/hr with 7 specialized skills. Use /rune hr to access."
Product terms (PRD, roadmap, KPI, release notes)@rune-pro/product"You have @rune-pro/product with 6 specialized skills. Use /rune product to access."
Sales terms (pipeline, outreach, prospecting)@rune-pro/sales"You have @rune-pro/sales with 6 specialized skills. Use /rune sales to access."
Data terms (SQL, dashboard, statistical, ML eval)@rune-pro/data-science"You have @rune-pro/data-science with 7 specialized skills. Use /rune data to access."
Support terms (ticket, KB, escalation, SLA)@rune-pro/support"You have @rune-pro/support with 6 specialized skills. Use /rune support to access."
Search terms (enterprise search, knowledge graph)@rune-pro/enterprise-search"You have @rune-pro/enterprise-search with 6 specialized skills. Use /rune search to access."

Auto-suggest rules:

  1. Only suggest if the pack's PACK.md exists on disk — Glob for the pack path first. If not installed, skip silently.
  2. Suggest ONCE per session per pack — do not repeat after user has seen the suggestion.
  3. Format: brief inline note, not a blocking prompt. User can ignore and continue.
  4. If user is already inside the pack's workflow, do not re-suggest.

Rules:

  • Hard limit: 1 hop. NEVER chain recommendations (fix→test→preflight→...). Suggest ONE, let the user decide.
  • Announcement format: "Suggested next: rune:<skill> — [1-line reason]. Run it? (skip to continue)"
  • User can disable with "no suggestions" or "just do what I asked"
  • Inside cook orchestration: skip recommendations — cook already manages transitions

Output Format

Routing Proof (Required in Every Code Response)

Every response that involves code changes MUST begin with a routing proof line:

> Routed: rune:<skill> | Type: CODE_CHANGE | Confidence: HIGH

This is NOT optional formatting. It is evidence that routing occurred. If this line is missing from a code response, the response violated skill-router compliance. For LITE enforcement (QUESTION, EXPLORE), the proof line is optional.

Full Routing Decision (when announcing route)

## Routing Decision
- **Intent**: [classified user intent]
- **Type**: CODE_CHANGE | QUESTION | DEBUG_REQUEST | REVIEW_REQUEST | EXPLORE
- **Skill**: rune:[skill-name]
- **Confidence**: HIGH | MEDIUM | LOW
- **Override**: [routing override applied, if any]
- **Reason**: [one-line justification for skill selection]

For multi-skill chains:

## Routing Chain
1. rune:[skill-1] — [purpose]
2. rune:[skill-2] — [purpose]
3. rune:[skill-3] — [purpose]

Constraints

  1. MUST check routing table before EVERY response that involves code, files, or technical decisions
  2. MUST invoke skill via Skill tool — "mentally applying" a skill is NOT acceptable
  3. MUST NOT write code without routing through at least one skill first
  4. MUST NOT skip routing because "it's faster" — speed without correctness wastes more time
  5. MUST re-route on intent change — if user shifts from "plan" to "implement", switch skills
  6. MUST announce which skill is being used and why — transparency builds trust
  7. MUST follow skill's internal workflow, not override it with own judgment

Sharp Edges

Failure ModeSeverityMitigation
Agent writes code without invoking any skillCRITICALConstraint 3: code REQUIRES skill routing. No exceptions.
Agent "mentally applies" skill without invokingHIGHConstraint 2: must use Skill tool for full content
Routes to wrong skill, wastes a full workflowMEDIUMStep 2 compound resolution + re-route on mismatch
Over-routing trivial tasks (e.g., "what time is it")LOWRouting Exceptions section covers non-technical queries
Skill invocation adds latency to simple tasksLOWAcceptable trade-off: correctness > speed

Done When

  • This skill is never "done" — it's a persistent routing layer
  • Success = every agent response passes through routing check
  • Failure = any code written without skill invocation

Self-Verification Trigger (MANDATORY)

  1. Did I classify this request? (Step 0.25 — what type is it?)
  2. Did I route through a skill? (Step 1-2 — which skill handles this?)
  3. Am I about to write code without a skill invocation? → STOP. Route first.

If the request type is CODE_CHANGE or DEBUG_REQUEST (FULL enforcement) and ANY answer is "no": → DO NOT RESPOND. Complete routing first.

If the request type is QUESTION or EXPLORE (LITE enforcement): → Check if a skill has relevant domain knowledge. If yes, route. If no, respond directly.

User override: If user explicitly says "skip routing", "just write it", "no process" → respect the override. Log: "User override: routing skipped per explicit request."

Cost Profile

~0 tokens (routing logic is internalized from this document). Cost comes from the skills it routes to, not from skill-router itself. The routing table is loaded once and cached in context.

よくある質問

AIスキル「Skill Router」では何ができますか?

Meta-enforcement layer that routes EVERY agent action through the correct skill. MUST check this routing table before ANY response involving code, files, or technical decisions. Default: route to rune:cook for code tasks. Prevents rationalization, enforces check-before-act discipline.

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

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

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

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

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

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

Skill Routerで使えるAIモデルの数に制限はありますか?

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

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

はい。Rune-kitがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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