zrosenfield/m365-cli/m365-files
Claude Code and agent skill by zrosenfield/m365-cli
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
SharePoint Files: Upload, download, copy, move, rename, delete, and search files in SharePoint document libraries.
Install
npx vskill@latest install zrosenfield/m365-cli/m365-filesSKILL.md
m365-files — SharePoint File Operations
Prerequisites
Complete auth setup from m365-shared SKILL.md, then discover your site and drive IDs:
Command Reference
List files
Output: array of DriveItem objects with id, name, size, webUrl, file/folder.
Get file metadata
Upload a file
- Uses PUT to
/drives/{id}/root:{remotePath}:/content - Overwrites if file already exists at that path
- For files >4 MB, consider chunked upload (not yet implemented — split large files first)
Download a file
Copy a file
- Graph copy is async; response may be a 202 with a monitor URL.
Move a file
Rename a file or folder
Delete a file or folder
Deletes to the site recycle bin (recoverable for 30–93 days).
Search for files
Common Patterns
Find and download the latest version of a file
Upload and get the new item's ID
Bulk-delete files matching a pattern
API Resources
All commands wrap the MS Graph Drive API:
GET /drives/{driveId}/root/children— list rootGET /drives/{driveId}/root:{path}:/children— list folderGET /drives/{driveId}/items/{itemId}— get metadataPUT /drives/{driveId}/root:{path}:/content— uploadGET @microsoft.graph.downloadUrlfrom item metadata — downloadPOST /drives/{driveId}/items/{itemId}/copy— copyPATCH /drives/{driveId}/items/{itemId}— move/renameDELETE /drives/{driveId}/items/{itemId}— deleteGET /drives/{driveId}/root/search(q='...')— search
Discovering Commands
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/m365-files/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zrosenfield/m365-cli/m365-files)