zrosenfield/m365-cli/m365-docs
Claude Code and agent skill by zrosenfield/m365-cli
- community
Checking that the SKILL.md file is still in the repository.
SharePoint Docs: Create, co-edit, convert, and share .md/.txt/.docx documents collaboratively in chat.
Install
npx vskill@latest install zrosenfield/m365-cli/m365-docsSKILL.md
m365-docs — Collaborative Document Editing
Overview
This skill enables a full document co-editing loop entirely in chat:
- Create a new doc from a topic, or open an existing one
- Iterate on content with the user (suggest edits, rewrites, tone changes, etc.)
- Save back to SharePoint as
.md,.txt, or.docx - Share with someone via a link or permission grant
Workflow
1. Start a session
From a topic (new doc):
- Draft the document content in markdown
- Choose a filename:
foo.md(slugify the topic, lowercase, hyphens) - Write content to a temp file, upload to SharePoint, capture the item ID
- Confirm to the user: "Created foo.md — let's work on it. What would you like to change?"
From an existing file:
- Search for the file, get its item ID
- Read its content into context
2. Edit loop
Hold the current document content in context as a markdown string. Each turn:
- Show proposed changes inline (quote the before/after, or describe what changed)
- Ask: "Does this look right, or would you like to adjust anything?"
- On approval, update the in-context content
- Only save back to SharePoint when the user says they're done or explicitly asks to save
Example prompts that trigger edits:
- "Make it more formal"
- "Shorten the intro"
- "Add a section on X"
- "Rewrite the third paragraph"
- "Fix the tone — it sounds too aggressive"
Do NOT save after every turn. Save only when asked, or when the user says "done", "looks good", "save it", etc.
3. Save back
As markdown (default — no conversion needed):
As Word document (requires pandoc):
Use the docx item ID for any subsequent sharing steps.
4. Share
Create a shareable link:
Return the URL to the user in chat.
Grant access to a specific person:
State to track during a session
| Variable | What it holds | |
|---|---|---|
$item_id | SharePoint item ID of the active document | |
$remote_path | Path in the drive (e.g. /foo.md) | |
$content | Current markdown content (in context) | |
$format | md, txt, or docx |
Common patterns
Create, iterate, export to Word, and share — full example
Open an existing .txt or .md and continue editing
Notes
.mdand.txtround-trip perfectly — no conversion loss.docxvia pandoc preserves headings, bold, italics, bullets, and tables; complex Word styles are not preservedpermissions create-linkwith--scope anonymousrequires the SharePoint tenant to allow anonymous sharing (admin setting)- Item IDs change if a file is deleted and re-uploaded; prefer overwriting in place with
files uploadto the same--remote-path
Security
- Security scanPassed, 90 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-docs/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-docs)