onedrive
OneDrive files via Microsoft Graph: list, search, download, upload, mkdir, rename, move, recycle. Trigger phrases: onedrive, my files, upload to onedrive…
от gabrielmoreira★ 23 звезды на GitHub
Установить onedrive в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
OneDrive
Purpose
Work with the user's OneDrive through the Microsoft Graph API: list folders, search files, download, upload, create folders, rename, move, and recycle items. Use when the user mentions OneDrive or asks to fetch, store, or organize files there.
Source: Microsoft Graph OneDrive / driveItem documentation (learn.microsoft.com/graph), checked 2026-10-19.
Tooling
All commands go through bin/onedrive.py:
bin/onedrive.py me # status check: verify auth, show the signed-in user
bin/onedrive.py ls [folder] [--limit N] # list a folder (default: root)
bin/onedrive.py search <query> [--limit N] # search OneDrive
bin/onedrive.py download <remote-path> <local-path> # download a file
# Writes — every one requires --confirm naming the exact effect:
bin/onedrive.py upload <local-path> <remote-path> --confirm "upload report.pdf to Documents/report.pdf"
bin/onedrive.py mkdir <remote-path> --confirm "create folder Documents/Projects"
bin/onedrive.py rename <remote-path> <new-name> --confirm "rename Documents/a.txt to b.txt"
bin/onedrive.py move <remote-path> <dest-folder> --confirm "move Documents/a.txt to Archive"
bin/onedrive.py recycle <remote-path> --confirm "recycle Documents/old.txt"
Paths are OneDrive-relative (Documents/file.pdf), not local paths, except where a command names a local file. Large uploads use Graph's simple upload (PUT content); chunked upload sessions for very large files are out of scope for this CLI.
Auth
- Provider id:
onedrive(credential is collected ascustom.onedrive) - Collection: OAuth 2.0 delegated grant via the secure credential flow (
credentials.request_api_access) — the user signs in with their Microsoft account and consents to Files access (the token endpoint islogin.microsoftonline.com; all API calls go to Graph). - Required scopes:
Files.ReadWrite(delegated) for the signed-in user's drive. - Allowed hosts:
graph.microsoft.com - Status check:
bin/onedrive.py me
Operating Rules
- Writes are confirmation-gated in code.
upload,mkdir,rename,move, andrecyclerefuse to run without--confirm "<exact effect>". Get the user's confirmation in conversation first; never pre-fill it on their behalf. Reads (me,ls,search,download) need no confirmation. - The Personal Vault is always off-limits — the CLI refuses any path containing "personal vault", no exceptions, even for reads initiated by name.
recycleis recoverable (consumer OneDrive moves the item to the recycle bin); this CLI never empties the recycle bin and has no permanent-delete command.- Downloads follow Graph's 302 redirect to a pre-authenticated download URL. That URL is itself a bearer credential: the CLI never attaches our token to it, and never logs or persists the full URL.
- A 401/403 is a question about the request before it is a question about the credential — confirm the surrogate was attached. Never print, log, or persist raw tokens; the CLI only ever handles surrogates.
Files
- SKILL.md
- bin/onedrive.py
Maturity
✅ Live — this is the production version from a running Muse setup: list/search/download/upload run against a live OneDrive as part of a file-placement workflow (inventory, downloads, and uploads verified against Microsoft Graph). Live-tested 2026-10-19. The --confirm write gate is enforced in the CLI in this catalog version.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл onedrive?
OneDrive files via Microsoft Graph: list, search, download, upload, mkdir, rename, move, recycle. Trigger phrases: onedrive, my files, upload to onedrive, download from onedrive.
Как установить скилл onedrive?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл onedrive запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…