knowledge-router
Skill97 starsChanged 32 days agoApache-2.0View on GitHub
Route one question or source event through a supplied knowledge catalog to validated source, owner, escalation, and follow-up skill references. Use for evidence discovery and ownership routing, not broad business-action fanout or answering the question itself.
In this repository94 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- runxSkill
- adopt-skillSkill
- agencySkill
- answer-from-docsSkill
- attention-reviewSkill
- audit-receiptSkill
- brand-voiceSkill
- business-opsSkill
- chargeSkill
- chief-of-staffSkill
- cold-outreachSkill
- content-pipelineSkill
- contract-drafterSkill
- conversation-replySkill
- conversation-reviewSkill
- crm-cleanupSkill
- cve-auditSkill
- data-storeSkill
- data-subject-requestSkill
- deep-researchSkill
- diagnose-skill-runSkill
- dispute-respondSkill
- ecosystem-briefSkill
- extractSkill
- ghostwriteSkill
- github-pr-commentSkill
- github-pr-reviewSkill
- github-syncSkill
- google-analyticsSkill
- google-calendarSkill
- google-search-consoleSkill
- governed-outboundSkill
- helpdeskSkill
- incident-commanderSkill
- issue-intakeSkill
- issue-to-prSkill
- issue-triageSkill
- lead-enrichmentSkill
- lead-qualifySkill
- least-privilegeSkill
- ledgerSkill
- list-hygiene-judgeSkill
- marketplace-invokeSkill
- meeting-followupSkill
- mock-chargeSkill
- mock-paySkill
- mock-refundSkill
- moltbookSkill
- n8n-handoffSkill
- nitrosendSkill
- nws-weather-forecastSkill
- open-meteo-weather-forecastSkill
- operator-inboxSkill
- ops-deskSkill
- organic-growthSkill
- policy-authorSkill
- postmortem-makerSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Every selected reference must exist in the corresponding catalog collection.
- Very specific: line 45
Use manual_review for consequential legal, billing, security, privacy, or destructive decisions—not merely because the topic belongs to …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Knowledge Router
Produce a validated retrieval and ownership route from a bounded source catalog. This skill decides where evidence should come from and who owns the answer; it does not answer the question or perform the follow-up operation.
business-ops routes a business signal across action lanes such as release,
outreach, spend, and proof. knowledge-router instead resolves references
inside an explicit knowledge catalog. Its deterministic validator rejects
invented sources, owners, and skills.
Source catalog
Supply:
{
"sources": [
{"id": "auth-docs", "kind": "docs", "summary": "API authentication and key scopes"}
],
"owners": [
{"id": "security-team", "domains": ["authentication"]}
],
"skills": [
{"id": "research", "purpose": "Resolve a bounded source-backed question"}
]
}Every selected reference must exist in the corresponding catalog collection. The route may return no follow-up skill when more context or manual review is the honest outcome.
Procedure
- Match the question or event to supplied source summaries and owner domains.
- Propose the smallest source set needed to resolve the question.
- Select an owner only when the catalog supports the ownership relationship.
- Select a follow-up skill only when its declared purpose matches the next job.
- Use
manual_reviewfor consequential legal, billing, security, privacy, or destructive decisions—not merely because the topic belongs to those teams. - Validate every source, owner, and skill reference deterministically.
- Return
needs_more_contextwhen no supported route exists.
Output
route: domain, rationale, and validated source references.source_matches: validated source references and matching signals.owner_recommendation: validated owner reference, rationale, and escalation posture, ornull.next_skill: validated skill reference and rationale, ornull.verdict:routed,needs_more_context,manual_review, or the deterministic validator'srefusedresult for an invented reference.validation: catalog digest inputs, invalid-reference findings, and result.
Inputs
question(required): question, event, or thread summary to route.available_sources(required): explicitsources,owners, andskillscollections.constraints(optional): allowed sources, sensitivity, excluded systems, or preferred owners. Constraints are not authority.
Agent task contracts
knowledge-router-propose
Route the question through only the supplied knowledge catalog. Return route_proposal with verdict, route, source_matches, owner_recommendation, and next_skill. Every selected source_ref, owner_ref, and skill_ref must exactly match a supplied id. Choose the smallest useful source set. Use needs_more_context with no selected refs when the catalog cannot support a route. Use manual_review for consequential legal, billing, security, privacy, or destructive decisions, not merely because the topic belongs to those domains. Do not answer the question or perform the follow-up skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

