/carta-investors:carta-lpa-auditfrom Carta Investors
Aggregates LPA and side letter terms across a firm's funds into a single table showing management fee, carry, hurdle, fund term, and investment period. Flags missing LPAs, partial data, name mismatches, and unmatched side letters.
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:
${CLAUDE_PLUGIN_ROOT}is this plugin's root, and seeing it unreplaced in this text is not a missing file: the root is this skill's base directory (the path shown when the skill loads) with its last two parts,/skills/<this skill's directory>, taken off the end. Write that path wherever this skill writes${CLAUDE_PLUGIN_ROOT}, in Bash commands too, and go on. Working that path out is not searching the disk. Only a "not found" when you read or run one of these files at that path means a file is missing, because 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 a file is still not found, tell the user Carta's plugin files aren't available in this session yet (link your computer, then ask again) recordskill_failedas Error handling describes, and stop. Don't search the disk for them.That is the one message for a missing file in either mode: don't fall back to text tables, copy the script, or hand-write the page.
Show extracted LPA terms for every fund the firm manages, as one sortable table — management fee, carry, hurdle, fund term, investment period and side-letter count, one row per fund, so terms compare down a column. Click any row to open that fund's side panel: economic terms, side letters, LP roster and fund identity. Coverage gaps (missing, partial, name-mismatch or no-documents LPA, series governed by a parent agreement, side-letters-without-LPA) surface as row badges and summary tiles at the top that double as filters.
Required output: the interactive HTML artifact (Mode A). Every invocation of this skill must build the artifact and deliver it. The text-only Mode B is a fallback for genuine execution failures only — never a routing preference. If Mode A fails, tell the user what specifically failed before rendering Mode B. Do not decide "this user probably wants text" based on how they phrased the request. See Step 2 for the rules.
Follow these rules every time except for machine-readable output (JSON, XML):
• — never - or * for user-facing bullets. Numbered lists use 1. 2. 3.Mmm D, yyyy format (e.g. Jan 5, 2024).$123,456-style), negatives parenthesised (($445,443)). A per-extraction currency is read from RAW_JSON (not ATTRIBUTES, which is unpopulated for these two document types — see Caveats): the currency_code siblings (a small share of documents) first, else the free-form currency value when it is exactly a three-letter ISO code (e.g. EUR). When known, the amount renders with that currency's own symbol or code (e.g. €123,456). When neither yields a code, the fund's Carta reporting currency (fa__list__entities' currency, carried in the funds file) fills it: on the agreement, each LP commitment, and a side-letter commitment taken from the fund's own roster, never on a letter the fund received as an investor. A currency the document states always wins. When none of these is known, the currency is unknown: render the number bare (123,456) and never assume USD. Never sum amounts across currencies. Side letter capital_commitment fields arrive from the pipeline pre-formatted (e.g. "MYR 15,000,000") and are displayed verbatim — populated on a minority of side letters (see Caveats).X.XX% (two decimals for rates; one decimal is fine for large percentages).— (em-dash), never N/A, blank, or prose like "not recorded". The exception is a fund-table or Step B2 tear-sheet cell (fee, carry, hurdle, fund term, investment period) on a fund whose terms were extracted: write "Not found", never "None" — an empty extraction can't tell a term the agreement doesn't have from one that wasn't read. A stated 0 still reads "None", or "No fee (per LPA)" for the fee, and a fee the LPA charges but prices in another document (lpa.mgmtFeeSetOutsideAgreement) reads "Charged; rate set outside the LPA" in every view. Other tear-sheet rows (post-investment fee, waterfall, capital call notice) keep —. Carry tiers is omitted when null, and the drill-down tables omit any blank row (see Drill-down).Always use Markdown tables for list output with more than one column.
AskUserQuestion instead.Direct, calm, short sentences. Professional. No "please". Not sycophantic.
After every major step, print a one-line status in plain language: what completed and what comes next.
Example: Fund entities loaded across 8 funds. Looking up LPA extractions…
Never go silent for more than one step. Never present results without a prior status line.
User-facing language — no internals, ever. The user is a fund manager, not an engineer. Status lines, summaries, and error messages must use plain investor vocabulary only. Never expose any of the following to the user — not in a status line, a summary, an error, or an aside: query names, SQL, pagination,
total_rows, row or byte counts, blob/file paths, "Snowflake"/"DWH"/"ndjson", latency or timing breakdowns, retries, UUIDs (includingDOCUMENT_ID), or exit codes. Talk about funds, LPAs, side letters, and terms — never the machinery.
list_contexts and list_accounts available; the firm to audit is the one the request names or links, or the user's only firm; Step 1 asks when it can't tell.fa__list__entities) to scope the LPA audit. A firm with zero fund entities will hit the empty state.Artifact tool; without it, Mode B gives a full text answer, not a degraded one.The Mode B text path is fully accessible in any text environment — all output is plain Markdown tables.
The Mode A interactive HTML artifact has not yet been formally audited for WCAG 2.1 AA compliance. Known considerations:
<button> with aria-expanded / aria-controls. Opening the panel moves focus to its title; Escape closes it and returns focus to the row. ↑/↓ step between funds.<button>s with aria-labels; the "N of M" position is an aria-live region.<thead> / <tbody> semantics; its sort headers are <button>s and expose aria-sort.Users who need a WCAG-compliant text view should request Mode B explicitly ("text only", "no file").
Trigger phrases anchor on fund terms, LPA, side letters, or a specific fund name. The skill defaults to the data-first fund-terms view; the coverage-gap questions (which funds are missing an LPA, which are partially extracted) still route here and get surfaced inline in the fund table.
A question about what one fund's LPA needs LPAC (advisory committee) approval or LP consent for, or its investment limits ("what needs LPAC approval for Fund IV?", "can I make a 22% concentration investment with LPAC approval?") goes to Skill(carta-investors:carta-lpa-governance) when that skill is available; otherwise it is a Step B4 question.
Open every invocation with:
"I'll pull the extracted LPA terms for every fund you manage — management fee, carry, hurdle, waterfall, term, side letters — into one table. Missing LPAs and partial extractions surface inline. Side letter economic provisions (fee and carry reductions, waivers, hurdle changes) are extracted and compared against each fund's own LPA."
Then proceed immediately to Step 1.
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-lpa-audit", checkpoint_label="skill_started")before proceeding.<SERVER>is the MCP server name you're using forlist_contextsin 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 (a re-render, a follow-up question, a drill-down, a re-publish) does not checkpoint again.
Every stop in this step records
skill_failedfirst, as Error handling describes: the run delivered nothing, and a stop that records nothing drops out of the usage stats. The one exception is the no-match stop for a firm the request named without a link: a pasted firm link resumes the run, so it records nothing.
…/investors/firm/<carta_id>/…), call list_contexts(firm_id="<carta_id>") and use the row whose carta_id equals it. Carta staff have no firm memberships, so this is how a staff login reaches a client firm.list_contexts. If the request names a firm, use the one context whose name matches it. If no firm is named and exactly one context comes back, use that one. In any other case, ask which firm with AskUserQuestion, listing the contexts' names./investors/firm/<number>/ page) and I'll use that." That list is a synced copy that can lag a new grant, so never present it as a lack of access.set_context with the chosen firm's id. That id is your <firm_id>, the sole filter both DWH queries scope on.<firm_name>.set_context, make all seven lookups at once in a single turn: list_accounts searching for <firm_name>, and the six fa__list__entities calls in step 5. None of them needs another's result, and each one made separately costs the user a full round trip before the page can start. In the list_accounts result, find the entry with type: "investment firm". Extract the numeric portion of its id (e.g. "organization_pk:2645" → 2645) — this is <org_pk> for the documents link and the artifact's numeric Carta ID.fa__list__entities (via read_tool), in the batch step 4 sends: one call per entity type, all six, every run, then merge the results. Pass {"entity_types": "fund"}, "spv", "syndicate_spv", "gp_entity", "management_co" and "elimination".
entity_types, and never skip a type. An unfiltered list for a firm with many entities is larger than the response limit and fails with "response too large". A skipped type silently drops all of its entities from the audit, so an SPV left out shows as if it had no LPA.${CLAUDE_PLUGIN_ROOT}/references/list-firm-entities.md (the plugin's own references/, not this skill's — do not search for it).name, its numeric carta_id, its entity_type_string and its currency (the fund's Carta reporting currency) — these are the <firm_funds>, and their names are the <firm_fund_names> the audit will be scoped to. Keep every entity, including GP, management-company and elimination entities: the artifact matches all of them and then sets aside the ones that never carry an LPA (see Step A2a).<base_url> from the current Carta MCP server context — never hardcode an environment URL. For the production MCP server (mcp.app.carta.com), <base_url> is the Carta production web app URL. For any other server, default to the same production URL.Pre-flight check: confirm <firm_id> is a non-empty UUID string (matches [a-f0-9-]{36}). If not, stop with: "Could not determine your firm ID. Try reconnecting to the Carta MCP server."
Firm scoping is done in SQL, on
FIRM_IDalone.<firm_fund_names>is not a scoping input: it is what the fund-name matching transform (JS in Mode A,process.pyin Mode B) matches the returned LPA fund names against, to decide which of the firm's funds each extraction belongs to, and which have no LPA at all. Every fund the firm manages needs to be in that list even when it has no extraction, or a missing LPA cannot be reported as missing.
Tell the user: Firm context loaded: <firm_name>. Fetching LPAs and side letters…
Uploads offered in this skill. Every "drop … into this chat" line in this skill (the artifact, the next-step text, the error-handling rows and the drill-down) follows two rules. Without a Bash tool (claude.ai chat), leave out the drop-in half and keep the Carta link: the upload can't reach the user's files there. Files the user drops or names during this conversation go to carta-investors:carta-upload-firm-document for <firm_name>, so it does not ask which firm.
The default output of this skill is the interactive artifact (Mode A). Proceed directly to Mode A Step A1.
ALWAYS build the interactive artifact (Mode A). This is not a preference or a default — it is the required output of this skill. Text-only tables are a fallback for genuine execution failures, never a choice you make based on how the request was phrased.
Do NOT route to Mode B based on any of these signals:
| User signal | What must happen |
|---|---|
| "just tell me" / "quick summary" | Still build Mode A. The artifact IS the quick summary — summary tiles at the top plus the fund table. |
| Asks about one specific fund by name | Still build Mode A. After the artifact opens, tell the user to click that fund's row. |
| "text only" / "no file" | Still build Mode A first. If the user re-affirms after seeing the artifact, then render Mode B tables as a supplement. |
| Speed / cost concern | Still build Mode A. The Live Artifact fetches its own data at render time and costs nothing extra in your context. |
The ONLY legitimate reasons to fall back to Mode B:
Artifact tool after loading it (a genuine, structural reason, not a judgment call about the environment), or render-artifact.py exits non-zero on a validation error (a missing plugin file is handled by the note at the top). Do not preemptively route based on "this might not work" — attempt Mode A, and only when a specific error surfaces, fall back with a plain-English explanation of what went wrong.If Mode A does fail, tell the user what failed before falling back. Example: "I couldn't build the fund-terms view just now — I'll give you the terms as text instead." Never silently downgrade, and never describe scripts, plugins, paths, or sandboxes while doing it.
The artifact shows every fund the firm manages as a row in one sortable table, with coverage gaps (missing, partial, name-mismatch or no-documents LPA, series governed by a parent agreement, side-letters-without-LPA) as row badges and summary tiles that filter the table. A vehicle whose agreement states no fee or carry (an SPV, aggregator, feeder, blocker or side fund; see Caveats → Partial LPAs) gets its own "Vehicle agreement" badge and tile, not a gap. Clicking a row opens that fund's side panel — economic terms, side letters, LP roster (with commitments and totals when the agreement states them), fund identity — beside the table on wide screens and as a drawer over it on narrow ones, with previous/next to step through funds without closing it.
The page fetches its own data. You issue no warehouse queries in Mode A. The rendered HTML calls Carta at runtime through
claude.use("mcp"), pinning firm context and running the LPA and side-letter queries itself, then matches them against the firm's fund list in JavaScript. This is why Mode A costs the same for a 40-fund firm as for a 3-fund one — no rows ever pass through your context.Consequences worth holding onto:
- There is no NDJSON blob to resolve, no
process.py, and no data file to assemble.- Do not hand-write or edit the artifact HTML. Every render goes through
render-artifact.py.- Do not pre-fetch LPA data "to check it worked". The artifact reports its own errors to the viewer.
Run both checks, and stay quiet about them when they pass:
${CLAUDE_PLUGIN_ROOT}/references/gate-has-artifact-tool.md — can this session publish at all?${CLAUDE_PLUGIN_ROOT}/references/gate-carta-connector-name.md — the connector name the page will call.Both sit in the plugin's references/ directory — ${CLAUDE_PLUGIN_ROOT}/references/, alongside the other plugin-wide references. They are not under this skill's own references/. Read them by that exact path; don't search for them.
This skill has its own text answer, so a failed first check does not stop it and its stop message is not shown. If Artifact is still missing once that check has tried to load it, go to Mode B and open with one plain sentence: "The interactive fund-terms view needs an up-to-date Claude Code or Cowork with Artifacts turned on for your organization, so here are the fund terms as text." Say nothing about checks, modes, or sandboxes.
Store the name the connector gate resolves as <CARTA_MCP_SERVER>. Step A2 passes it to the render script and Step A3 puts it in the capabilities.mcp grant. It is one string; there is nothing to derive and nothing to keep in sync.
2a. Write <firm_funds> from Step 1 to a JSON file in the session's current working directory, named <firm-slug>-funds.json. Contents are a JSON array with one object per entity:
[
{"name": "Acme Ventures Fund I, L.P.", "carta_id": 4218781, "entity_type": "Fund", "currency": "EUR"},
{"name": "Acme Ventures Fund II, L.P.", "carta_id": 4237898, "entity_type": "Fund", "currency": "EUR"},
{"name": "Acme Ventures GP, LLC", "carta_id": 4223606, "entity_type": "GP Entity", "currency": "EUR"}
]
carta_id powers each fund's "Open in Carta" link and must be digits; entity_type is fa__list__entities' entity_type_string, verbatim; currency is its currency, a three-letter ISO code or null (see the Amounts rule). Entities typed GP Entity, Management Co or Elimination Entity never carry an LPA, so the page lists them under "not audited" instead of reporting them as missing — unless a side letter was attributed to one, in which case it stays in the table. An entity whose name marks it as no fund vehicle (wire instructions, F/B/O or custodial account, trust, duplicate, two funds joined by "and" or "&", or the firm's own name; a name that adds "Fund" to the firm's, such as " Fund, L.P.", is a fund) is listed the same way, but only when no agreement (its own or a parent's) matched it and no side letter was attributed to it. A bare name string is still accepted in place of an object; that entity gets no link, and only its name can set it aside.
Preserve each name verbatim — apostrophes, ampersands, commas and all. The script JSON-escapes hostile characters at substitution time. It is a file rather than a command-line argument because fund names contain apostrophes ("O'Brien Capital Fund, L.P."), which terminate shell single-quoting.
This file is required, not optional. Unlike carta-co-investors' vehicles file, an LPA audit with zero known funds is a Step-1-level stop condition (Step 1 already stops if
fa__list__entitiesreturns nothing) —render-artifact.pyrejects a missing or empty fund-names file rather than rendering an artifact with nothing to audit.
2b. The script is ${CLAUDE_PLUGIN_ROOT}/skills/carta-lpa-audit/scripts/render-artifact.py. Run it by that full path and do not search for it: in Cowork, Glob and find cannot see plugin files, even though the anchored path runs.
2c. Render. Run it on one line, exactly as written below. allowed-tools matches the command text, so a shell variable, a different path, or a line break fails the allowlist and the call has to be approved by hand each time:
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-lpa-audit/scripts/render-artifact.py" "<CWD>/<firm-slug>-lpa-audit.html" "<firm-slug>-lpa-audit" "<CARTA_MCP_SERVER>" "<firm_id>" "<firm_name>" "<org_pk>" "<base_url>" "<CWD>/<firm-slug>-funds.json"
If the script file does not exist, follow the note at the top of this skill on plugin files that can't be found.
Positional arguments:
<CWD>). Use pwd to resolve <CWD> if needed.<firm-slug>-lpa-audit.<CARTA_MCP_SERVER> from Step A1.set_context with this on every load, so the queries succeed even if the user switched contexts elsewhere.<org_pk> from Step 1, the numeric organization pk, for the documents deep link.<base_url> from Step 1.On success the script prints one stdout line: the absolute output path. It exits non-zero on any validation failure (bad UUID, non-numeric Carta ID, base URL with a path or a non-https scheme, unusable connector name, output or fund-names file outside CWD, missing/empty fund-names file). If it fails, tell the user in plain words what failed, then fall back to Mode B (Step 2) — do not hand-write the HTML. A missing template or missing placeholders means the plugin's files are broken: follow the note at the top of this skill.
Slugification rules (apply to the firm name, not any UUID):
Example: "Acme Capital Partners, L.P." → slug "acme-capital-partners-lp" → output acme-capital-partners-lp-lpa-audit.html, artifact id acme-capital-partners-lp-lpa-audit.
Re-running the skill for the same firm produces the same artifact id and filename, so Step A3 updates the artifact in place.
The render script only writes the HTML file. Nothing picks up file changes on its own — you MUST publish after every render, or the reader keeps seeing the prior version.
First look for an existing one:
Artifact({action: "list", scope: "mine"})
If a — LPA coverage audit artifact is already published, keep its url. Then publish — one call either way, url being the only difference:
Artifact({
file_path: "<absolute path printed by the render script>",
url: "<url from the list — omit entirely on a first publish>",
title: "<Firm Name> — LPA coverage audit",
description: "<Firm Name> — extracted LPA terms and side letter coverage across every fund",
favicon: "📋",
capabilities: {
mcp: {
servers: [
{ server: "<CARTA_MCP_SERVER>", tools: ["call_tool", "set_context", "welcome"] }
]
}
}
})
All three tools must be in the grant, or the page loads and the matching call rejects with not_in_manifest. The artifact only calls welcome itself when the MCP reports a "session not initialized" error, then retries the original call once.
Keep title and favicon stable across redeploys, and restate the whole capabilities object every time: a non-empty object replaces the stored grant, so a tool left out is revoked.
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-lpa-audit", checkpoint_label="skill_finished")as soon as the publish above has succeeded, before the confirmation below. Mode A has nodata_fetchedcheckpoint — the page fetches its own data after your turn ends.
Your fund-terms view for is ready: Open — LPA coverage audit
Fill the link with the url the publish call returned. The side panel does not always open by itself, and this link is how the user reaches the page when it stays closed, so never say the page is loading or open in the sidebar.
Then a 3–5 bullet summary of what it shows — one sortable table of every fund's terms, coverage gaps (missing, partial, name-mismatch or no-documents LPA, series governed by a parent agreement, side-letters-without-LPA) as badges and summary tiles that filter the table, click any row for its side panel (economic terms, side letters, LP roster, fund identity) and step between funds with ↑/↓, plus search. Keep it brief; the customer can see the artifact. Skip the bullets on re-invocation if you've already shown them.
Side letter caveat. Always append once, right after the confirmation message:
"Each side letter lists what was extracted from it: fee and carry changes (with LPA comparisons where relevant), custom fee and carry schedules, MFN, excuse and transfer terms."
Provision-query follow-up. Always append:
"Want to search across every fund's LPA terms and side letter provisions for a specific question — e.g. 'do any provisions prevent me from investing in defense tech?' or 'which LPs got reduced carry?' — just ask. See Step B4."
Numbers live in the artifact, not in your reply. Do not restate coverage counts, fund statuses, or fund names in chat — you have not seen them. The page queries Carta after your turn ends, so any figure you quote is invented.
Render fund-by-fund tear-sheets as Markdown, one section per fund. Single fetch, single render.
Steps B0–B3 (workspace and cache, the fetch, assembly, the tear-sheets and the next-step menu) are in ${CLAUDE_PLUGIN_ROOT}/skills/carta-lpa-audit/references/text-fallback.md (this skill's own references/, not the plugin's). Read it by that exact path when you enter Mode B and follow it; do not search for it. This plugin's root is ${CLAUDE_PLUGIN_ROOT}: wherever that file writes <plugin_root>, write this path out in full.
Step B4 is below, not in that file, because it also runs after Mode A. Step B4 and the Drill-down read the cache that Steps B0–B1.5 build, and B4 re-offers Step B3's menu. When this run has not read ${CLAUDE_PLUGIN_ROOT}/skills/carta-lpa-audit/references/text-fallback.md (after Mode A), read it by that exact path first, run Steps B0–B1.5 to resolve <WORKSPACE> and build the cache without recording their checkpoints, and stop once the cache holds this firm's data: a fresh cache in Step B0 does not go on to Step B2, and the "Preparing results…" and "Building your coverage report…" messages are not said. Then take B3's menu from it.
Triggered by "Ask a question about provisions" in Step B3, or any free-text question about LPA terms / side letter provisions that arrives after the initial report renders. Also runs after Mode A — the interactive artifact doesn't have a query box inside it, so the follow-up happens in chat.
A question about LPAC (advisory committee) approval, LP consent or investment limits for one fund goes to Skill(carta-investors:carta-lpa-governance) when that skill is available: this audit's data leaves governance out. Without it, answer here and say governance terms aren't in the data this audit reads.
Prompt the user (unless they already asked):
"What are you looking for in your funds' LPA terms or side letter provisions?"
Then search the cached JSON at <WORKSPACE>/carta-lpa-audit-data.json. For each fund:
lpa.terms.* for prose fields that might carry restrictions or definitions (waterfallStructure, mgmtFeeBasisInvestmentPeriod) and lpa.fund.fundPurpose for the investment mandate — these are the LPA-side fields most likely to encode a restriction.sideLetters[*].economicProvisions[*] for every provision. Match on provision_type and inspect rate_paid when relevant. A question about fee or carry changes ("which LPs got reduced fees?") also reads each letter's complexManagementFee and complexCarry: a letter that changes the fee or carry in more than one step (1.5% during the investment period, 1.25% after) states it there, not as a typed provision.mfnProvision, excuseRight and transferRestrictionModification text alongside economicProvisions (see Caveats).Presentation:
"Searched funds' LPA terms and side letter provisions for
<user's question>.Matches found: • : <side letter's counterparty> — <provision_type>: (LPA: ) • : LPA fundPurpose mentions "" —
Nothing surfaced for: <specific sub-question that requires fields this audit can't read>. This may exist in the source documents — it just isn't in the extracted data available here, so check the source LPA or side letter to be sure."
Never fabricate a match. If the extraction data doesn't contain the answer, say so plainly rather than inferring from partial evidence. When the user's question is a compliance-material one ("can I invest in X?"), always add: "This search covers only what Carta's LPA + side letter extraction currently captures. Confirm any answer against the actual LPA and side letter PDFs before acting on it."
After answering, re-offer Step B3's menu so the user can drill further or exit.
Triggered when the user selects "Drill into a fund" or names a specific fund.
If this run has not built the cache, do the paragraph above Step B4 first. The steps are in ${CLAUDE_PLUGIN_ROOT}/skills/carta-lpa-audit/references/drill-down.md (this skill's own references/, not the plugin's). Read it by that exact path and follow it; do not search for it.
AI computation: No — bucket assignments, tear-sheet values, and side letter counts come directly from Carta's Document AI extractions via deterministic queries + Python assembly. Fund-name matching (extracted fund name → firm's fund list) is a deterministic name heuristic, not a system-recorded link; matched rows are labeled with the source fund name in boundingBoxes for verification.
economic_provisions, custom fee and carry schedules and MFN, excuse and transfer terms, side letter capital_commitment (~15.7% coverage), bounding-box provenance.lpaMatch: "close" (typo-level or legal-form difference, or the one fund whose name is the agreement's with one run of words written as initials, either way round, "FP Global I SPV" and "Future Positive Global I SPV") is an inference, not a system-recorded link, and renders with a "Similar name" tag.DOCUMENT_AI_RECORD doesn't expose them). Bounding-box provenance provides page-level source citation instead.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-lpa-audit", checkpoint_label="skill_failed", notes="<one-line reason>")instead ofskill_finished.skill_finishedmeans a report or answer reached the user; a stop that delivered neither is a failure, and counting it as finished makes failed runs look like fast successful ones. Rows that recover and continue (a fall-through to Mode B, a fund that lands in No documents, a firm link pasted after the no-match stop for a named firm) do not checkpoint.
| Symptom | Likely cause | What to tell the user |
|---|---|---|
list_contexts returns no firm | User not authenticated or MCP session dropped | "I couldn't find any Carta data associated with your account. Try reconnecting to the Carta MCP server. If you believe you're already connected, contact Carta Support." |
| No context matches the firm the request names or links | The firm name is misspelled, the login lacks that firm, or the synced firm list lags a new grant | "I couldn't find among the Carta firms this login can open. If you are Carta staff, paste the firm's Carta link (the /investors/firm/<number>/ page) and I'll use that." |
firm_id fails pre-flight UUID check | MCP session returned malformed context | "Could not determine your firm ID. Try reconnecting to the Carta MCP server." |
fa__list__entities returns no entities across all six types | Firm has no fund vehicles in Carta yet | "I couldn't find any funds on file for <firm_name>. Contact Carta Support if you believe this is an error." |
| 401 or 403 from any query | Carta session expired | "Your Carta session has expired. Reconnect to the Carta MCP server and try again." |
| Queries T and O both return 0 rows | No LPA or operating agreement extraction carries this firm's FIRM_ID — either none uploaded, or the firm's extractions predate the FIRM_ID backfill | Every fund lands in No documents. Include in BLUF: "No LPA documents have been extracted yet across any of your funds. Drop your LPAs into this chat, or upload them at the link above, to populate this audit." Do not retry with a fund-name filter to go looking for them. |
| A fund shows Missing, Name mismatch or No documents but the user insists its LPA is uploaded | Its extraction is likely in the unbackfilled 'fund_admin' residue (see Caveats) | "That LPA is uploaded but hasn't been linked to your firm in our extraction records yet, so it isn't showing here. Contact Carta Support to have it re-processed." |
render-artifact.py exits non-zero | Bad UUID, non-numeric Carta ID, malformed base URL, unusable connector name, output or fund-names file outside CWD, or missing/empty fund-names file | Tell the user in plain words what failed, then fall back to Mode B. Never hand-write the artifact HTML. |
render-artifact.py reports a missing template or placeholders | The plugin's files are broken | Follow the note at the top of this skill: one stop message, no Mode B. |
No Artifact tool, even after Step A1 tried to load it | Artifacts are off or Claude is out of date | Go to Mode B, opening with Step A1's sentence on why the answer is text. |
| Artifact publishes but renders an error | The page's own bootstrap() hit a required-query failure | That error is the page's own and names its cause. Do not re-run Mode A blind; read what the viewer sees first. |
| Series shows 'Governed by parent agreement' | The series' own agreement is not on file but its parent LLC's is; the parent's carry, fee and hurdle belong to specific series, so none are shown on the others | Not a gap in the match. To show terms for the series, drop the agreement or schedule that names it into this chat, or upload it in Carta. |
| Fund shows as 'Name mismatch' or 'Missing' despite an LPA existing | The LPA's extracted fund name has a word the fund's Carta name lacks (or vice versa), or it tied between two sibling funds (possibleLpaNames) | Suggest running Mode B drill-down with the fund name as it appears in the LPA. Never re-attribute a sibling vehicle's LPA (e.g. a Holdings or GP entity's) to the fund by hand. |
DOCUMENT_AI_RECORD.FIRM_ID backfill is not finished, and unbackfilled extractions are invisible. Roughly nine in ten LPA and side-letter extractions carry a real firm UUID. The remainder are stamped 'fund_admin', belong to no firm, and are therefore returned to nobody. A fund whose only LPA sits in that residue reports as missing an LPA until re-extraction or a backfill stamps its FIRM_ID. This is the accepted cost of scoping on the tenant key alone.RAW_JSON, never from ATTRIBUTES. ATTRIBUTES:currency_code is populated on almost no LPA rows and no side-letter rows, and the few LPA rows that carry it are stray RECORD_TYPE = 'stock_purchase' events misfiled under an LPA document type — not a record type this skill reads, so ATTRIBUTES is not a usable currency source here. RAW_JSON carries a clean currency_code sibling next to each money amount — populated on only a small share of those money fields. Where present, this skill derives one document_currency_code per extraction via COALESCE across gp_commitment_amount, target_fund_size, minimum_lp_commitment, and the first limited-partner entry (LPA), or side_letters[0].capital_commitment (side letters) — never per-LP, since multiple LPs within a document have never been observed to disagree. Since 2026-08-01 most LPAs carry only the free-form RAW_JSON:currency:value string and almost none carry currency_code siblings, so the free-form value is the fallback — but only when it is exactly a three-letter ISO code (^[A-Z]{3}$); prose such as "United States dollars" or "Sterling or £" is never parsed. When neither yields a code the fund's Carta reporting currency fills it (fill_fund_currency / fillFundCurrency, applied where each fund is joined to its entity); in a replay across many firms, the Carta currency covered every agreement with no code, and where both were known they agreed. With no Carta currency either, the currency is unknown and amounts render bare — never assume USD. Side letter capital_commitment values arrive pre-formatted ("MYR 15,000,000") on the limited_partner entity row (not the side_letter event row) and are displayed verbatim — populated on a minority of limited_partner rows across side letters. Only an exact ISO code in RAW_JSON:currency:value is used — the field is free-form (many distinct strings for "USD" alone, e.g. "United States dollars", "Sterling or £"), so anything else is ignored. RAW_JSON's schema is not stable across extractor versions — one version (lpa-1.0, a small minority of extractions) wraps the entire payload a level deeper under an extraction key, so every RAW_JSON path above is tried both bare and extraction.-prefixed via COALESCE; a path that doesn't exist in a given document's shape returns NULL harmlessly.DOCUMENT_AI_RECORD does not expose per-field confidence. boundingBoxes (page + coordinates per field) is carried through as the audit trail, but the artifact does not display it yet — point a reader who needs provenance at the source document.economic_provisions come from RAW_JSON only. ATTRIBUTES never carries mfn_provision, excuse_right, transfer_restriction_modification, complex_management_fee or complex_carry; each is an envelope object whose summary sibling is what renders. economic_provisions holds only a reduced or waived fee or carry, so a negotiated fee schedule or a carry carve-out appears in complex_* and an MFN, excuse or transfer clause in its own field. Coverage varies by firm: across all firms summary text reaches DOCUMENT_AI_RECORD for only a small share of side-letter event rows, while a single firm can be far higher. A letter with none of them says "No provisions extracted", which means none were extracted, not that the letter grants nothing.RAW_JSON is windowed to one row per extraction, not selected on every row. It averages ~55KB/row for LPAs and ~9.6KB/row for side letters, and is identical across every row of one extraction (2–4 rows for an LPA, ~3 for a side letter) — selecting it unwindowed would multiply that cost by the row count for no benefit. Both Query T and Query L null it out on every row but the first (ROW_NUMBER() OVER (PARTITION BY EXTRACTION_ID ORDER BY RECORD_INDEX) = 1); process.py and the JS transform already scan an extraction's rows for the first non-null RAW_JSON, so this is transparent to both. A test fails if a query selects RAW_JSON without that windowing.RAW_JSON is pruned to the paths the transforms read, never selected whole. The full document runs to tens of kilobytes for an LPA and several for a side letter, almost all of it citation envelopes and sections this skill never reads (governance, reporting, signatures, bbox_index, …). Selected whole, one firm's Query T reached about 10MB of ndjson and the largest firm's nearly 30MB; wrapped and escaped in the MCP response, that tripped the connector's 16MB cap — "Connector response exceeded the 16 MB limit" — so the artifact could not load at all. Each query therefore builds RAW_JSON with OBJECT_CONSTRUCT, holding only the paths in the "RAW_JSON as the source" table: every leaf as COALESCE(<leaf>:value, <leaf>), and the limited_partners / members / side_letters arrays as a TRANSFORM keeping only the fields the readers take from each entry. A citation envelope's citations, text and reasoning are most of its size and nothing reads them. Left in, they push a 40-row page past dwh:execute:query's 200 KiB inline ceiling for dozens of firms, and the page fetches every overflowing page again in smaller pieces. Reduced to values, the heaviest page across all firms is about half that ceiling. rjGet / _rj_get unwrap an envelope when one arrives and pass a bare value through. The root is COALESCE(RAW_JSON:extraction, RAW_JSON), so the lpa-1.0 wrapper is flattened once in SQL — safe because no document carries both shapes; the readers' extraction fallback stays for older renders. Pruned, even the largest firm's queries are a fraction of that size, with identical reader output on every LPA and side letter. A new RAW_JSON read path, or a new field read off an array entry, must be added to the projection in both SKILL.md and artifact.html — a path left out reads null everywhere, silently; a test fails if the page reads a path or an array field the projection omits, if a query passes an envelope or an array through whole, or if a query selects RAW_JSON whole.set_context in a long session. Row-level access filters DOCUMENT_AI_* on the active firm, and an explicit FIRM_ID predicate does not override it. Observed in a long session: the same query returned rows, then none, because the context silently reverted between calls. A zero-row result is therefore ambiguous — re-check list_contexts and confirm the active firm before concluding data is missing.carried_interest.preferred_return_multiple (1.6 for 1.6x), beside preferred_return_rate when the agreement states both, and the hurdle shows as "1.60x" or "8.00% · 1.50x". Extractions made before that field existed still carry a multiple as a rate in the hundreds (160, 300), which the "above 30%, may be a multiple" term check flags until they are re-extracted.limited_partnership event row that carries economic terms, or its row may state only terms the table does not show, such as a waterfall type or a post-investment fee. PARTIAL is decided by headlineTermCount (the number of fee, carry, hurdle, term and investment-period fields stated) being zero. Those funds land in the "Partial" bucket rather than "Extracted," unless the fund is a vehicle: an SPV by Carta entity type or name, or an aggregator, feeder, blocker, side fund, AIV / alternative investment vehicle or co-invest vehicle by name (VEHICLE_WORDS). A vehicle whose agreement carries no non-zero fee, carry, hurdle or waterfall is a "Vehicle agreement": its economics are usually pro rata or set in the main fund's agreement. Every vehicle is reported the same way, as an agreement that states no fee or carry of its own: that describes the document, not the vehicle, since with no terms row the fee and carry are unstated rather than shown to be none. Without a terms row the report also keeps the upload link. The vehicle test is a heuristic on type and name, since the extraction has no pro-rata field; "Holdings" and "Opportunity" are not vehicle words because main funds use them too, and a vehicle that states carry or a fee stays "Extracted". The cause is almost always the document, not a pending extraction: the classifier assigns an LPA only the pages it recognises as one, so an LPA bundled into a subscription packet is often extracted from its signature pages alone (a short segment, against a long one for LPAs that carry terms), and a short-form agreement states no terms. Re-extracting the same file gives the same result, so the page tells the user the documents state no headline fee, carry, hurdle or fund-term figures, lists any other terms they do state, and offers the upload link rather than saying terms are pending.norm_name, which would merge investors that differ only by legal form), preferring the entry that carries a commitment. Unnamed entries come from the selected LPA only. An LP that only amendments name carries namedIn, the earliest dated one of them (an undated one only when none is dated), and the panel marks it From Amendment No. <n>: amendment terms are listed, not applied, but the roster does include the members an amendment adds. An amendment here is an Amendment or Amended and Restated document that is not a copy of the selected agreement; copies share agreement_key (variant, number and date, plus the stated terms when there is no number or date), the same test the Amendments list uses. An LP that the selected agreement or any copy of it names is never marked, whichever document the rows list first. Each LP keeps the currency of the document its amount came from, and a roster in more than one currency is not totalled. Commitments themselves are mostly not in an LPA at all: signature pages state none, and an amended LPA often omits its partner schedule (a minority of one firm's LP entries carried one).DOCUMENT_TYPE = 'operating_agreement' (Query O), so it matches a fund, supplies its terms and LP roster, and is labelled "operating agreement" in the panel. Its carry, hurdle, tiers and waterfall are kept unless the stated carry is above 50%: that is a member profit split (e.g. a holdings LLC paying 100% to its manager), so they are withheld and the panel says "Operating agreement, not a fund LPA". A fund's one agreement is chosen across both types by the rule in Each extraction goes to one legal vehicle.fund_key, fund_match, resolve_fund and _series_for_agreement apply the rule in ${CLAUDE_PLUGIN_ROOT}/references/fund-name-match.md (the plugin's own references/, not this skill's; read it by that path, do not search for it): only formatting is set aside, and a word with no counterpart, such as HOLDINGS, GP, PARALLEL or a series letter, means a different vehicle. A close match, the weakest kind that file names, is lpaMatch: "close". Consequence: renames and radically different vehicle names land as "Name mismatch" or "Missing" rather than on the wrong fund.NAME_MISMATCH only when an unmatched document shares a word naming that fund, not the firm or its fund family (a word in 3+ of the firm's entity names), or shares its fund number ("Summit Secondary VP VII" for "Acme Venture Partners VII" before a rename). Any other fund with no document stays MISSING, however many unmatched documents the firm has.inheritedFromMaster and drop the repeated LP roster.fund_info.master_series, e.g. "Kraken Series", on a series schedule or supplement) — and one stating no series, in its name or in master_series, goes to none (a master_series naming two or more series, "Series I Units; Series II Units", or describing series in general, "separate and distinct Series of Units", states none): each series without its own agreement is shown as governed by it (lpaStatus: PARENT_AGREEMENT, parentAgreements) rather than missing. A schedule that states a series, listed or not, never makes its sibling series governed; they are not governed: they show as a name mismatch, with the schedule in possibleLpaNames, when the series is unlisted, and as missing otherwise. A series named within its LLC ("Harbor Series (the “Series”) of Acme Series LLC", "Kraken I, a Series of Acme LLC", in the fund name or master_series) reads as Carta writes it, "Acme Series LLC - Harbor Series". The text before "of" must end as a series designation (the last series word followed only by labels, such as "Harbor Series", "Series I" or "Series A-1") unless the name says ", a Series of", so "Acme Series A Fund of Funds, LP" is left as it is. An agreement named only by its series ("Harbor Continuation Series") goes to the one series of that name at the firm; the name needs a word beyond the series word and its label, so a bare "Series I" goes nowhere. A series name reaches only that series, or that series followed by a class label ("… Series A1- Class B"), so "Series 1" never reaches "Series 10" and "Series A" never reaches "Series A-1". An LLC with only one listed series keeps its parent's agreement, whether or not Carta splits that series into classes. On any other tie (e.g. an LPA named "Acme 2011 Holdings" when the firm has both "…Holdings, LP" and "…Holdings, LLC") it goes to neither, and each tied fund carries the name in possibleLpaNames for review. A fund's one agreement is the one stating the most headline terms (headlineTermCount: how many of fee, carry, hurdle, term and investment period it states), then the one with populated terms (termsExtracted), then one that names that fund's series, then the stronger name match, then the most recent.fund entity name diverges from the LPA's fund entity name, the match may miss.fund entity is not always the firm's own fund. When the firm's fund is the LP, the extracted fund/issuer is someone else and the firm's fund is the limited_partner/investor party. If the issuer is another manager's fund, the match is tagged role: "investor", listed apart and left out of sideLetterCount and totalSideLetters. If the issuer is a portfolio company (e.g. an MFN or information-rights letter from the fund's Series A), it is a company letter and sits on no fund: it is not about the firm's LPAs. Check both cases after any change to the side-letter matching logic.What SKILL.md sets; muted values are Claude Code's defaults
sonnetThree 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