PluginWorks in Claude CodeCurrent
Box
Work with your Box content directly from Claude Code — search files, organize folders, collaborate with your team, and use Box AI to answer questions, summarize documents, and extract data without leaving your workflow.
0
Try it
See what this would do for you. No sign-up needed.
Install in Claude Code
Run these in Claude Code, in order. The first adds the marketplace, the second installs the plugin.
Step 1
/plugin marketplace add anthropics/claude-plugins-official
Step 2
/plugin install box@claude-plugins-official
Review commands before running them. Promptu never runs code on your machine or pushes changes to your repo.
What's inside
9 skills
- box-cli
- box-integration-best-practices
- box-legal-workflows-contract
- box-legal-workflows-intake
- box-legal-workflows-ma
- box-legal-workflows
- box-mcp
- box-sdk-development
- box
Security scan
Passed
Promptu's text scan of the files it could read didn't match any known risky patterns. It doesn't run the plugin, and a clean scan doesn't mean the plugin is safe.
Automated pattern check of 12 file(s) found nothing risky. Not a full audit.
Details
# Box Agent Skills
Agent Skills help AI assistants work with Box: find and organize content, support legal document workflows, and build or troubleshoot Box integrations. Each skill provides instructions for a specific kind of task, from client intake to SDK development and bulk operations.
The skills follow the [Agent Skills format](https://agentskills.io/) and can be installed individually or through a platform plugin. Installing instructions does not connect your assistant to Box; authorize Box access separately when your task needs it.
## Available Skills
| Skill | When to use it |
|---|---|
| [`box`](skills/box/SKILL.md) | Start with general Box tasks, choose the appropriate tools, and troubleshoot authentication or access errors. |
| [`box-cli`](skills/box-cli/SKILL.md) | Run Box CLI commands, automate shell workflows, and manage bulk operations and recovery. |
| [`box-mcp`](skills/box-mcp/SKILL.md) | Connect an assistant to Box's hosted MCP server, discover available tools, and complete Box content operations. |
| [`box-sdk-development`](skills/box-sdk-development/SKILL.md) | Build or debug application code using official Box SDKs, with guidance for Python and TypeScript/Node. |
| [`box-integration-best-practices`](skills/box-integration-best-practices/SKILL.md) | Review or improve Box integrations for efficient API calls, resumable bulk work, and rate-limit handling. |
| [`box-legal-workflows`](skills/box-legal-workflows/SKILL.md) | Supply shared guidance for the legal skills: collaboration roles, AI boundaries, and human review. |
| [`box-legal-workflows-intake`](skills/box-legal-workflows-intake/SKILL.md) | Check intake submissions against firm requirements, extract matter details, route attorney review, and prepare engagement letters. |
| [`box-legal-workflows-contract`](skills/box-legal-workflows-contract/SKILL.md) | Compare contracts with approved templates, produce cited variance reports, capture metadata, and monitor renewals or expirations. |
| [`box-legal-workflows-ma`](skills/box-legal-workflows-ma/SKILL.md) | Build and manage M&A data rooms, scope access, and answer due diligence questions with document citations. |
For application code, use `box-sdk-development`; for command-line work, use `box-cli`; for operations through a Box MCP connection, use `box-mcp`. Pair integration work with `box-integration-best-practices` when efficiency, bulk processing, or throttling matters.
The intake, contract, and M&A skills require both `box` and `box-legal-workflows`. The shared legal skill supports those workflows. Firms supply the checklists, templates, and review criteria; attorneys make legal and risk determinations.
## Installation
### Install individual skills
Choose skills interactively:
```bash
npx skills add box/skills
```
To install a specific skill, use its name from the catalog:
```bash
npx skills add box/skills --skill box-sdk-development
```
For a legal workflow, also install its required foundation skills. For example:
```bash
npx skills add box/skills --skill box
npx skills add box/skills --skill box-legal-workflows
npx skills add box/skills --skill box-legal-workflows-contract
```
Browse the [Box skills listing](https://skills.sh/box/skills) for installation options.
### Install a platform plugin
This repository also includes plugin configuration for supported platforms. Use the platform notes below, and follow the [Box MCP supported-platform guides](https://docs.box.com/en/box-mcp/supported-ai-platforms) to connect and authorize Box access. Some repository notes describe plugin metadata rather than a complete installation flow.
| Platform | Repository notes |
|---|---|
| Codex | [Codex notes](.codex-plugin/README.md) |
| Cursor | [Cursor installation and setup](.cursor-plugin/README.md) |
| Claude Code | [Claude Code plugin metadata](.claude-plugin/README.md) |
| Kiro | [Install as a Kiro Power](#kiro-power) |
For Box connection instructions for other clients, including Claude Cowork, see the supported-platform guides above.
The root `plugin.json` and `mcp.json` follow the [Agent Plugins specification](https://agent-plugins.org/specification). The MCP configuration declares `https://mcp.box.com`; your client manages authentication. Store credentials in your client's settings, outside this repository.
### Kiro Power
In Kiro, open the Powers panel and install the Box Power. If it is not shown in the catalog, select **Add Custom Power** → **Import power from GitHub** and enter `https://github.com/box/skills`.
Kiro is not listed in the [Box MCP supported-platform guides](https://docs.box.com/en/box-mcp/supported-ai-platforms). For a custom connection, follow the [Box MCP setup guide](https://developer.box.com/guides/box-mcp/setup) and your Kiro client's MCP configuration instructions. Confirm that the client supports the required authentication flow. Installing the Power and authorizing a Box connection are separate steps.
## Prerequisites
Requirements depend on the task:
| Task | Requirements |
|---|---|
| Install skills with `npx` | Node.js/npm and an agent that supports Agent Skills. |
| Work with Box through MCP | An authorized Box MCP connection. Available tools depend on admin settings, scopes, permissions, and product entitlements. |
| Run Box CLI operations | The [Box CLI](https://developer.box.com/guides/cli/) installed and authenticated for the intended Box user. |
| Develop SDK application code | The appropriate official Box SDK and runtime. Live API calls also need configured Box authentication. |
| Run legal workflows | The `box` and `box-legal-workflows` skills, Box access, and the firm's relevant checklist, template, or access criteria. Engagement letter generation also needs a registered Doc Gen template. |
| Use direct REST as an approved fallback | A valid Box access token with the required access. |
## Usage
Your agent uses installed skills when their descriptions match the task. You can name a skill explicitly when you want a particular workflow. Try these prompts, replacing folder references and firm materials with your own:
| Skill | Example prompt |
|---|---|
| `box` | “Help me diagnose a 403 error when accessing this Box folder.” |
| `box-cli` | “Use the Box CLI to list the first 20 items in folder 0 as JSON.” |
| `box-mcp` | “Use my Box MCP connection to find invoices in this folder.” |
| `box-sdk-development` | “Use the official Python Box SDK to add file upload to this application, following its existing authentication setup.” |
| `box-integration-best-practices` | “Review this Box sync worker for redundant API calls, retry behavior, and 429 handling.” |
| `box-legal-workflows` | “Explain the Box collaboration roles and human review steps used by the legal workflow skills.” |
| `box-legal-workflows-intake` | “Check this intake folder against our required-document checklist and summarize missing items for attorney review.” |
| `box-legal-workflows-contract` | “Compare this NDA with our approved template and produce a cited variance report for attorney review.” |
| `box-legal-workflows-ma` | “Set up an M&A data room using our folder template and access matrix.” |
## Verify Your Connection
Verify access through the tool you intend to use. A successful CLI or REST request does not verify your MCP connection or application SDK configuration.
- **MCP:** Ask your agent to discover the available tools and call `who_am_i` to confirm the intended Box user. Missing tools may require a client or administrator configuration change.
- **CLI:** Run the commands below to confirm the acting user and list a few root-folder items.
- **SDK:** Check the installed SDK version and use the application's configured client to make a small read request, such as retrieving the current user.
```bash
box users:get me --json
box folders:items 0 --json --max-items 5
```
For MCP tasks, perform operations and verification through the same connection. For explicit CLI tasks, use the CLI. For tasks without a specified tool, the `box` skill guides tool selection; direct REST requires an approved fallback and separate authentication.
<details>
<summary>Optional: verify direct REST access</summary>
Set `BOX_ACCESS_TOKEN` securely in your local session, then run:
```bash
curl -sS -H "Authorization: Bearer $BOX_ACCESS_TOKEN" \
-H "Accept: application/json" \
"https://api.box.com/2.0/users/me"
```
</details>
## Skill Structure
Each skill lives in `skills/<skill-name>/`:
- `SKILL.md` — Required manifest with a name, description, and task instructions.
- `references/` — Optional detailed guidance, such as SDK-specific instructions or Box capability references.
The `box-cli`, `box-mcp`, and `box-integration-best-practices` skills keep their instructions in a single `SKILL.md`. Other skills use references or guidance from related skills as needed. CLI syntax comes from installed command help; MCP tool names and inputs come from runtime discovery; SDK methods must match the installed SDK version.
## Contributing
Follow the [Agent Skills specification](https://agentskills.io/). Add or update a skill under `skills/`, with only the supporting resources its workflow requires. State any dependencies on other skills.
When adding or renaming a skill, update this README's catalog and example prompts, and review prerequisites and platform notes for affected guidance.
## License
[MIT](LICENSE)
## Privacy and Support
- [Box Privacy Policy](https://www.box.com/legal/privacypolicy)
- [Box Support](https://support.box.com/)
- [Repository issues](https://github.com/box/skills/issues) for problems with these skill instructions.
## skills/box-cli/SKILL.md
---
name: box-cli
description: Use the official Box CLI for Box command-line operations, reproducible shell automation, CLI authentication or troubleshooting, and bulk Box work. Do not use for generic shell questions, Box strategy, or application code that should use a Box SDK.
---
# Box CLI
Use the installed Box CLI to complete and verify Box operations.
## Operating workflow
1. Identify the requested outcome, target, and actor. If the request leaves a risky target, recipient, role, impersonated user, or batch scope ambiguous, ask one focused question before running a command.
2. Confirm the intended CLI environment and acting user before the operation. If the user names an environment, inspect `box configure:environments:select --help` and select that environment before checking identity:
```bash
box users:get me --json --fields id,name,login
```
Include the intended `--as-user <USER_ID>` in the identity check when impersonation is authorized. `users:get me` confirms the acting user, not the environment name. Reuse the same environment and actor controls throughout the operation and its verification; repeat the check after any authorized environment or actor change. Never switch to a more privileged identity merely to bypass an error.
3. Resolve human-readable names to stable Box IDs before mutation. If multiple items match, present the candidates and ask the user to choose.
4. Prefer a dedicated CLI command. Add `--json` for machine-readable output and narrow `--fields` to the data needed for the task.
5. Verify mutations with a read using the same actor. For deletes, check the parent collection or trash as appropriate; a `404` alone can also mean the actor lacks access. For asynchronous operations, report pending status until completion is confirmed.
6. Report the actor, action, relevant object IDs, verification evidence, and any unresolved failure. Include commands when they help the user reproduce the result.
## Common patterns
Record `box --version`. Inspect command help when syntax is unfamiliar, the installed version differs from the verified version below, or a command is rejected. Resolve uncertainty before running a write.
```bash
# Identify the actor
box users:get me --json --fields id,name,login
# Inspect the root folder and a bounded set of children
box folders:get 0 --json --fields id,name
box folders:items 0 --json --fields id,type,name --max-items 20
# Search and preserve parent information for disambiguation
box search "Launch Plan" --json --fields id,type,name,parent --limit 20
# Read an item by ID
box files:get <FILE_ID> --json --fields id,name,parent,owned_by
box folders:get <FOLDER_ID> --json --fields id,name,parent,owned_by
# Create, then verify the returned folder ID
box folders:create <PARENT_FOLDER_ID> "Approved Assets" --json
box folders:get <RETURNED_FOLDER_ID> --json --fields id,name,parent
```
Box uses `0` as the root folder ID. A path or item name is not a stable identifier.
Use `box <topic>:<command> --help` to check flags and argument order in the installed version.
## Setup and authentication
Only enter setup mode when the CLI is absent, authentication fails, or the user asks for it.
```bash
npm install --global @box/cli
box login -d
```
- `box login -d` uses the official Box CLI application for interactive content operations.
- In a headless environment, have the user run `box login -d --code` in their own terminal for the official CLI app, or `box login --platform-app --code` for their custom app. `--code` is a boolean flag: the CLI displays an authorization URL, then prompts for the state and authorization code after the user authorizes in an external browser. Enter those values only at the local CLI prompts.
- Use `box login --platform-app` when the user needs a custom OAuth application or scopes beyond the official CLI application.
- For approved server automation with JWT or Client Credentials Grant, use the current `box configure:environments:add --help` flow and protect the configuration file outside source control.
- Developer tokens are for short local tests. Do not embed tokens, client secrets, private keys, or authorization codes in commands, prompts, logs, fixtures, or repository files.
After setup, verify the identity with `box users:get me`; do not print credential stores or raw environment configuration.
## Risky and destructive work
The request must explicitly authorize the exact scope before:
- deleting or permanently deleting content;
- creating, changing, or removing collaborations or shared links;
- impersonating another user;
- changing enterprise users, groups, retention, or governance settings; or
- running a broad batch that can alter many objects.
If that authorization is absent, show the actor, target IDs, proposed role or change, and batch size, then ask for confirmation. Do not rely on CLI prompts because some destructive commands do not prompt.
Run dependent writes serially. Serialize processes sharing an OAuth environment to avoid overlapping token refreshes or environment changes. Verify using returned IDs.
## Bulk operations and recovery
Use CSV or JSON input through `--bulk-file-path` only when the specific command supports that flag. Check the command's help and official bulk examples for supported columns and nested values. Before executing a batch:
1. Validate input columns against the command's arguments and flags. Row values override command-line values, including `as-user`; inspect actor and target overrides before execution.
2. Validate a small representative subset when the operation is reversible and the user has authorized it.
3. Keep a reconciliation record separate from the CLI input, with source-row number or key, intended target ID, actor, and outcome. Do not add tracking columns the command does not support.
4. Capture output and per-row error diagnostics. Bulk execution can continue after row failures and finish without a nonzero exit status; reconcile each row before reporting success.
For partial failures:
- Treat successful rows as committed until verification proves otherwise.
- Retry `429` responses only after the indicated delay.
- Retry timeouts or `5xx` responses only when the operation is idempotent or a read proves the mutation did not occur.
- Do not retry `401`, `403`, or ambiguous writes unchanged. Correct identity, permission, or state first.
- Retry only the verified-safe failed subset, then reconcile every source row against Box.
Never restart an entire partially successful mutation batch merely because some rows failed.
## REST fallback
When no dedicated command exists, prefer `box request` because it reuses the selected CLI identity:
```bash
box request /folders/0/items --query "limit=5" --json
```
Inspect `box request --help` before a write. Use explicit method, body, and query values, then verify the resulting Box object through a read. Raw `curl` with a bearer token is outside the normal workflow and should be used only when the user supplies an approved secure authentication mechanism.
## Current public sources
Use these sources when installed help is insufficient:
- [Box CLI repository and installation](https://github.com/box/boxcli)
- [Box CLI authentication](https://github.com/box/boxcli/blob/main/docs/authentication.md)
- [Box CLI command documentation](https://github.com/box/boxcli/tree/main/docs)
- [Box Developer CLI guides](https://developer.box.com/guides/cli/)
Examples and authentication flags checked on 2026-10-13 against the public Box CLI source and docs at commit `97e4351cb5e4a2077f37090bb5aca0ae2fe7020f` (package version `4.10.1`).
## skills/box-integration-best-practices/SKILL.md
---
name: box-integration-best-practices
description: Build, debug, or review repeatable Box API integrations and agent workflows for efficient calls, bulk work, and 429 handling.
---
# Box integration best practices
Preserve result coverage and permissions when reducing calls. For bulk work or 429 errors, estimate calls per completed item and peak request rate by Box actor and endpoint. Budget uploads and search against their separate limits. Check the current [rate limits](https://developer.box.com/guides/api-calls/permissions-and-errors/rate-limits); user, endpoint, enterprise, and temporary quality-of-service limits may apply.
## Reduce calls
For reviews, trace Box requests through loops and retry paths before changing concurrency or seeking more capacity.
- Reuse cached access tokens. Request fields needed for a decision in the list response when supported, and reuse returned data instead of fetching each item again. `fields` reduces call count only when it replaces a follow-up read.
- Use the largest useful supported page size. For large or changing collections, use [marker pagination](https://developer.box.com/guides/api-calls/pagination/marker-based) where supported; follow `next_marker` to completion and do not treat a marker as a durable checkpoint.
- Use webhooks or events with a catch-up path instead of repeated full scans. Deduplicate deliveries; checkpoint event stream positions after successful processing. Query supported [enterprise metadata templates](https://developer.box.com/guides/metadata/queries/limitations) instead of fetching metadata for every file.
- When content stays in Box, prefer Box-side copy, move, or update operations over download and re-upload.
## Control bulk work and retries
- Bound concurrency across workers sharing a Box actor, accounting for endpoint and enterprise limits. On 429, honor `Retry-After` across affected workers. Current official SDKs retry 429s; check the installed version before adding another retry layer. For direct HTTP, use bounded backoff with jitter.
- For long-running jobs, persist per-item outcomes so work can resume. Reconcile uncertain writes before retrying them.
- Refresh expired tokens on 401; pause if failures persist. For 403, record item-specific denials and pause when failures indicate actor or app access is wrong.
- If necessary traffic still exceeds available capacity after removing avoidable calls, surface the capacity need. Do not rotate identities to evade limits.
## Check the result
Record Box calls and 429s by actor, endpoint, and status; compare calls per completed item and completed-job throughput on a representative workload. Use the [Platform Activity report](https://support.box.com/hc/en-us/articles/4415109521171-Platform-Activity-Report) for historical per-app totals. If a token reaches a browser or other client-side component, [downscope it](https://developer.box.com/guides/authentication/tokens/downscope).
## skills/box-legal-workflows-contract/SKILL.md
---
name: box-legal-workflows-contract
description: Automate contract review and monitoring with Box MCP — find new or expiring contracts, compare them against firm templates to flag material variances, write structured contract metadata back to Box for searchability, and produce variance reports with citations. Use this skill when the user mentions contract review or monitoring, NDA or MSA review, contract expiration or renewals, contract metadata, or variance analysis, even if they don't name a specific Box tool.
---
# Contract Review Agent
> **PREREQUISITES:**
>
> - Use the `box` skill for Box MCP auth, tool selection, and base workflows. If it is not installed, run: `npx skills add https://github.com/box/skills --skill box`
> - Use the `box-legal-workflows` skill for Box collaboration role definitions, Box AI usage boundaries, and reusable confirmation phrasings. If it is not installed, run: `npx skills add box/skills --skill box-legal-workflows`
Do contract review *in Box*: find contracts with Box search, compare against the firm's template with Box AI, persist results as Box metadata so they stay searchable, and monitor dates with metadata search. This skill is the contract-specific recipe; the underlying Box tool mechanics live in the capability references below. Materiality, risk, and favorability are firm-supplied criteria confirmed by an attorney — the agent extracts facts, stores them, and routes. It does not provide legal advice or decide risk.
## Box capability references
Reach for these for tool mechanics rather than restating them here:
- The `box` skill's `references/mcp-search.md` — find contracts; metadata vs. keyword search, folder scoping, template schema lookup
- The `box` skill's `references/ai-and-retrieval.md` — compare to template and extract fields; pacing, text-rep/file limits, citations
- The `box` skill's `references/content-workflows.md` — metadata templates, `set_file_metadata`, report uploads, file comments
- The `box` skill's `references/collaboration.md` — grant the reviewing attorney access
## Box metadata model
Persist review results as file metadata so contracts stay searchable. Find or inspect the firm's template using the `box` skill's `references/mcp-search.md`; create one using its `references/content-workflows.md` if none exists.
- **Representative fields** (confirm the firm's actual set): `counterparty_name`, `contract_type`, `execution_date`, `effective_date`, `expiration_date`, `auto_renewal`, `notice_period_days`, `contract_value`, `governing_law`, `status` (active/expired/terminated/under_negotiation), `risk_rating`, `review_date`, `next_review_date`, `expiration_alert_date`. Link to matters with `matter_id`, `practice_area`, `matter_owner`.
- The `risk_rating` value is the firm/attorney's determination — store it, don't decide it.
## Contract search recipes
Once contracts carry metadata, use `search_files_metadata` (mechanics in the `box` skill's `references/mcp-search.md`; otherwise `search_files_keyword` with date filters):
- New since last review: `execution_date >= 'YYYY-MM-DD' AND execution_date <= 'YYYY-MM-DD'`
- Expiring window: `expiration_date >= 'YYYY-MM-DD' AND expiration_date <= 'YYYY-MM-DD' AND status = 'active'`
- By counterparty / rating: `counterparty_name = 'Acme Corp'` · `risk_rating = 'High'`
## Tool selection
| Contract task | Tool | Notes |
| --------------------------- | ---------------------------------------------- | -------------------------------------------------------------------------- |
| Find new contracts (date) | `search_files_metadata` | Query `execution_date`; fall back to `search_files_keyword` if no metadata |
| Find expiring | `search_files_metadata` | Query `expiration_date` within 30/60/90 days |
| Compare to template | `ai_qa_multi_file` | Contract + firm template in one call |
| Extract metadata (template) | `ai_extract_structured_from_metadata_template` | If a template exists |
| Extract metadata (custom) | `ai_extract_structured_from_fields_enhanced` | Define fields at runtime |
| Write metadata | `set_file_metadata` | Persist extracted/confirmed fields |
| Create variance report | `upload_file` | Write the summary doc |
| Tag attorney | `create_file_comment` | Notify for review/expiration |
| Grant attorney access | `create_collaboration` | If they lack access |
## Workflow
1. **Find**: `search_files_metadata` or `search_files_keyword`. **[CONFIRM: folder ID, date range/cadence]**
2. **Compare to template**: `ai_qa_multi_file` (contract + firm template) → extract clauses that differ, with citations. **[CONFIRM: template file ID]**
3. **Extract metadata**: `ai_extract_structured_from_metadata_template`, or `ai_extract_structured_from_fields_enhanced` if no template.
4. **Persist**: `set_file_metadata`, including the firm-confirmed `risk_rating`. **[CONFIRM: which fields]**
5. **Report**: `upload_file` — factual differences + citations + firm-confirmed rating (observations for attorney review, not recommendations).
6. **Route**: `create_file_comment` to tag the attorney; `create_collaboration` if they need access. **[CONFIRM: attorney, access]**
7. **Monitor expirations**: `search_files_metadata` on the expiration window → `create_file_comment` reminders → `set_file_metadata` (`expiration_alert_sent: yes`).
## Legal guardrails
Box mechanics (external-sharing confirmation, AI pacing/limits/citations, metadata writes) are governed by the capability references above and `box-legal-workflows`. Specific to contracts:
- Risk, materiality, and favorability are firm + attorney calls, never the agent's. If the firm has no documented criteria, route to an attorney rather than rating.
- Prompt Box AI to extract differences and cite section/page — not to judge materiality or legal risk.
- Record decisions in Box as the audit trail: the firm-confirmed rating in metadata plus the uploaded summary.
## skills/box-legal-workflows-intake/SKILL.md
---
name: box-legal-workflows-intake
description: Automate legal client intake and onboarding with Box MCP — review intake documents for completeness against firm requirements, summarize risk for attorney review, route incomplete or high-risk submissions to the right attorney, extract client and matter metadata to Box, and generate engagement letters from Box DocGen templates. Use this skill when the user mentions client intake, client onboarding, new client review, intake documents, or engagement letters.
---
# Client Intake & Onboarding
> **PREREQUISITES:**
> - Use the `box` skill for Box MCP auth, tool selection, and base workflows. If it is not installed, run: `npx skills add https://github.com/box/skills --skill box`
> - Use the `box-legal-workflows` skill for Box collaboration role definitions, Box AI usage boundaries, and reusable confirmation phrasings. If it is not installed, run: `npx skills add box/skills --skill box-legal-workflows`
Do client intake *in Box*: inventory the intake folder, check completeness with Box AI against the firm's checklist, extract intake data into Box metadata, route via comments and collaborations, and generate the engagement letter with Box DocGen. This skill is the intake-specific recipe; the underlying Box tool mechanics live in the capability references below. The firm supplies the required-document checklist and risk criteria; conflict, PEP, and sanctions determinations run through the firm's screening system — not the agent or Box AI. Not legal advice.
## Box capability references
Reach for these for tool mechanics rather than restating them here:
- The `box` skill's `references/content-workflows.md` — inventory the folder, metadata templates, `set_file_metadata`, file comments
- The `box` skill's `references/ai-and-retrieval.md` — completeness checks and data extraction; pacing, limits, citations
- The `box` skill's `references/mcp-doc-gen.md` — generate the engagement letter from a template
- The `box` skill's `references/collaboration.md` — tag/route the attorney and share with the client
- The `box` skill's `references/mcp-search.md` — find/inspect the firm's metadata template
## Box metadata model
Record the intake outcome as file metadata so submissions stay searchable. Find or create the firm's template using the `box` skill's `references/mcp-search.md` and its `references/content-workflows.md`.
- **Representative fields** (confirm the firm's actual set): `client_name`, `matter_name`, `practice_area`, `matter_owner`, `jurisdiction`, `matter_value`, `intake_status` (complete/incomplete), `risk_rating`, `assigned_attorney`, `decision`, `decision_date`.
- Store the firm/attorney's rating and decision, not the agent's.
## Tool selection
| Intake task | Tool | Notes |
|------|------|-------|
| Inventory submission | `list_folder_content_by_folder_id` | All files in the intake folder |
| Check completeness | `ai_qa_multi_file` | Present/complete/valid vs. firm checklist, with citations |
| Extract intake data | `ai_extract_structured_from_fields_enhanced` | Client, matter, jurisdiction, value |
| Write metadata | `set_file_metadata` | Record status, rating, decision, attorney |
| Tag attorney | `create_file_comment` | Route with the factual summary |
| Grant access | `create_collaboration` | Give the attorney access |
| Generate engagement letter | `create_docgen_batch` | Only if the firm approves |
| Share with client | `add_folder_shared_link` or `create_collaboration` | Confirm audience/expiration |
## Workflow
1. **Inventory**: `list_folder_content_by_folder_id`. **[CONFIRM: intake folder ID]**
2. **Completeness**: `ai_qa_multi_file` — is each required doc (per the firm's checklist) present, complete, and valid, with citations? **[CONFIRM: firm's required-document list]**
3. **Extract intake data**: `ai_extract_structured_from_fields_enhanced` (client_name, matter_name, practice_area, jurisdiction, matter_value, …).
4. **Surface risk indicators (facts only)**: `ai_qa_multi_file` to surface the facts the firm's criteria reference (value, jurisdiction, named parties) with citations. Do **not** use AI to determine conflicts, PEP status, or sanctions — pass names/entities/locations to the firm's screening system.
5. **Persist**: `set_file_metadata` with the firm-confirmed `risk_rating`, `intake_status`, and `decision`.
6. **Route**: `create_file_comment` to tag the attorney with the factual summary; `create_collaboration` for access. **[CONFIRM: who, access level]**
7. **Engagement letter (only if the firm approves)**: `create_docgen_batch` against the firm's template → output to the confirmed folder → share via `create_collaboration` or `add_folder_shared_link`. **[CONFIRM: DocGen template, destination folder, share method/expiration]**
## Legal guardrails
Box mechanics (DocGen template/tag requirements, external-sharing confirmation, AI pacing/limits/citations, metadata writes) are governed by the capability references above and `box-legal-workflows`. Specific to intake:
- Conflict, PEP, and sanctions clearance are firm screening + attorney/compliance calls — the agent surfaces the underlying text only and never clears them.
- Risk rating and routing/staffing are firm policy + attorney calls, never the agent's.
- Prompt Box AI to surface facts and cite the source, not to determine risk.
## skills/box-legal-workflows-ma/SKILL.md
---
name: box-legal-workflows-ma
description: Build and manage M&A virtual data rooms with Box MCP — create secure due-diligence folder structures, scope role-based access for internal teams and external parties, validate permissions before sharing, and answer cross-document due-diligence questions with Box AI. Use this skill when the user mentions M&A, deal rooms, data rooms, VDRs, due diligence, or mergers and acquisitions.
---
# M&A Deal Room Management
> **PREREQUISITES:**
> - Use the `box` skill for Box MCP auth, tool selection, and base workflows. If it is not installed, run: `npx skills add https://github.com/box/skills --skill box`
> - Use the `box-legal-workflows` skill for Box collaboration role definitions, Box AI usage boundaries, and reusable confirmation phrasings. If it is not installed, run: `npx skills add box/skills --skill box-legal-workflows`
Build and run an M&A data room *in Box*: create the folder hierarchy, scope role-based access with Box collaborations, validate permissions before sharing, and answer due-diligence questions with Box AI plus citations. This skill is the deal-room-specific recipe; the underlying Box tool mechanics live in the capability references below. Deal risk, materiality, and terms are attorney calls. Not legal advice.
## Box capability references
Reach for these for tool mechanics rather than restating them here:
- The `box` skill's `references/content-workflows.md` — create the folder hierarchy, upload/copy, classify-and-file submissions
- The `box` skill's `references/collaboration.md` — role-based access, shared links, permission audits (`list_item_collaborations`)
- The `box` skill's `references/mcp-search.md` — locate documents, folder-scoped search
- The `box` skill's `references/ai-and-retrieval.md` — due-diligence Q&A and term extraction with citations
## Folder structure
Create the tree using the MCP tools in the `box` skill's `references/content-workflows.md` (top-down, parent before child; reuse the existing folder on a `409` name conflict). Confirm the firm's template first. Example numbered structure — numeric prefixes keep ordering consistent and segregate external submissions:
```
[Deal Name] M&A Deal Room/
├── 01 - Financial Statements/
├── 02 - Legal Documents/
├── 03 - HR & Employment/
├── 04 - Intellectual Property/
├── 05 - Commercial Contracts/
├── 06 - Real Estate & Assets/
├── 07 - IT & Cybersecurity/
└── 08 - External Submissions/
```
## Access model
Scope access least-privilege and folder-specific rather than root (role capabilities and external-sharing confirmation rules are in the `box` skill's `references/collaboration.md` and the bundled `box-legal-workflows` skill). Example deal-room mapping (confirm with the user):
- Internal: Deal Lead → Editor/Co-Owner on root; Finance → Viewer on Financial Statements; Legal → Editor on Legal Documents.
- External: External Counsel → Uploader on their own folder; Auditors → Viewer on Financial Statements; Prospective Buyer → Viewer on a curated subset, not the full room.
## Tool selection
| Deal-room task | Tool | Notes |
|------|------|-------|
| Create folders | `create_folder` | Batch the hierarchy, top-down |
| Add files | `upload_file` / `copy_file` | New uploads or copy existing Box files |
| Grant access | `create_collaboration` | Confirm first for any external party |
| Shared link | `add_folder_shared_link` | Confirm audience/expiration |
| Audit/verify access | `list_item_collaborations` | Before and after external changes |
| Find docs | `search_files_keyword` | Scope with `ancestor_folder_id` |
| Due-diligence Q&A | `ai_qa_multi_file` | Cross-document; surface citations |
| Extract terms | `ai_extract_structured_from_fields_enhanced` | Persist with `set_file_metadata` |
| Classify submissions | `ai_qa_single_file` | Then `copy_file` into the right folder |
## Workflow
1. **Setup**: create the folder tree → grant internal access with `create_collaboration`. **[CONFIRM: structure, emails/roles]**
2. **Populate**: `upload_file`/`copy_file`; classify submissions with `ai_qa_single_file`, then `copy_file` into the right category folder.
3. **External access**: `list_item_collaborations` (audit) → **[CONFIRM: who, folders, permission, expiration]** → `create_collaboration` or `add_folder_shared_link` → `list_item_collaborations` (verify).
4. **Due diligence**: `search_files_keyword` (folder-scoped) → `ai_qa_multi_file` → present the answer with citations; `ai_extract_structured_from_fields_enhanced` for terms → `set_file_metadata` to persist.
## Legal guardrails
Box mechanics (external-sharing confirmation, shared-link settings, AI pacing/limits/citations) are governed by the capability references above and `box-legal-workflows`. Specific to deal rooms:
- Deal risk, materiality, and term interpretation are attorney calls, never the agent's.
- Validate permissions with `list_item_collaborations` before *and* after external changes — a folder grant exposes everything inside it, including files added later.
- Audit trail: record returned folder/file/collaboration IDs and write DD summaries back to Box.
## skills/box-legal-workflows/SKILL.md
---
name: box-legal-workflows
description: Shared building blocks for Box-based legal workflows — Box collaboration role definitions, Box AI usage boundaries (what AI must not decide), and reusable human-in-the-loop confirmation phrasings. Referenced by box-legal-workflows-ma, box-legal-workflows-intake, and box-legal-workflows-contract skills.
---
# Shared Legal Concepts
> **PREREQUISITE:** Use the `box` skill for Box MCP authentication, tool selection, and base workflows. If it is not installed, run: `npx skills add https://github.com/box/skills --skill box`
Shared building blocks used by the legal skills (M&A, Intake, Contract Review): Box collaboration role definitions, the boundaries of where Box AI must not be the decision-maker, and reusable confirmation phrasings. Risk frameworks, metadata fields, workflows, and decision-transparency requirements live in the individual legal skills.
## Box capability references
Reach for these for the underlying Box tool mechanics rather than restating them here:
- The `box` skill's `references/collaboration.md` — collaborator role capabilities, shared links, and external-sharing rules
- The `box` skill's `references/ai-and-retrieval.md` — Box AI Q&A, extraction, and structured metadata tools, with pacing/limits/citations
---
## Box Collaboration Roles
**[CONFIRM: What permission level is appropriate?]**
For the full breakdown of each Box collaborator role (Co-owner, Editor, Viewer Uploader, Previewer Uploader, Viewer, Previewer, Uploader) and the exact capabilities each grants, see the role matrix in the `box` skill's `references/collaboration.md`. Use that matrix to determine which role fits a given collaborator, then have the human confirm the choice before granting access.
Apply least privilege: default to the most restrictive role that still lets the collaborator do their job, prefer specific folders over root access, and set expiration dates on external collaborations.
---
## Box AI Boundaries
Box AI informs; a human attorney decides. Do **NOT** use Box AI for:
- Final legal advice or decisions (human attorney only)
- Access-control decisions (human approves permissions)
- Client conflict checks (use the firm's conflict system)
- Privilege determinations (attorney judgment)
- Settlement negotiations or strategy
Box AI is appropriate for *informing* humans

