name: sharepoint description: Inspect Microsoft SharePoint context, discover the right site or library, and prepare safe changes. Use when the user wants site, page, or file review, ownership and status extraction, or change planning before editing content, navigation, or information architecture.
SharePoint
Overview
Use this skill to turn SharePoint sites, pages, files, and document-library context into clear summaries and low-risk edit plans. Read the relevant content first, anchor recommendations in the exact site or file, and separate review from write actions.
Preferred Deliverables
- Site or page briefs that capture purpose, owners, current status, and open issues.
- File summaries that highlight the latest content, gaps, and action items.
- Edit plans that specify what should change, where it should change, and why.
- Recent-document summaries that identify what changed lately and which files are most active.
- Sharing and permission summaries that explain who has access, how a file is shared, and what safe sharing change is needed.
- Version-history or recovery plans that identify whether a file should be copied, moved, restored, or reverted to an earlier version.
Workflow Skills
| Workflow | Skill |
|---|---|
| Resolve the right site, library, or folder before file work | ../sharepoint-site-discovery/SKILL.md |
Word document edits that must preserve .docx structure and styling | ../sharepoint-word-docs/SKILL.md |
| Spreadsheet edits that must preserve workbook structure, formulas, and formatting | ../sharepoint-spreadsheets/SKILL.md |
| Formula design, repair, and rollout in a SharePoint-hosted workbook | ../sharepoint-spreadsheet-formula-builder/SKILL.md |
| PowerPoint deck edits that must preserve slide style and template fidelity | ../sharepoint-powerpoint/SKILL.md |
| Cross-document synthesis and maintaining shared strategy or roadmap docs | ../sharepoint-shared-doc-maintenance/SKILL.md |
Workflow
- Read the relevant site, page, file, or library before proposing changes. Capture the current title, location, owners, linked documents, and the content that matters.
- When the user is exploring, summarize the current information architecture or document state before suggesting edits.
- Ground every recommendation in the exact SharePoint destination, such as the site name, page name, library, or file path.
- When the exact site, drive, or folder is not already known, use the truthful discovery path:
get_site(...)to validate the sitelist_site_drives(...)to discover libraries on that sitesearch(query=None, hostname=..., site_path=..., folder_path=...)to browse a known site or foldersearch(query="...")only when the user actually wants keyword search
- If the user asks what they recently worked on or wants a recency-based shortlist rather than site discovery, use
list_recent_documentsinstead of treating recency as browse context. - If the request is about who can access a file, how it is shared, or how to share it, use:
list_item_permissionsto inspect current accesscreate_sharing_linkfor link-based sharing when the user wants a linkinvite_item_recipientswhen the user wants to share with specific people
- If the request is about file recovery or controlled reorganization, use:
list_item_versionsbefore restore or rollbackrestore_item_versiononly when the user clearly wants an older version restoredcopy_item,move_or_rename_item, ormove_items_bulkfor explicit copy/move/reorg workcreate_folderorcreate_folders_bulkwhen the user is creating destination structure
- If the request is primarily about locating the right site, library, or folder before file work, route to ../sharepoint-site-discovery/SKILL.md.
- If the request targets an Office document, determine whether the task is content analysis only or an actual file edit before choosing the workflow.
- Route specialized Office workflows to the appropriate SharePoint skill:
.docxedits -> ../sharepoint-word-docs/SKILL.md.xlsxedits -> ../sharepoint-spreadsheets/SKILL.md- formula-heavy
.xlsxwork -> ../sharepoint-spreadsheet-formula-builder/SKILL.md - style-sensitive
.pptxedits -> ../sharepoint-powerpoint/SKILL.md - maintained strategy, roadmap, planning, or status docs -> ../sharepoint-shared-doc-maintenance/SKILL.md
- When using SharePoint file-update tools, prefer the drive-root-relative file path from the item's metadata rather than guessing a library-prefixed path. A file may appear under
Shared Documents/...in the web URL while the writable API path is just the filename or another root-relative path. - After any write, re-fetch the file from SharePoint and verify the specific intended change in the returned content or metadata rather than assuming the upload succeeded.
- Treat verification as two separate checks whenever fidelity matters:
- Content verification: the intended sections, text, cells, or slides are present.
- Fidelity verification: headings, spacing, theme, layout, formatting, and template conventions still match the source file's visual language.
- If connector limitations prevent fidelity verification or safe style-preserving upload, say so explicitly before calling the edit complete.
- If the request is write-oriented, present the intended content change or structure change before applying broad edits.
- Call out content dependencies such as linked files, navigation references, approvals, owners, or downstream sharing expectations when they affect the update.
- Only change content, structure, metadata, sharing state, or version state when the user has clearly asked for that action.
Write Safety
- In Codex, treat the Microsoft SharePoint app tools as the primary surface. Do not rely on generic MCP resource listing for SharePoint discovery; the backend wrapper routes through direct connector tools instead.
- Prefer the exact SharePoint result
urlfrom keyword search or browse results when handing a file intofetch; the implementation supports browser or sharing URLs too, but those are fallback inputs rather than the primary discovery path. - Do not treat user-recency as site discovery. For site browsing, use
get_site(...),list_site_drives(...), and explicit browse mode onsearch(query=None, ...). - Preserve page titles, document names, file locations, ownership details, and linked references unless the user requests a change.
- Treat page overwrites, navigation changes, library reorganizations, and sharing or permission changes as high-impact actions that require extra clarity.
- Before changing sharing state, inspect the current permissions or link posture when that context affects whether the requested change is safe.
- Before restoring an older version, make clear that this changes the current file state for downstream readers; use
copy_iteminstead when the safer outcome is to preserve both versions. - If multiple similarly named sites, pages, or files exist, identify the intended destination before drafting or editing.
- When a requested change could affect linked content or downstream readers, call that out before proposing the update.
- For document edits, preserve the file format and existing structure. Do not replace a
.docxor other Office file with plain text output when the user expects the original document to remain editable. - Treat SharePoint
update_fileas a whole-file overwrite, not an in-place Office patch. For rich Office edits, make the change locally to the real package, then replace the file deliberately. - If one failed binary overwrite strongly suggests inline base64 transport fragility, do not keep retrying richer Office packages blindly. Reassess the connector path, reduce scope, or stop and explain the limitation.
Output Conventions
- Always reference the exact site, page, library, or file when describing findings or planned edits.
- Summaries should lead with the current purpose or status, then list owners, important content, gaps, and next steps.
- Edit plans should state the target, current state, intended change, and reason.
- When the user asks for structure help, present the proposed navigation or information architecture in a short, scannable outline.
- Distinguish clearly between content analysis and a write-ready update.
- For completed file edits, report both the file that was changed and how you verified the updated result.
Operational Recovery Notes
- Avoid unsupported wrapper patterns for SharePoint fetch or update calls. If a parallelized or delegated form of the same operation is not supported, retry with the direct connector call rather than spending turns debugging the wrapper.
- On SharePoint
429throttling, wait the stated retry interval and retry once cleanly. - If a binary overwrite fails with invalid base64 after a rich Office edit, treat that as likely transport fragility rather than proof that the Office file itself is corrupt.
- When a request has both content and fidelity requirements, do not report overall success after content verification alone. Make the fidelity status explicit.
Example Requests
- "Summarize this SharePoint site and tell me who owns each major section."
- "Review the project page and draft the content changes needed to reflect the new timeline."
- "Tell me what this document library contains and which files look outdated."
- "Show me the SharePoint documents I touched recently and which ones probably need follow-up."
- "Who currently has access to this file, and create the right internal sharing link."
- "Restore the version from before yesterday's change, or tell me whether copying the file is safer."
- "Plan the information-architecture changes needed for the operations site before we edit it."
- "Update the team roadmap based on any milestone changes in the project docs."
- "Maintain the shared planning document so it reflects the latest source-of-truth timelines."
Light Fallback
If SharePoint data is missing or incomplete, say that Microsoft SharePoint access may be unavailable or pointed at the wrong site or file, then ask the user to reconnect or clarify the intended destination.