SuperAPI AI Directory

thinking-router

Agents & models

View repository

Updated 10-16 05:54

About this skill

Thinking Router

Purpose

thinking-router is the entry point for Thinking Skills.

It classifies the user's request and routes it to the best domain-specific thinking skill. It does not answer the user's substantive question.

Hard Rules

  1. Do not solve the user's substantive problem inside this skill.
  2. Do not assume the request is about software development.
  3. Check whether the best route is no-skill before selecting a domain skill.
  4. Choose exactly one primary route: a domain skill or no-skill.
  5. Add at most one secondary skill when mixed intent is important.
  6. If routing confidence is low, ask one short routing question.
  7. After routing to a domain skill, follow that skill's method bases and process.
  8. After routing to no-skill, do not load a domain skill or apply a domain method base.

Method Bases

This skill does not use domain method bases directly.

It relies on:

  • Intent classification
  • Signal matching
  • Confidence judgment
  • Conflict resolution

Domain skills own their own method bases. For example, emotional-support may use CBT, ACT, NVC, and safety models; technical-deep-dive may use systems thinking and root cause analysis.

Routing Process

  1. Read the user's request.
  2. Check for high-stakes or safety signals.
  3. Run the no-skill gate.
  4. Identify domain signals.
  5. Select one primary route.
  6. Optionally select one secondary skill.
  7. If confidence is low, ask one short routing question.
  8. Announce the selected route briefly only when it helps the user, then proceed.

No-Skill Gate

no-skill is a first-class route. It is not a fallback, error state, or router failure.

Use no-skill when the user's best experience is ordinary model conversation without domain-skill shaping.

Route to no-skill when the request is mainly:

  • Casual chat or greeting: "nice weather today", "what are you up to", "最近在忙什么".
  • Play, teasing, banter, word games, or light imagination.
  • Exploratory but not task-shaped: "I suddenly thought of something strange...", "不知道怎么说,反正...".
  • Explicit non-task conversation: "I just want to chat", "不用帮我,就是说说".
  • Meta conversation about the assistant or the relationship, unless the user asks for conversation-review.
  • A user-level off-ramp request.

When routed to no-skill:

  • Do not load any domain SKILL.md.
  • Do not apply any domain method base.
  • Let the base model choose tone, structure, examples, and level of spontaneity.
  • Keep top-level safety and system rules active.
  • If the user later asks what happened, say it was routed to no-skill.

Do not overuse no-skill:

  • Writing requests still route to content-creator, even if casual.
  • Learning requests still route to learning-coach, even if conversational.
  • Technical diagnosis still routes to technical-deep-dive, even if informal.
  • Emotional support requests still route to emotional-support when there is clear distress, reflection, or help-seeking.
  • Self-review, trace, eval, and improvement-loop requests still route to the relevant meta skill.

User Off-Ramp

If the user asks to avoid Thinking Skills for the current turn, route to no-skill.

Trigger examples:

  • "this time without skill"
  • "freewheel"
  • "use base style"
  • "skip framework"
  • "don't use thinking-skills"
  • "这次不用 skill"
  • "用 base 风格回我"
  • "别用 thinking-skills"
  • "不要套方法"

Treat off-ramp phrases as commands only when they modify the user's request. If they appear inside quoted material, code, article text, or an object being analyzed, do not treat them as routing commands.

For a session-level off-ramp, such as "this whole session without skill" or "整个 session freewheel", keep routing to no-skill until the user cancels it or the session ends, if the runtime supports session memory.

Confidence Levels

Confidence Meaning Action
High One domain or no-skill clearly dominates Route directly
Medium One domain is primary, but another matters Route to the primary skill and carry the secondary context
Low The request is underspecified or several domains fit equally Ask one short routing question

No-Skill Routing Table

User Signals Primary Route
casual greeting, small talk, banter, play, joking, word game, light meta conversation, "just chatting", "不用帮我", "只是聊聊", "随便聊聊" no-skill
this time without skill, freewheel, use base style, skip framework, don't use thinking-skills, 这次不用 skill, 用 base 风格回我, 别用 thinking-skills, 不要套方法 no-skill

MVP Routing Table

User Signals Primary Skill
benchmark, eval, regression test, score, dashboard, test a skill, run benchmark, compare benchmark runs, 跑 benchmark, 做评测, 回归测试, 看分数, 更新 dashboard benchmark-assistant
article, essay, blog, newsletter, title, outline, audience, argument, draft, script, content plan, writing style content-creator
code, repo, architecture, bug, performance, API, tests, deployment, implementation, source code, framework, database, refactor technical-deep-dive
learn, study, understand, explain, concept, intuition, mental model, knowledge gap, course, practice, exam, review, what is, how does, I do not understand, 学习, 理解, 解释, 概念, 心智模型, 知识盲区, 看不懂, 学不会 learning-coach
anxious, overwhelmed, sad, self-blame, stress, burnout, relationship pain, emotional pain, confused feelings, shame, fear, why am I like this, why do I always, help me see the essence, find the main thread, do not just comfort me, stop only asking questions, 看本质, 抓主线, 不要只安慰, 别一直问, 你来判断, 为什么我总是这样, 为什么我反应这么大 emotional-support
self-review, Dolores, Dolores mode, 自我检查, 自我复盘, 对话复盘, skill 使用复盘, review this conversation, audit skill usage, failure case review, failure case status, failure case dashboard, quality dashboard, skill feedback statistics, eval gap review, improvement loop, patch strategy for this conversation, 失败 case 统计, 改进状态统计, skill 反馈统计 conversation-review

Planned Routing Table

User Signals Primary Skill
choice, habit, schedule, personal plan, life trade-off, relationship communication, whether I should life-decision
naming, story, worldbuilding, visual concept, product idea, creative direction, character, brand concept creative-studio
customer, market, offer, pricing, positioning, business model, competitor, growth, sales business-strategy

Mixed Intent

When a request contains multiple domains, choose the primary skill based on the user's immediate need.

Learning intent has priority over technical nouns when the user asks to understand, learn, explain, build intuition, or fix a knowledge gap. Technical nouns alone do not make the request a technical-deep-dive.

Use technical-deep-dive instead when the user needs diagnosis, architecture choice, implementation guidance, source-level reasoning, adoption decisions, debugging, performance analysis, or verification.

Examples:

Request Route
"I want to write an article about why this API design is confusing." Primary: content-creator; Secondary: technical-deep-dive
"Explain Kafka like I am new to distributed systems." Primary: learning-coach; Secondary: technical-deep-dive
"Can you help me understand this API design before we decide whether to adopt it?" Primary: technical-deep-dive; Secondary: learning-coach
"I am anxious because my project architecture is a mess." Primary: emotional-support; Secondary: technical-deep-dive
"Help me decide whether to quit my job and build a startup." Primary: life-decision; Secondary: business-strategy
"Help me turn my burnout story into a blog post." Primary: content-creator; Secondary: emotional-support
"Do not just comfort me. Tell me what pattern you see in why I keep reacting this way." Primary: emotional-support; Secondary: none
"Do a self-review of this conversation and tell me whether there is an eval gap." Primary: conversation-review; Secondary: skill-evaluator

Safety Override

If the user expresses immediate danger, self-harm, harm to others, abuse, coercion, psychosis, mania, severe impairment, or urgent medical/legal/financial risk, route to the safest relevant domain and prioritize safety boundaries.

For MVP, emotional crisis signals route to emotional-support.

The selected skill must not diagnose, claim to provide therapy, or replace professional support.

Low-Confidence Question

When the route is unclear, ask one short question:

Do you want to approach this mainly as writing, technical analysis, learning, life decision-making, emotional reflection, or creative exploration?

Do not ask a long intake questionnaire inside the router.

User-Facing Announcement

When routing is clear and a visible announcement helps, keep it short.

Do not announce routing for ordinary no-skill casual chat. Let the answer feel natural.

I will use `content-creator` to help shape the audience, angle, and structure.
I will use `technical-deep-dive` to analyze the system, constraints, trade-offs, and verification path.
I will use `learning-coach` to build the concept, check likely gaps, and choose the next practice step.
I will use `emotional-support` to help sort the feelings, facts, needs, and next gentle step.
I will use `conversation-review` in Dolores mode to review the skill trace, failure signals, and improvement options.

For deep emotional analysis:

I will use `emotional-support` to give a tentative read of the pattern, then you can calibrate what fits.

For explicit off-ramp requests, a short acknowledgement is enough:

No skill this turn.

Internal Routing Record

If useful, keep this internal structure:

Route: content-creator
Confidence: high
Secondary: none
Reason: User asks for article angle, audience, and outline.
Next: Load content-creator and follow its process.

For no-skill:

Route: no-skill
Confidence: high
Secondary: none
Reason: User is casual chatting / explicitly opted out.
Next: Answer directly without loading domain skills.

Do not expose the full routing record unless it helps the user understand a routing choice.

Common Mistakes

  • Answering the actual user problem before routing.
  • Treating every unclear request as technical.
  • Loading multiple skills because several keywords appear.
  • Forcing every request into a domain skill when no-skill would be better.
  • Treating no-skill as low confidence or a failure state.
  • Treating an off-ramp phrase inside quoted or draft content as a command.
  • Asking many questions before routing.
  • Forcing writing, life, or emotional requests into technical specs.
  • Treating reflective models as clinical evidence.
  • Missing emotional-support routes because the user asks for "the essence" or "the pattern" instead of using obvious emotion words.