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.
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-knowledgeRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/skills-for-copilot-studio /tmp/skills-for-copilot-studio && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills-for-copilot-studio/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
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 →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
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.
