← 返回 Skills 市场
Knowledge Router
作者
lethehades
· GitHub ↗
· v1.0.0
· MIT-0
237
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install knowledge-router
功能描述
Build a lightweight routing layer across existing knowledge sources such as MEMORY.md, daily memory files, self-improving notes, skill references, and audit...
使用说明 (SKILL.md)
Knowledge Router
Route queries to the right knowledge layer before doing broad reading.
Core workflow
- Scan known knowledge sources and classify them by role.
- Infer the query intent: rule, fact, method, evidence, or improvement.
- Recommend primary and secondary sources.
- Emit promotion hints when knowledge seems mature enough to move upward into a more durable layer.
Read references as needed
- Read
references/source-types.mdfor the knowledge source model. - Read
references/routing-rules.mdfor intent-to-source routing rules. - Read
references/promotion-rules.mdfor when knowledge should be promoted or extracted. - Read
references/report-format.mdfor the report structure. - Read
references/release-minimal.mdbefore packaging or publishing so the first public surface stays minimal.
Use scripts as needed
- Use
scripts/knowledge_router.py "\x3Cquery>" [--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.
安全使用建议
Before installing or running this skill: review the included scripts/knowledge_router.py and the references (they are bundled) to confirm the exact paths it reads. The tool scans your workspace files and ~/self-improving and prints small previews of files (first ~12 lines) in the generated report — so any sensitive content in those locations could appear in the report. There are no network calls or credential requests, and no installation downloads. To limit exposure, run with a restrictive --scope (e.g., memory-only, skills-only, audit-only) or in an isolated workspace, and choose an output path you control. If you do not want any home-directory access, remove or relocate the ~/self-improving files or edit the script to skip Path.home().
功能分析
Type: OpenClaw Skill
Name: knowledge-router
Version: 1.0.0
The knowledge-router skill is a legitimate utility designed to help an AI agent navigate its own memory and audit logs. The core logic in `scripts/knowledge_router.py` scans local workspace directories and the user's home directory for specific knowledge sources (e.g., MEMORY.md, audit logs, and self-improvement notes) to generate a routing report based on query intent. There is no evidence of data exfiltration, malicious execution, or prompt injection; the script's file access is limited to reading previews of local markdown and JSONL files to assist with internal information retrieval.
能力评估
Purpose & Capability
Name/description match the actual behavior: the code and docs scan workspace knowledge files (MEMORY.md, memory/*.md, skills/*, logs/audit/*) and a self-improving directory in the user's home to classify and rank sources. The files accessed are coherent with the stated purpose of routing queries across knowledge layers.
Instruction Scope
SKILL.md and README describe scanning the listed knowledge sources and using scripts/knowledge_router.py. The runtime script reads file previews (first ~12 lines) from workspace paths and from Path.home()/self-improving. This is within scope but has privacy implications because it reads local files (including audit logs and any files under the stated paths) and surfaces their previews in the report.
Install Mechanism
There is no install spec and no network/download/install behavior. The skill is instruction-plus-script only, so it does not write or execute remote code during installation.
Credentials
The skill requests no environment variables or credentials. However, it reads files from the workspace and from the user's home (~/'self-improving'), but the registry metadata lists no required config paths — a small mismatch in declared config requirements versus actual file reads. No secrets are requested or transmitted by the code.
Persistence & Privilege
always is false and the skill does not attempt to modify other skills or system-wide config. It can write an output report to a user-specified path (creates parent dirs if needed), which is expected for this utility.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install knowledge-router - 安装完成后,直接呼叫该 Skill 的名称或使用
/knowledge-router触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial public release of knowledge-router.
元数据
常见问题
Knowledge Router 是什么?
Build a lightweight routing layer across existing knowledge sources such as MEMORY.md, daily memory files, self-improving notes, skill references, and audit... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 237 次。
如何安装 Knowledge Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install knowledge-router」即可一键安装,无需额外配置。
Knowledge Router 是免费的吗?
是的,Knowledge Router 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Knowledge Router 支持哪些平台?
Knowledge Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Knowledge Router?
由 lethehades(@lethehades)开发并维护,当前版本 v1.0.0。
推荐 Skills