router
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseKinhluan Skill Router
Kinhluan Skill 路由器
Dispatch to the correct kinhluan-skill using 3-layer cascade.
通过三层级联机制将请求分发至正确的kinhluan-skill。
Layer 1: Hook Hint (auto)
第一层:钩子提示(自动触发)
Check if hint appeared in context (UserPromptSubmit hook output).
If yes: use the suggested skill directly.
[skill-router]检查上下文(UserPromptSubmit钩子输出)中是否出现提示。
如果出现:直接使用建议的技能。
[skill-router]Layer 2: Memory Recall
第二层:记忆召回
Invoke: memory-recall
Query: "kinhluan skill routing [topic keywords from user message]"If memory returns a routing pattern → use it.
Invoke: memory-recall
Query: "kinhluan skill routing [topic keywords from user message]"如果记忆返回路由模式 → 使用该模式。
Layer 3: Intent Matching
第三层:意图匹配
Map user intent → skill:
将用户意图映射至对应技能:
Research Track
研究领域
| Intent | Skill |
|---|---|
| Find papers, survey field | |
| Write research question | |
| Design experiment | |
| Write paper/chapter | |
| PhD thesis defense | |
| Write PhD proposal | |
| Track experiments | |
| Self-review paper | |
| Track milestones/deadlines | |
| Choose publication venue | |
| 意图 | 技能 |
|---|---|
| 查找论文、调研领域 | |
| 撰写研究问题 | |
| 设计实验 | |
| 撰写论文/章节 | |
| 博士论文答辩准备 | |
| 撰写博士研究计划 | |
| 跟踪实验进度 | |
| 论文自我评审 | |
| 跟踪里程碑/截止日期 | |
| 选择发表期刊/会议 | |
Architecture Track
架构领域
| Intent | Skill |
|---|---|
| C4 overview (which level?) | |
| System context diagram | |
| Container/service diagram | |
| Component/internal diagram | |
| Class/ER diagram | |
| Architecture decision | |
| Evolutionary/fitness functions | |
| 意图 | 技能 |
|---|---|
| C4概览(对应哪个层级?) | |
| 系统上下文图 | |
| 容器/服务图 | |
| 组件/内部结构图 | |
| 类图/ER图 | |
| 架构决策记录 | |
| 演化架构/适配度函数 | |
DDD Track
DDD领域
| Intent | Skill |
|---|---|
| Strategic DDD, bounded context | |
| Aggregate, entity, value object | |
| CQRS, event sourcing, saga | |
| 意图 | 技能 |
|---|---|
| 战略级DDD、限界上下文 | |
| 聚合根、实体、值对象 | |
| CQRS、事件溯源、Saga模式 | |
DevOps Track
DevOps领域
| Intent | Skill |
|---|---|
| Docker, Dockerfile | |
| Kubernetes, k8s | |
| DORA metrics, delivery | |
| 意图 | 技能 |
|---|---|
| Docker、Dockerfile | |
| Kubernetes、k8s | |
| DORA指标、交付效率 | |
Strategy Track
战略规划领域
| Intent | Skill |
|---|---|
| Validate problem/demand | |
| Why build this? | |
| JTBD, product strategy | |
| Release tracking, diffusion | |
| Competitive strategy | |
| 意图 | 技能 |
|---|---|
| 验证问题/需求 | |
| 为何开发该产品? | |
| JTBD、产品战略 | |
| 发布跟踪、扩散管理 | |
| 竞争战略 | |
ML Track
机器学习领域
| Intent | Skill |
|---|---|
| Federated learning + DQN | |
| Scheduling algorithms, MLFQ | |
| 意图 | 技能 |
|---|---|
| 联邦学习+DQN | |
| 调度算法、MLFQ | |
Writing Track
写作领域
| Intent | Skill |
|---|---|
| Vietnamese CS terms | |
| Technical English, IEEE/ACM | |
| Vietnamese writing standards | |
| 意图 | 技能 |
|---|---|
| 越南语计算机科学术语 | |
| 技术英语、IEEE/ACM规范 | |
| 越南语写作规范 | |
Browser / Web Track
浏览器/网页领域
| Intent | Skill |
|---|---|
| Chrome Extension, browser automation | |
| Web scraping, data extraction | |
| Playwright / Puppeteer / CDP | |
| Form filling, UI automation | |
| 意图 | 技能 |
|---|---|
| Chrome扩展、浏览器自动化 | |
| 网页爬取、数据提取 | |
| Playwright/Puppeteer/CDP | |
| 表单填充、UI自动化 | |
Dev Track
开发领域
| Intent | Skill |
|---|---|
| Python project setup | |
| TypeScript/JavaScript | |
| Security audit | |
| 意图 | 技能 |
|---|---|
| Python项目搭建 | |
| TypeScript/JavaScript | |
| 安全审计 | |
Dispatch Protocol
分发协议
- Identify matched skill from above table
- Announce: "Using to <purpose>"
<skill> - Invoke:
Skill(<matched-skill>) - Follow skill instructions
- 从上述表格中识别匹配的技能
- 告知用户:“正在使用来完成<目标>”
<skill> - 调用:
Skill(<matched-skill>) - 遵循该技能的操作指引
Memory Integration
记忆集成
After completing a routed task:
- If routing was non-obvious or user confirmed it worked → trigger
memory-store - Store pattern:
"[user intent keywords] → [skill-name] — worked for [context]" - Future recalls will shortcut Layer 1-3 matching
完成路由任务后:
- 如果路由过程不明确或用户确认任务执行有效 → 触发
memory-store - 存储模式:
"[用户意图关键词] → [技能名称] — 在[上下文]中执行有效" - 后续记忆召回将跳过第一至第三层的匹配流程
When Multiple Skills Match
多技能匹配场景
Pick most specific:
- >
c4-level1-context(more specific wins)c4-model - >
ddd-tactical(if aggregate/entity mentioned)ddd-core - Ask user if genuinely ambiguous (>2 equally valid options)
选择最具体的技能:
- >
c4-level1-context(更具体的技能优先)c4-model - >
ddd-tactical(如果提及聚合根/实体)ddd-core - 如果确实存在歧义(超过2个同等有效的选项),询问用户确认