microsoft-onedrive

Manage OneDrive and SharePoint files via Microsoft Graph endpoints.

13|1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/AceDataCloud/Skills --skill microsoft-onedrive
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microsoft-onedrive
Source: https://github.com/AceDataCloud/Skills/tree/main/skills/microsoft-onedrive
Command: npx skills add https://github.com/AceDataCloud/Skills --skill microsoft-onedrive

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you avoid manual navigation and copy/paste work when you need to list, search, download, upload, move, rename, or share files in OneDrive or SharePoint using Microsoft Graph.

Core Features & Use Cases

  • Drive Microsoft Graph file operations: list items, browse folders by path, search recursively, and fetch recently modified files.
  • Secure, user-scoped access: uses an OAuth bearer token from $MICROSOFT_ONEDRIVE_TOKEN and performs requests with Authorization: Bearer.
  • Complete common lifecycle tasks: download by item id or path, upload small files or large files via upload sessions, create folders, rename/move, delete with confirmation, and create sharing links with explicit user consent.
  • Use case: You can ask an AI assistant to find the latest quarterly report across your OneDrive, download it, and then prepare a summary—without exposing you to Graph API complexity.

Quick Start

List the latest modified files in your OneDrive so you can pick one to download and analyze.

Frequently Asked Questions about microsoft-onedrive

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage OneDrive files using the Microsoft Graph API?

You can manage OneDrive files via Microsoft Graph endpoints to list, search, upload, download, rename, move, delete, and share items using curl with jq and a bearer token from $MICROSOFT_ONEDRIVE_TOKEN.

What's the best way to upload large files to SharePoint document libraries?

Uploading large files to SharePoint is supported through Microsoft Graph upload sessions, allowing you to transfer data securely in chunks using an OAuth bearer token for authentication.

How do I create and manage sharing links for OneDrive files programmatically?

Creating sharing links for OneDrive files requires explicit user consent and utilizes Microsoft Graph endpoints, authenticated via the OAuth bearer token stored in $MICROSOFT_ONEDRIVE_TOKEN.

Can I use this to search and fetch recently modified files across personal OneDrive and Microsoft 365?

Yes, it supports both personal OneDrive and Microsoft 365 work or school SharePoint document libraries, allowing you to recursively search and fetch recently modified files through Graph endpoints.

Do I need an OAuth token to download files from SharePoint via Microsoft Graph?

Yes, downloading files requires an OAuth bearer token from $MICROSOFT_ONEDRIVE_TOKEN, validating the connection via the /me endpoint, and handling Graph JSON errors verbatim during the request.

Why does my Microsoft Graph request fail when renaming or moving OneDrive folders?

Renaming or moving OneDrive folders can fail if the OAuth token is invalid; you must authenticate each call with the Bearer token and handle Graph JSON errors verbatim to diagnose the issue.