← Back to Skills Marketplace
Knowledge Router
by
lethehades
· GitHub ↗
· v1.0.0
· MIT-0
237
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install knowledge-router
Description
Build a lightweight routing layer across existing knowledge sources such as MEMORY.md, daily memory files, self-improving notes, skill references, and audit...
README (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.
Usage Guidance
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().
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install knowledge-router - After installation, invoke the skill by name or use
/knowledge-router - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial public release of knowledge-router.
Metadata
Frequently Asked Questions
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 237 downloads so far.
How do I install Knowledge Router?
Run "/install knowledge-router" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Knowledge Router free?
Yes, Knowledge Router is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Knowledge Router support?
Knowledge Router is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Knowledge Router?
It is built and maintained by lethehades (@lethehades); the current version is v1.0.0.
More Skills