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 locally cloned Copilot Studio agentic-loop agent. It supports public websites, SharePoint, OneDrive, and uploaded files, for agent builders who want to ground their agent in existing content.

  • Score 62
  • 108 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/copilot-studio-plugin /tmp/copilot-studio-plugin && mkdir -p ~/.claude/skills && cp -r /tmp/copilot-studio-plugin/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

This agent skill adds a knowledge source to a Copilot Studio agent that has been cloned locally. It finds the agent through its settings.mcs.yml file, classifies the source as a public website, SharePoint, OneDrive, or uploaded file, and writes the matching capabilities/knowledge YAML component. SharePoint and OneDrive links are normalized before they are saved, and sharing links are refused. Uploaded files are copied into a files folder with a metadata-only sidecar file.

The skill is for builders of Copilot Studio agentic-loop agents who want to attach content by URL or file. It also offers an optional access check for SharePoint and OneDrive links through Microsoft Graph, which runs as the author. The source notes that the agent must be re-packed or pushed and published before new knowledge takes effect.

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

What it can do

  • Add public website sourceWrites a WebsiteKnowledgeSource component for an absolute HTTPS public site.
  • Add SharePoint or OneDrive sourceWrites a SharePointKnowledgeSource component for a file or folder link.
  • Add uploaded fileCopies a local file into the knowledge files folder and writes a metadata sidecar.
  • Normalize SharePoint and OneDrive URLsConverts direct paths and AllItems.aspx links and refuses sharing links.
  • Protect existing uploaded filesAsks before replacing an existing payload or sidecar instead of overwriting it.
  • Optional access pre-checkChecks through Microsoft Graph whether the author can read a SharePoint or OneDrive link.

What you need

  • A locally cloned Copilot Studio agentic-loop agent, for example via pac copilot clone
  • Node.js to run the optional access check script
  • An Entra app registration with delegated Files.ReadWrite consent for the optional access check

Try asking

  • Add this SharePoint folder as knowledge for my agent
  • Attach this public website as a knowledge source
  • Ground my agent on this uploaded PDF file

Good to know

  • Dataverse, AI Search, SQL Server and Graph connector sources are not supported here.
  • The agent must be re-packed or pushed and published for new knowledge to take effect.
  • The access check runs as the author, so it does not confirm end-user access.
  • Public website paths deeper than two segments are rejected.

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: ReadWriteGlobGrepBash(mkdir *)Bash(cp *)Bash(powershell *Copy-Item*)Bash(node *verify-knowledge-access.bundle.js*)

Alternatives to add-knowledge

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

add-knowledge: common questions

Can this skill add a SharePoint or OneDrive link to my agent?

Yes. The skill classifies SharePoint and OneDrive links and writes a SharePointKnowledgeSource component after normalizing the URL.

Does the access check guarantee that end users can read the file?

No. The source says the check runs as the author, so a passing result confirms only the author's access. End users need access in SharePoint or OneDrive.

Where are uploaded files stored in the agent?

The skill copies uploaded files into capabilities/knowledge/files and writes a metadata-only sidecar YAML file next to them.

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 62 of 100. Grades: maintenance B, licence A, quality B. 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.