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.
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-knowledgeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/copilot-studio-plugin /tmp/copilot-studio-plugin && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/copilot-studio-plugin/skills/add-knowledge ~/.gemini/antigravity-cli/skills/add-knowledgeAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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 →Set up and diagnose a local agentmemory installation. It covers MCP connections, environment variables, ports, auth and feature flags, and is for users getting started or checking a connection.
Analyzes a Karpathy-pattern LLM wiki and builds an interactive knowledge graph with entities, implicit links and topic clusters. Built for people who maintain LLM-generated markdown wikis.
Saves and loads timestamped reports for AI assistants, with keyword routing for fast lookup. It also runs an Actionability Gate that checks report links before delivery. Intended for morning briefings, meeting digests and research reports.
Removes a personal fact, preference, relationship detail, topic or past event from Muse's active memory. It also stops existing copies and automations from bringing it back.
Git Context Controller (GCC) is a skill that stores agent memory as a versioned file system under .GCC/. It suits multi-step projects that need milestone tracking, branching and context recovery across sessions.
Guides an evidence-first reading of a book, article, PDF or document set. Built for readers who want claims, evidence and recall rather than a short summary.
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.
