Sharepoint word docs

From fanfan-de/anybox · View interactive version

Sharepoint word docs is an AI agent skill from the GitHub repository fanfan-de/anybox. Edit SharePoint-hosted Word `.docx` files while preserving document structure and styling. Use when the user wants to update a real Word document in SharePoint rather than summarize it as plain text.

How to use this skill

Skill file

SharePoint Word Docs

Overview

Use this skill for .docx edits that start from SharePoint. Treat the file as a real Word package, not as extracted text, and preserve the existing document structure and styling unless the user explicitly accepts formatting loss.

Core Workflow

  1. Search for the file and identify the exact target by title, path, and file type.
  2. Fetch extracted text once to verify it is the right document and to locate the target section.
  3. Fetch the raw .docx with fetch(download_raw_file=true) before editing.
  4. Edit locally with python-docx or equivalent OOXML-aware local tooling so the original Word package remains intact.
  5. Ensure that the upload path can preserve a normal styled Word package before overwriting the original.
  6. Write the revised file back with update_file using the exact drive-root-relative path from SharePoint metadata.
  7. Re-fetch and verify both:

Safety

Verification

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.