Standardizes document names in Datasite data rooms for M&A deal teams. Renames files based on folder context and filename patterns, with optional Blueflame content extraction for dates and counterparties. Requires explicit user confirmation before any rename.
Ships in datasite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are helping a deal team standardise document names across their Datasite data room. Buyers judge preparation quality from the first thing they see — a folder full of Scan001.pdf, Agreement_FINAL_v3.docx, and Copy of Financial Model (2).xlsx signals a poorly run process.
The single most important rule: never rename anything without showing the user a full before/after table first and receiving explicit confirmation.
Use these terms precisely when communicating with the user:
When in doubt: if it is not the single top-level container for the whole project, it is a folder.
| Capability | Free | Requires Blueflame |
|---|---|---|
| Rename from folder context and filename | ✅ | — |
| Apply naming conventions across all document types | ✅ | — |
| Read inside documents to infer year, counterparty, or jurisdiction | — | ✅ |
Without Blueflame: Renames are based on folder context and filename patterns only. Where document content is needed to determine the year or counterparty (e.g. generic scan names), the proposed name will include a [YYYY] or [Counterparty] placeholder rather than guessing.
With Blueflame: searchDocuments reads document content to extract dates, counterparty names, and jurisdictions — producing fully resolved names with no placeholders.
⚠️ Blueflame fallback — explicit choice required
searchDocumentsis the only permitted source of document content.
Do not infer dates, counterparty names, or document types from Claude's training knowledge.
If
searchDocumentsreturns an activation link instead of results, do not silently continue. Stop and present the user with an explicit choice:"For documents where the filename doesn't contain the counterparty name, year, or jurisdiction, I need to read inside the file to propose an accurate name — this requires Blueflame AI search to be activated on this project. 🔗 Activate Blueflame: [activation link] With Blueflame: I'll read the opening clauses of contracts (exact party names), year-end dates in financial statements, and jurisdiction from tax filings — fully resolved names with no placeholders. Without Blueflame: I'll complete all renames I can from filename patterns and folder context, and use
[Counterparty],[YYYY],[Jurisdiction]placeholders where I'd need to read the document. Would you like to activate now, or shall I proceed with placeholder-based names?"Wait for the user's response before continuing.
listFolderContents— efficient traversal
depth: 1(default) — immediate children only. Use for targeted lookups.depth: 5, foldersOnly: true(default when depth > 1) — full folder tree in one call, no documents. Use for structural checks.depth: 5, foldersOnly: false— full folder tree including all document metadata in one call. Use when building a document inventory.- When
depth > 1, the response is a flat list withdepthandpathcolumns — not a nested tree.
Call getProjectOverview to understand the project: company name, sector, and fileroom structure. The company name will be used in naming conventions (e.g. [Company] - Audited Accounts - FY2025.pdf).
Call listFolderContents with depth: 5, foldersOnly: false to retrieve the complete document inventory in a single call. The response is a flat list including all folders and documents with metadata (name, fileType, status, pageCount, path). For each document, record:
updateContent later)Identify files that need renaming using these signals:
Never rename — flag for immediate removal from data room: These files should not exist in a buyer-facing data room. Flag them as critical issues and do not include them in any rename proposals:
DOCUMENT_MANIFEST, FILE_INDEX, FILE_SUMMARY, TAX_FILINGS_SUMMARY, FOLDER_STRUCTURE, INDEX, MANIFESTDefinitely rename:
Scan001, Scan_001, IMG_0234, Document (3), UntitledFile, New Document, Copy of, AttachmentFINAL_FINAL, USE THIS ONE, DO NOT USE, v2_revised_finalContract.pdf.pdf, Accounts.docx.pdfReview for standardisation (may be acceptable but inconsistent with siblings):
v1, v2, draft, revised, updated2024, others FY24, others April 2024Acme Corp Contract.pdf next to Agreement - Acme Corporation.pdf — same counterparty, different nameTax Return.pdf in a tax folder with multiple years)Before proposing a name, understand what the document actually is. Use two signals:
1. Folder context (primary): A file in 3.1 Audited Financial Statements is an annual accounts document. A file in 7.2 Employment Agreements is an employment contract. The folder tells you the document type — use it.
2. Document content (when needed): If the folder context isn't enough to determine the year, counterparty name, or document subtype, use searchDocuments on the document to extract:
Only use content search when the filename alone is genuinely ambiguous. Don't read every document — use judgment.
Read references/naming-conventions.md for the full naming convention tables before proposing renames.
Conventions cover: Financial documents, Tax documents, Corporate documents, Contracts (use counterparty name as the primary identifier), IP and regulatory documents.
The general pattern is [Company] - [Document Type] - [Date or Period].ext with dates in YYYY-MM-DD or Mon YYYY format for consistent sort order. Contracts use counterparty name as the lead element. If the year cannot be determined, use [YYYY] as a placeholder rather than guessing.
Before presenting to the user, group the proposed renames by document category. This makes the review easier — the deal team can quickly scan "all management accounts" or "all customer contracts" together rather than reviewing a random list of 200 files.
Prepare the proposal in this structure per group:
GROUP: Management Accounts (8 files)
Naming convention: [Company] - Management Accounts - [Mon YYYY].pdf
Current name → Proposed name
Scan001.pdf → Apex Ltd - Management Accounts - Jan 2025.pdf
Scan002.pdf → Apex Ltd - Management Accounts - Feb 2025.pdf
mgmt accounts march.pdf → Apex Ltd - Management Accounts - Mar 2025.pdf
MA_April2025_FINAL.pdf → Apex Ltd - Management Accounts - Apr 2025.pdf
...
Before showing the table — mandatory pre-flight extension check: For every proposed rename, verify the extension in the proposed name exactly matches the extension in the original filename (case-insensitive). This check must pass 100% before the table is shown.
.Scan001.pdf, the proposed name must end in .pdf. If you wrote Apex Ltd - Audited Accounts - FY2024 without .pdf, add it now.If you find you have proposed any names without extensions, add a warning at the top of the table: “⚠️ Note: [N] proposed names were missing their file extension — I’ve corrected them before showing this table. Please verify the extensions below are correct.”
Show the full grouped before/after table. Clearly state the total number of renames proposed.
End with:
"I've proposed [N] renames across [M] document categories. Review the table above and let me know:
- 'Apply all' — I'll rename everything as proposed
- 'Apply [group name]' — I'll rename just that category
- Edit any row — tell me what to change and I'll update the proposal
- Skip any file — tell me which ones to leave as-is
Nothing will be renamed until you confirm."
Do not call updateContent until the user explicitly confirms. This is a hard rule — renaming is irreversible through this interface and the user must be in control.
Once the user confirms (all or a subset), apply renames using updateContent:
updateContent(projectId, metadataId, name="[proposed name with extension]")
Hard rules — check each name immediately before calling updateContent:
updateContent call, confirm the name string ends with .pdf, .xlsx, .docx, .pptx, or whatever the original extension was. If it doesn’t, add the extension — do not call updateContent with an extensionless name under any circumstances..pdf to .docx or any other type..PDF → .pdf, .XLSX → .xlsx before calling.After completing, run a post-apply check: scan the renamed files and flag any that appear to now have no extension. Report:
“Done — [N] files renamed successfully. [If any failed:] [X] renames failed — [list them]. [If any are missing extensions:] ⚠️ [X] files appear to have lost their extension — [list them with their metadata IDs]. These must be corrected immediately — buyers cannot open or identify extensionless files.”
Some files cannot be confidently renamed without human judgment. Flag these separately rather than guessing:
JD Contract 2022.pdf — is "JD" a person or company?)Present these as: "[N] files flagged for manual review — I couldn't confidently determine the correct name: [list with current name and folder path]"
Batch by pattern, not by folder. The value of this skill is consistency across the entire data room — all management accounts should follow the same pattern whether they're in one folder or spread across sub-folders.
Counterparty name consistency is critical. If "Tesco PLC" appears as "Tesco", "Tesco plc", "Tesco PLC", and "TESCO" across four contracts, pick the legally correct form (check the document header if needed) and apply it consistently to all four.
Preserve all extensions. A .pdf stays a .pdf. Never change the file type.
Never guess a year. A wrong year on an audited accounts file is worse than a placeholder [YYYY]. If the year isn't clear, mark it.
Respect intentional names. If a file already has a clear, professional, and consistent name (e.g. Apex Ltd - Audited Accounts - FY2024.pdf), don't rename it just because you can. Only rename files that genuinely need it.
[YYYY].updateContent until the user explicitly confirms.getProjectOverview fails or returns the wrong project
Check that the Datasite MCP connector is connected (Settings → Extensions → Datasite should show "Connected"). If you have multiple projects open, confirm with the user which project to use.
listFolderContents returns no results
The fileroom may be empty or unpublished. Re-run listFolderContents without a metadataId to list all filerooms from the root. If a fileroom exists but shows 0 documents, the content may not yet be published — note this to the user and proceed with what is available.
searchDocuments returns an activation link instead of results
Blueflame AI search is not yet active on this project. Follow the Blueflame prompt in the skill instructions above. Do not attempt to answer using Claude's training knowledge.
MCP disconnects mid-workflow Reconnect via Settings → Extensions → Datasite. Resume from the last completed step — results already gathered do not need to be re-fetched.
updateContent or createContent returns a permissions error
The user's Datasite account may not have Editor permissions on this project. Ask them to check their role in Datasite project settings.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
datasite, vdr, file-renaming, deal-management, document-organization
8 skills in this plugin
/bulk-qa-answers面向 Datasite 交易室的批量 Q&A 作答技能。当卖方交易团队想一次性回答多个买方问题、根据 VDR 内容生成 AI 草拟回复、产出 Q&A 跟踪表,或搭建 Q&A 管理仪表盘时使用本技能。触发场景包括:「回答 Q&A」「草拟对买方问题的回复」「处理问题清单」「生成 Q&A 跟踪表」「回答所有问题」「批量作答」「Q&A 管理仪表盘」「回应尽调问题」,或任何以数据室内容为来源、系统性逐条处理买方问题清单的请求。每当买方提交了问题、交易团队希望 AI 辅助草拟时,应主动使用本技能。不要用于结构化 Q&A 流程之外的单个零散问题。不要凭通用常识草拟答案——所有回复必须来自数据室。/document-quality-check面向 Datasite 交易室的文档质量检查技能。当交易团队想在对买方开放前审核文档质量时使用本技能。触发场景包括:「检查文档质量」「标出有问题的文档」「找出受密码保护的文件」「检查空白文档」「PII 检查」「脱敏审查」「找出损坏的文件」「文档审计」「质检数据室」「有没有空白或损坏的文件」「检查未脱敏的个人数据」,或任何核实数据室文档是否完整、可访问、可安全共享的请求。应在数据室上线前主动使用本技能。不要用于文件重命名(用 smart-file-renaming)或识别缺失章节(用 gap-analysis)。/gap-analysis面向 Datasite 交易室的数据室缺口分析(Gap Analysis)技能。当卖方交易团队想在对买方开放前审核数据室中有哪些缺失、稀疏或不完整之处时使用本技能。触发场景包括:「做缺口分析」「数据室还缺什么」「检查数据室覆盖度」「标出空文件夹」「我们还没上传什么」「数据室就绪检查」「上线前找出缺口」「合同是否都在里面」「检查我们是否齐全」,或任何按章节评估数据室完整度的请求。每当交易团队准备启动数据室、想知道还需上传或整理什么时,应主动使用本技能。不要用于 PII、脱敏等文档质量问题(用 document-quality-check),也不要用于草拟 Q&A 回复(用 bulk-qa-answers)。/datasite:smart-file-renamingfrom datasite
npx claudepluginhub kael-odin/codex-plugins-zh --plugin datasiteOther plugins' skills for the same job