Onedrive Connector logo

Onedrive Connector

Community
andreaswasita
onedrive-connector

Read, write, search, and share files in OneDrive / SharePoint via Copilot connectors. Use whenever the deliverable lives in a document library or a user's OneDrive — including grounding Copilot on a specific file or folder. Triggers: "ground on this file", "save to SharePoint", "share with", "find the latest version", "OneDrive link".

Overview

Publisherandreaswasita
Repositorycopilot-cowork-dojo
Skill nameonedrive-connector
Stars
36
Forks
9
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by andreaswasita on GitHub. Read the source before you install it.

Installation

Install the Onedrive Connector AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/andreaswasita/copilot-cowork-dojo/tree/main/skills/onedrive-connector
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/andreaswasita/copilot-cowork-dojo.git /tmp/copilot-cowork-dojo
mkdir -p .claude/skills
cp -r /tmp/copilot-cowork-dojo/skills/onedrive-connector .claude/skills/onedrive-connector
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Onedrive Connector in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Onedrive Connector on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Onedrive Connector is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

OneDrive / SharePoint Connector

The file is the unit of governance. Sensitivity label, retention, sharing scope — all attach to the file, not the chat.


Quick Reference

TaskApproach
Ground a session on a fileResolve driveId+itemId; check sensitivity; attach
Save a deliverableWrite to a draft path -> verify -> move/promote to published path
Share with internal audiencePeople in your org (default for most artifacts)
Share with external partySpecific people link, expiry set, audit logged
Find latest versionUse version history, not file-naming guesswork
Bulk operationDry-run on a single item; verify; then expand

Prerequisites — this skill is a playbook, not the connector

A SKILL.md cannot call OneDrive / SharePoint on its own. It assumes the platform already exposes Microsoft Graph as a tool. The skill teaches Cowork how to use OneDrive / SharePoint well; the connector itself is separate infrastructure.

Before this skill works end-to-end you need:

  1. A Microsoft Graph connector — typically Copilot Cowork's built-in M365 connectivity, or an MCP server wrapping the Graph /me/drive and /sites/{id}/drives endpoints.
  2. Credentials — your Entra ID session with Files.Read.All / Files.ReadWrite.All / Sites.Read.All scopes consented for the connector.
  3. Tenant policies — sensitivity labels, DLP, and conditional access must permit the connector to read the files you reference.
  4. Tool discovery — confirm Graph file tools are visible (ask Cowork: "what file/SharePoint tools do you have?") before using this skill.

In Cowork on a properly licensed M365 tenant, this is usually present out of the box. On other surfaces (e.g. a stripped-down sandbox), you'll need an MCP connector explicitly installed.

When to Use

  • Grounding a Copilot session on a specific file, folder, or library.
  • Saving a deliverable into the right library with the right label.
  • Sharing a file with an internal/external audience under the right link policy.
  • Versioning — comparing or restoring previous versions during review.

How to Use

  1. Resolve the location — driveId + itemId (or site + library + path). Never operate by friendly URL alone.
  2. Check the sensitivity label before reading. Confidential / Highly Confidential content has handling rules — see governance/data-handling.md.
  3. Read / write through the connector. For writes, save to a draft path first, not the published one.
  4. Set sharing scope explicitly — People in your org, Specific people, or Anyone with the link (rarely). Default link policy ≠ correct policy.
  5. Verify the file landed at the expected path, with the expected label, with the expected sharing.

Parameter Guidance

ParameterWhy it matters
driveId / itemIdStable identifiers; survives renames.
sensitivityLabelInherited from container — overriding requires rights.
sharingScopeAnonymous links may be tenant-blocked; check before promising.
conflictBehaviorrename vs. replace vs. fail — pick deliberately.
expirationDateTimeExternal shares should default to time-bound.

Examples

Don't: Anti-patternDo: Right move
Save in-progress Copilot work over the published filenameWrite to a draft path, verify, then promote to the published path
Grant "Anyone with the link" by defaultDefault to "People in your org"; reserve anonymous links for a reasoned exception
Cite a SharePoint URL only you can openConfirm the audience can open the link before citing it
Operate on a file by its friendly URL aloneResolve driveId + itemId so the reference survives renames

Critical Rules

  • Sensitivity label travels with the file — and with anything you copy out of it.
  • Sharing scope = audience contract. "Anyone with the link" should require explicit reasoning, not be a default.
  • Drafts go to a draft path. Never save Copilot-in-progress work to the published filename.
  • Version history is the audit trail. Don't disable it to "clean up."
  • Library defaults beat per-file overrides. Configure the library; let files inherit.

Common Pitfalls

  • Saving externally-shareable output into a confidential library and breaking inheritance.
  • Reading from a SharePoint site you have access to but the audience does not — citing a URL nobody can open.
  • Assuming "OneDrive" and "SharePoint" are the same surface — they share an API but have different governance defaults.
  • Version explosion from autosave during a long Copilot session.
  • File-name conflicts that auto-rename to report (3).docx and break inbound links.
  • Overwriting a file someone else is editing (causes a fork, not an error).

Anti-Patterns

  • Mailing a file as an attachment when a OneDrive link would track access and revoke cleanly.
  • Bulk renaming files via connector with no audit trail.
  • Granting Anyone with the link on a file referenced from a public deck — accidental disclosure.
  • Treating personal OneDrive as the team's source-of-truth.

Verify Before Sharing

  • File saved at the expected location with the expected name.
  • Sensitivity label set and matches content.
  • Sharing scope intentional; expiry set for external.
  • Audience can actually open the link (test with one external recipient if external).
  • Old versions / drafts not exposed via search to new audience.
  • DLP policies satisfied (no blocking warnings).

Related

Frequently asked questions

What does the Onedrive Connector AI skill do?

Read, write, search, and share files in OneDrive / SharePoint via Copilot connectors. Use whenever the deliverable lives in a document library or a user's OneDrive — including grounding Copilot on a specific file or folder. Triggers: "ground on this file", "save to SharePoint", "share with", "find the latest version", "OneDrive link".

Why use Onedrive Connector on TypingMind?

Because you install it once and use it with any model. Onedrive Connector is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Onedrive Connector in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/andreaswasita/copilot-cowork-dojo/tree/main/skills/onedrive-connector. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Onedrive Connector?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Onedrive Connector?

As many as you like. As long as a model supports skills, you can use Onedrive Connector with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Onedrive Connector AI skill free?

Yes. It is published on GitHub by andreaswasita under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇