sharepoint-spreadsheets
$
npx mdskill add openai/plugins/sharepoint-spreadsheetsEdit live SharePoint spreadsheets while keeping formulas intact.
- Users need to modify actual workbook data without losing structure.
- The skill relies on SharePoint discovery and raw file fetching.
- It selects targets by inspecting sheet content before changes.
- Results are delivered by uploading the corrected workbook back.
SKILL.md
.github/skills/sharepoint-spreadsheetsView on GitHub ↗
--- name: sharepoint-spreadsheets description: Edit SharePoint-hosted spreadsheet files while preserving workbook structure, formulas, and formatting. Use when the user wants to update a real spreadsheet in SharePoint rather than summarize extracted sheet text. --- # SharePoint Spreadsheets ## Overview Use this skill for `.xlsx` edits that start from SharePoint. Inspect the workbook structure before editing, preserve formulas and formatting, and upload the revised workbook back to the same SharePoint item only after verifying the exact change. If the formula itself is the task, pair this with [../sharepoint-spreadsheet-formula-builder/SKILL.md](../sharepoint-spreadsheet-formula-builder/SKILL.md) so formula design, syntax checks, and rollout choices stay deliberate instead of being improvised during the workbook edit. ## Core Workflow 1. Use the site-scoped SharePoint discovery path to locate the exact workbook: - `get_site(...)` when the user already knows the site - `list_site_drives(...)` when the site is known but the library is not - `search(query=None, hostname=..., site_path=..., folder_path=...)` to browse a known site or folder - `search(query="...")` when the user actually has keywords 2. Prefer the exact `url` returned by keyword search or browse results when you later call `fetch`. 3. Fetch extracted content once to identify relevant sheets and the likely target area. 4. Fetch the raw `.xlsx` with `fetch(download_raw_file=true)`. 5. Inspect workbook structure before editing: - sheet names - used ranges or dimensions - formulas - headers - the most natural insertion point 6. Apply the edit with workbook-aware local tooling such as `openpyxl`, preserving workbook structure, formulas, and formatting. 7. Verify the exact inserted cells, rows, or section header after save rather than relying on a generic workbook-size change. 8. Write the revised workbook back with `update_file` using the exact drive-root-relative path from SharePoint metadata. 9. Confirm the SharePoint update metadata and, when possible, reopen the workbook locally to verify the targeted cells. Use the direct Microsoft SharePoint app tools for this flow. Do not rely on generic MCP resource listing for SharePoint workbook discovery in Codex. ## Safety - Do not flatten a workbook into CSV-like text when the user expects the original spreadsheet to remain editable. - Preserve formulas, charts, sheet structure, and formatting unless the user explicitly asked to change them. - Treat connector writes as full workbook replacement. `update_file` does not patch individual cells or formulas inside the existing workbook on the server. - `fetch` enforces the connector's supported-file and max-size constraints. If raw workbook retrieval fails at the connector layer, stop and report the limitation instead of pretending the workbook was safely inspected. - Do not teach or rely on user-recency as the primary browse path. Resolve the right site, library, and folder first when the workbook location is still ambiguous. - If the workbook contains formulas, charts, or formatting-sensitive layouts, treat operations that can shift references or overwrite styled ranges as high risk and inspect carefully before saving. - For structured additions such as Q&A sections, notes blocks, or assumption tables, prefer inserting them into the most natural non-formula sheet instead of the main projection grid unless the user explicitly asked otherwise. ## Verification - Verify the exact target cells, rows, or inserted block. - If you can verify content but not workbook fidelity more broadly, say that clearly instead of implying a full workbook QA pass.
More from openai/plugins
- accessibility-and-inclusive-visualizationMake data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.
- agent-browserBrowser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.
- agent-browser-verifyAutomated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass/fail before continuing.
- agents-sdkBuild AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
- ai-elementsAI Elements component library guidance — pre-built React components for AI interfaces built on shadcn/ui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.
- ai-gatewayVercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.
- ai-generation-persistenceAI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation
- ai-sdkVercel AI SDK expert guidance. Use when building AI-powered features — chat interfaces, text generation, structured output, tool calling, agents, MCP integration, streaming, embeddings, reranking, image generation, or working with any LLM provider.
- aiq-deploy|
- aiq-research|