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

add-knowledge

Skill by microsoft

Adds a knowledge source to a Copilot Studio agent. It supports public websites, SharePoint folders and custom search APIs, for makers who want an agent to search a documentation URL or SharePoint location.

  • Score 75
  • 503 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-knowledge

Built from the published package, never by AI.

git clone --depth 1 https://github.com/microsoft/skills-for-copilot-studio /tmp/skills-for-copilot-studio && mkdir -p ~/.claude/skills && cp -r /tmp/skills-for-copilot-studio/skills/add-knowledge ~/.claude/skills/add-knowledge

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

Step-by-step: install add-knowledge in Claude Code

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

About

The add-knowledge skill adds a knowledge source to a Copilot Studio agent. It supports public websites, SharePoint folders and custom search APIs. For a public website, it creates a PublicSiteSearchSource that uses Bing search to find snippets within a scoped URL, rather than crawling pages. For SharePoint, it converts common URL formats, such as AllItems.aspx links, into direct folder paths.

The skill writes a knowledge YAML file into the agent's knowledge folder, with a name and description comment. It also covers dynamic URLs that use global variables, and custom APIs through the OnKnowledgeRequested trigger. It is intended for makers who build Copilot Studio agents and want the agent to search a documentation site or SharePoint location.

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

What it can do

  • Add public website sourceCreates a PublicSiteSearchSource for a documentation URL or website.
  • Add SharePoint sourceCreates a SharePointSearchSource for a SharePoint folder path.
  • Normalize SharePoint URLsConverts AllItems.aspx links into direct folder paths and drops query parameters.
  • Custom API knowledgeSets up an OnKnowledgeRequested trigger to call a proprietary search API or database.
  • Dynamic knowledge URLsUses global variables in the site field for routing based on user context.
  • Save knowledge YAMLWrites the knowledge file to the agent's knowledge folder with a name comment.

What you need

  • A Copilot Studio agent project with an agent.mcs.yml file
  • Node.js to run the schema lookup script
  • For custom APIs, a connector action in the agent's actions folder

Try asking

  • Add https://learn.example.com/docs as a knowledge source for my agent
  • Add this SharePoint folder link as a knowledge source for the agent
  • Connect my agent to our custom product search API as knowledge

Good to know

  • Public website scope supports a maximum depth of 2 levels beyond the domain.
  • SharePoint sharing links cannot be converted into a folder path.
  • Dataverse, uploaded files, AI Search and SQL Server sources must be created in the Copilot Studio UI.

Security check

B
  • Allowed to use Write without limitsIn SKILL.md

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

Inside the skill

Allowed tools: Bash(node *schema-lookup.bundle.js *)ReadWriteGlob

Alternatives to add-knowledge

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

add-knowledge: common questions

Does the public website source crawl the whole site?

No. PublicSiteSearchSource uses Bing search to find relevant snippets within the scoped URL. It does not crawl or summarize full pages.

Why can't the skill use a SharePoint sharing link?

Sharing links are opaque tokens with no extractable folder path. The skill asks the user to copy the folder URL from the browser address bar instead.

Can the knowledge URL change for each user?

Yes. The site field can use a global variable such as =$"{Global.VariableName}", but the variable must be set before any knowledge search runs.

How do I install add-knowledge?

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

Is add-knowledge free?

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

Is add-knowledge safe to use?

It scores 75 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write without limits). Review the code before you install. How grades work.

What are alternatives to add-knowledge?

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

add-knowledge Install

Add to stack

Loading.