sharepoint-filer

Files legal triage documents to SharePoint via the n8n Legal Copilot workflow.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/myPOStech/mps-legal-legalcopilot-ai --skill sharepoint-filer-mypostech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sharepoint-filer
Source: https://github.com/myPOStech/mps-legal-legalcopilot-ai/tree/main/skills/sharepoint-filer
Command: npx skills add https://github.com/myPOStech/mps-legal-legalcopilot-ai --skill sharepoint-filer-mypostech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Legal triage outputs (drafts, attachments, sent emails, comment threads) need to end up in the correct SharePoint case folder with consistent naming and an audit trail, but the Microsoft 365 MCP cannot write to SharePoint. This Skill routes all filing through the team's n8n Legal Copilot workflow, which creates the case folder, uploads every document, and appends an entry to the shared memory file in one call. ## Core Features & Use Cases - One-call filing: Sends base64-encoded documents to the n8n workflow (ID VAKq9Bra0RA0SdCO), which creates myPOS Legal/{case_folder}/{case_id}/, uploads each file, and returns live SharePoint URLs. - Naming and versioning conventions: Maps 10 matter types to folder names, builds filenames like LEGAL-4321_AcmeCorp_2026-04-27_v1.docx, and checks existing files to pick the next free version number. - Memory file updates: Builds a markdown memory_instructions string from triage metadata so the workflow appends a timestamped case entry to the shared legal_copilot_memory.md file. - Use Case: After triaging Jira ticket LEGAL-4321, the Copilot calls this Skill with the draft .docx (with Devil's advocate comments embedded), the comment thread, and attachments; the lawyer receives clickable SharePoint URLs in the Jira comment. ## Quick Start Ask the assistant to file the triage outputs for ticket LEGAL-4321 to SharePoint using the sharepoint-filer skill with the draft, attachments, and triage metadata.

Frequently Asked Questions about sharepoint-filer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload documents to SharePoint from Claude Code?

Call the n8n Legal Copilot workflow through the execute_workflow MCP tool with a payload containing case_id, case_folder, and a documents array of {filename, content_base64, mime_type} items. The workflow creates the case folder and uploads each file via the SharePoint REST API.

Why can't the Microsoft 365 MCP write files to SharePoint?

The Microsoft 365 MCP exposes only read and search tools for SharePoint, with no write capability. The n8n workflow authenticates through a service-account OAuth credential and uses the SharePoint REST API directly, making it the only supported write path.

What payload format does the n8n Legal Copilot workflow accept?

It accepts only a webhook payload whose body contains case_id, case_folder (matter-type folder name only), a documents array of {filename, content_base64, mime_type}, and memory_instructions as a markdown string. Other shapes like file_manifest or payload_path are rejected.

Can I call the n8n webhook directly with curl?

No. The sandbox egress proxy blocks direct curl requests to the webhook with a 403 on CONNECT. The n8n MCP execute_workflow tool is the only transport; if it is unavailable, the skill returns success false with error n8n_mcp_unavailable.

What happens when a document is too large to inline as base64?

The skill returns success false with error document_too_large_to_inline and surfaces the issue in chat_summary. Callers must halt and not post the Jira triage comment, rather than uploading a text receipt stub in place of the real document.