/carta-investors:carta-upload-firm-documentfrom Carta Investors
Uploads local files to a firm's Documents page in Carta. Confirms firm and files before uploading. Carta auto-classifies documents after upload.
Ships in Carta Investors. 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; scripts run unread.
carta-investors:7.69.39
If this plugin's files can't be found: a path that still shows an unreplaced
${…}variable, or a "not found" when you read or run one of this skill's files, means the skill loaded before this session's computer link was ready. Invoke this skill once more with the Skill tool and use the paths that copy gives. If they're still unreplaced, tell the user Carta's plugin files aren't available in this session yet (link your computer, then ask again) and stop. Don't search the disk for them.
Puts one or more local files on a firm's Documents page in Carta. Once a file lands, everyone at the firm with firm administrator or full view access can see it, so the firm and the files are confirmed together, once, before anything is written. Then every file uploads without asking again.
Carta classifies each document after upload. This skill never picks, suggests, asks for or sends a document type, even when the user names one ("upload this NDA"): that wording only identifies the file.
Names are verbatim. Call each through call_tool on whichever Carta MCP server
this session has. Every Carta call carries
"_instrumentation_v2": {"skills": ["carta-investors:carta-upload-firm-document"]};
if one is rejected for missing it, send it again with it, without telling the user.
| Step | Call |
|---|---|
| Find the firm | list_contexts(firm_uuid="<firm_uuid>"), list_contexts(firm_id="<carta_id>"), list_contexts(firm_name="<firm_name>"), or list_contexts() when nothing is named — Gate 2 |
| 1. Get an upload URL | call_tool({"name": "fa__create__document-upload-url", "arguments": {"filename": "<file_name>"}}) |
| 2. Send the file | send_to_storage.py to the returned url — Step 4b |
| 3. Save the document | call_tool({"name": "fa__create__document", "arguments": {"key": "<s3_key>", "title": "<title>"}}) |
| 4. Put it on the firm's page | call_tool({"name": "fa__create__firm-document", "arguments": {"firm_uuid": "<firm_uuid>", "document_ids": ["<document_id>"]}}) |
Steps 1–4 run in that order for each file, one file at a time, and only after Gate 3. A document saved in step 3 but never attached in step 4 exists in Carta but appears nowhere, so step 4 is never skipped.
Call welcome, then get_current_user. Keep base_url for links and
is_staff for Gate 2.
Do not stop on fund_admin_access or any other profile flag. Those come
from best-effort account enrichment, not from the permission check. Whether
this user may upload to this firm is decided by fa__create__firm-document
in step 4, and only its answer is reported as "no access".
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-upload-firm-document", checkpoint_label="skill_started")before proceeding.<SERVER>is the MCP server name you calledwelcomeon in this session.
Each run records each checkpoint at most once, and exactly one of skill_finished or skill_failed. A step reached again later in the same run (the next file, a retry of the files that didn't upload) does not checkpoint again.
This skill sends files from Bash. If you have no Bash tool in this session (for example, claude.ai chat), say so and stop:
I can't reach files on your computer from here. Upload it from your firm's Documents page in Carta, or run this from Claude Code or Cowork.
Take every file the user gave or attached in this request: one run uploads them all.
No path given → ask for one. In Cowork, a file the user attached to the
conversation has a local path; use it. Inside Bash that path is under
/sessions/<session_id>/mnt/uploads/, not the host's uploads/ folder, so
use the /sessions/… path for ls here and the send in 4b.
Check them all in one call:
ls -l "<file_path_1>" "<file_path_2>"
Missing, unreadable or a directory → say which, and ask for the right path for those files only. Keep the files that passed.
A passport, driver's license, national ID or similar identity document → drop it from the run and say why in one line: those go through KYC, not the Documents page. Carry on with the other files; stop only when none are left. Judge from the file name and what the user said; do not open the file to check.
Do not read the files' contents. The user chose them; this skill only moves them.
Resolve the firm once for the whole run. A wrong firm puts the documents in front of another firm's users.
Read ${CLAUDE_PLUGIN_ROOT}/references/gate-resolve-firm.md (the plugin's own
references/, not this skill's — do not search for it) and follow it, with:
<firm_question>: "Which firm should these documents go to?"<access_step>: fa__create__firm-document (step 4)<no_uuid_stop>: suggest uploading from the firm's Documents page in CartaIt yields <firm_uuid> for step 4, plus <firm_name> and, when known,
<carta_id> for Gate 3. A firm the user gave only as a UUID is shown in Gate 3
by that UUID.
"Upload this document" mid-session means the firm this conversation is about.
Never take the firm from the file names or the files' contents without asking;
a file name can only suggest one. When asking, the firm to suggest is the row
whose name matches every file's name by the name rule (for example
Great_Basin_Capital_Partners_NDA.pdf → "Great Basin Capital Partners"); the
user still picks it.
One confirmation covers every file. Show the firm once, linked to
{base_url}/investors/firm/<carta_id>/portfolio/documents when carta_id is
present; otherwise show the name unlinked. Never show UUIDs, except when the
firm has no known name and the user gave the UUID themselves.
Firm: <firm_name>
| # | File | Size |
|---|---|---|
| 1 | <file_name_1> | <size_1> |
| 2 | <file_name_2> | <size_2> |
List every file, however many there are: this is what the user approves.
Then say who will see them, verbatim except for the firm name:
Once uploaded, anyone at <firm_name> with firm administrator or full view access in Carta can see these documents, as can your Carta team.
Then call the AskUserQuestion tool, with the firm in the question —
"Upload documents to <firm_name>?", or "Upload <file_name> to
<firm_name>?" for one file — so the firm is confirmed on its own, not only as a
heading. A markdown list of options is not a gate — it does not block the
upload. Use these three option labels verbatim, in this order:
Nothing in Gate 4 runs until the user picks Upload all (or Upload). That one answer covers every file in the table: do not ask again between files.
Run 4a–4d for the first file in the Gate 3 table, then the next, in table
order. Each file gets its own upload URL: never reuse a url, fields or key
from another file. Keep each file's result (Uploaded, Failed at <step>, or
Not sent) for Gate 5.
Ask the user nothing between files: the Gate 3 answer covers the whole run,
and every failure is reported once, in Gate 5. A file that fails after its
retries is skipped: record where it stopped and go straight on to the next
file. Four failures stop the whole run instead, because each one
would fail every remaining file too: a refused url in 4b, a connection error
in 4b, a Carta command that is missing or not enabled, and a 403 from 4d. The
files not reached yet are Not sent.
call_tool({"name": "fa__create__document-upload-url", "arguments": {"filename": "<file_name>"}})
Returns {url, fields, key}. fields is an object of form fields the upload
must carry unchanged; key is the <s3_key> for 4c. Call 4a for a file only
when you are about to send it, and once: never fetch URLs ahead for later files,
and never fetch a second one except after a 403 in 4b.
A file goes only to the URL 4a returned for it, never to one taken from
anywhere else. Run this on one line, exactly as written: allowed-tools
matches the command text, so any other form makes the user approve every file.
<fields_json> is 4a's fields object as JSON, unchanged:
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-upload-firm-document/scripts/send_to_storage.py" '<url>' '<fields_json>' '<file_path>'
Single-quote every value; a value containing ' is written '\''. The
script checks that url is Carta's document storage and that the file exists,
sends the fields and then the file, and prints one JSON line:
{"status": 204} or any other 2xx → sent. Go to 4c.{"status": 403} → the URL most likely expired. Get one fresh URL with
4a and send once more. That is the only retry: at most two sends per file.Failed at sending with
the status code; go on to the next file. Only a 403 gets a fresh URL. Do
not change the command and try again, and do not fall back to another upload
route.{"error": "refused", "reason": …} → nothing was sent. A reason starting
with url stops the run and is reported; any other refusal (the file or
fields) makes this file Failed at sending; go on to the next file.{"error": "connection"} → in Cowork this usually means the sandbox can't
reach the storage service. Stop the run and tell the user to upload from the
Documents page in Carta.call_tool({"name": "fa__create__document", "arguments": {"key": "<s3_key>", "title": "<file_name>"}})
Keep id from the result: it is <document_id> for 4d.
A 5xx, a timeout, or a result with no id → call 4c once more with the
same <s3_key>. The file is already in storage, so this re-sends nothing. If the
second call also returns no id, this file is Failed at saving; go on to the
next file. Never repeat 4a or 4b for it.
call_tool({"name": "fa__create__firm-document", "arguments": {"firm_uuid": "<firm_uuid>", "document_ids": ["<document_id>"]}})
If this fails, retry 4d only, once, with the same <document_id>. Never
repeat 4a–4c: the document is already saved, and a second upload makes a
duplicate. If the retry also fails, this file is Failed at adding to the page; keep its <document_id> and go on to the next file. A 403 stops the
run instead (see the error table below).
Report once, after the last file. Link the firm name as in Gate 3; unlinked when
there is no carta_id.
Uploaded <uploaded_count> of documents to <firm_name>.
| # | File | Result |
|---|---|---|
| 1 | <file_name_1> | Uploaded |
| 2 | <file_name_2> | Failed at saving |
When anything was uploaded, add:
Carta has started classifying them and extracting their details. The documents are on the Documents page now, and their type and details appear there once extraction finishes.
With one file, a sentence replaces the table: "Uploaded <file_name> to <firm_name>."
Then offer, when the run reached every file and some failed:
1 - Retry the files that didn't upload ← recommended
2 - Open the firm's Documents page
3 - Done
A retry covers only those files and needs no new confirmation: the user already
approved them. A file Failed at adding to the page retries 4d only, with its
kept <document_id>; every other file starts again at 4a.
When one of the four run-stopping failures in Gate 4 ended the run, report it
as the error table below says and never offer a retry: it would repeat the same
failure, and after a 403 it would save documents that appear on no page.
Offer only:
1 - Open the firm's Documents page ← recommended
2 - Done
When every file uploaded:
1 - Open the firm's Documents page ← recommended
2 - Done
Leave out the Documents page option when there is no link.
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-upload-firm-document", checkpoint_label="skill_finished")with this report when at least one file uploaded. A report where no file uploaded recordsskill_failedinstead, as below.
Checkpoint on every stop before this run has recorded
skill_finished, whether or not this table lists it: callmcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-upload-firm-document", checkpoint_label="skill_failed", notes="<one-line reason>")instead ofskill_finished. That includes no Bash tool, a cancel at the confirm, a run-stopping failure in Gate 4 before any file uploaded, and a Gate 5 report where no file uploaded.skill_finishedmeans at least one document reached the firm's page; a stop that delivered none is a failure, and counting it as finished makes failed runs look like fast successful ones. Rows that recover and continue (a confirm rewritten as anAskUserQuestioncall, a fresh upload URL, a retried save, a skipped file) do not checkpoint, nor does a retry the user picks after the report: it is part of the same run.
| Situation | Response |
|---|---|
| No Bash tool | Gate 0 message; stop |
| You wrote the confirm options as markdown | Stop and call AskUserQuestion. Text does not block the upload |
| Identity document | Drop it from the run; it belongs in KYC. Upload the rest |
| Some paths missing | Ask for those paths only; keep the files that passed |
| Staff in local/test/demo name a firm | Match it against the firm list list_contexts returns (Gate 2) before asking for a UUID |
| Named firm not in the firm list | Not a refusal — ask for the firm's UUID (Gate 2). Never upload to a different firm |
| No firm named and the user has several | Ask (Gate 2). The active firm is the recommended option, never a silent default |
| No firm named and the list has more than 4 firms | Ask which firm in plain text, then match the answer (Gate 2) |
| Staff firm search finds nothing | Say so and ask again; do not guess another firm |
| A Carta command is missing or says it isn't available | "Uploading documents isn't enabled for your account yet." Stop the run. No retry, no other route |
fa__create__firm-document returns 403 / permission denied | "You need firm administrator or full view access at <firm_name> to add documents. Ask your firm's Carta administrator." Stop the run: the other files would fail the same way. This file is saved in Carta but not on the page; say so. Do not retry |
The script refuses url | Stop the run; nothing was sent |
The script refuses the file or fields | Mark it Failed at sending; go on |
| A send fails twice for a file | Mark it Failed at sending with the status code; go on to the next file. Do not vary the command |
fa__create__document returns 5xx or no id | Retry once with the same key; if that fails too, mark the file Failed at saving and go on |
| 4d fails twice for a file | Mark it Failed at adding to the page; go on. In Gate 5 say: "The file was uploaded but couldn't be added to <firm_name>'s Documents page." A retry runs 4d only |
| Some files failed, others uploaded | Gate 5 shows each file's result and offers to retry only the ones that didn't upload |
| User asks to delete or replace a document | Not supported here; they can do it from the Documents page in Carta |
Every call in Gate 4 writes to Carta. Never loop on one, and never reach for a different tool to get around a failure — record what failed, and stop the run where the table says to.
What SKILL.md sets; muted values are Claude Code's defaults
inheritThree short reads, in order
npx claudepluginhub carta/plugins --plugin carta-investors37 skills in this plugin
/carta-agm-deck-builderBuilds a branded AGM (annual general meeting) slide deck for LPs from a fund manager's live Carta fund data: performance and NAV trend, benchmarks, portfolio companies, capital deployed, LP geography and fees. The deck is a browser-based HTML presentation in the firm's own logo, colors and fonts, with "Powered by Carta" on every slide. Trigger phrases: "AGM deck", "build an AGM deck", "annual general meeting deck", "LP meeting deck", "investor meeting deck", "annual meeting slides", "branded fund deck". Do NOT use for a brand board without a deck (use carta-brand-extraction), a Schedule of Investments (use carta-soi), peer benchmarks or one-off fund metrics (use carta-fund-performance or carta-explore-data), or an LP profile page (use carta-lp-summary).
/carta-auditOpen an audit engagement on a Carta fund: pick the fund and audit year once, see how many documents sit in each audit area (General, Cash, Investments, Partners' Equity, Income & Expenses, Financial Packages, Supplemental), and choose what to do next. Use when someone starts working an audit rather than naming a specific task — "start my audit", "I'm auditing this fund", "what can I do for this audit", "help me with this audit", "which funds can I audit", "set up my audit engagement" — or when they ask for audit documents without saying which fund or year. Establishes the fund and year the other audit skills reuse, so the caller is not asked twice. NOT FOR: downloading audit documents for a known fund and year (carta-investors:carta-audit-download), checking whether they are complete (carta-investors:carta-audit-readiness), or what changed since the last check (carta-investors:carta-audit-whats-new).Other plugins' skills for the same job