Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

knowledge-source-router

Skill by microsoft

Routes knowledge requests that name or imply a country through SharePoint Country metadata before searching document content. Intended for assistants answering country-specific questions from a SharePoint library.

  • Score 61
  • 121 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install knowledge-source-router

Built from the published package, never by AI.

git clone --depth 1 https://github.com/microsoft/cat-agent-skills /tmp/cat-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/cat-agent-skills/submissions/knowledge-source-router ~/.claude/skills/knowledge-source-router

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install knowledge-source-router in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Knowledge Source Router is an agent skill that handles knowledge requests that name or imply a country. It treats the Country column in a SharePoint library as document metadata rather than a search term. The skill first discovers the Country values with sharepoint_metadata_filter, then passes every matching document URL to knowledge_search_sharepoint through scopeUrls.

The workflow reads each matching file in full, using a file-type skill to preprocess it, and answers from the combined content. It reports library coverage counts and excluded documents, and cites the ReferenceId of each source used. It applies to SharePoint libraries that track a Country column and stops if that column is absent. Metadata discovery and content search run in sequence, not in parallel.

Written from the project's SKILL.md and checked against it.

What it can do

  • sharepoint_metadata_filterDiscovers the Country column and filters library files by its recorded values.
  • knowledge_search_sharepointSearches only the document URLs passed in scopeUrls for the user's question.
  • Scoped document readingOpens every scoped file and reads it in full before answering.
  • Source citationCites the ReferenceId of each document that contributes to the answer.

What you need

  • A SharePoint library with document metadata
  • Access to sharepoint_metadata_filter and knowledge_search_sharepoint
  • A file-type skill to preprocess documents

Try asking

  • What employee benefits apply in the United States?
  • Compare the leave policies for Germany and France.
  • What applies here for a contractor based in Japan?

Good to know

  • Does not infer a file's country from its title, folder or contents.
  • Blank Country values are reported as unassigned, not backfilled.
  • Metadata discovery must finish before the content search starts.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: submissions/knowledge-source-router/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to knowledge-source-router

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

knowledge-source-router: common questions

Does it search documents for a country name?

No. The source says Country is treated as document metadata, not a content-search term, because prose mentions do not establish applicability.

What happens if a library has no Country column?

The skill states that the library does not track Country and stops.

Why does it avoid keyword filtering for a country?

A keyword returns only files containing that term, so it can omit files assigned to the country.

How do I install knowledge-source-router?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is knowledge-source-router free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is knowledge-source-router safe to use?

It scores 61 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to knowledge-source-router?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

knowledge-source-router Install

Add to stack

Loading.