---
name: php186-skill-20128
description: "在现有的知识来源（如 MEMORY.md、日常记忆文件、自我改进笔记、技能参考和审计等）上构建轻量级路由层。"
---

# Knowledge Router

## Knowledge Router

 

Route queries to the right knowledge layer before doing broad reading.

 

## Core workflow

 

1. Scan known knowledge sources and classify them by role.
2. Infer the query intent: rule, fact, method, evidence, or improvement.
3. Recommend primary and secondary sources.
4. Emit promotion hints when knowledge seems mature enough to move upward into a more durable layer.

 

## Read references as needed

 

- Read ` references/source-types.md ` for the knowledge source model.
- Read ` references/routing-rules.md ` for intent-to-source routing rules.
- Read ` references/promotion-rules.md ` for when knowledge should be promoted or extracted.
- Read ` references/report-format.md ` for the report structure.
- Read ` references/release-minimal.md ` before packaging or publishing so the first public surface stays minimal.

 

## Use scripts as needed

 

- Use ` scripts/knowledge_router.py "<query>" [--scope ...] [--output report.txt] ` to build a routing report.

 

## Operating rules

 

- Prefer routing over re-storing knowledge.
- Prefer a small number of clearly justified sources over broad search noise.
- Treat audit logs as evidence, not as the first answer source for general method questions.
- Keep the first version focused on source typing, query intent, and recommendation quality.
