<!-- carta:plugin-version -->
<carta-plugin>carta-investors:7.68.4</carta-plugin>
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.
Carta Home — Build / Redeploy / Open
Deploys the carta-home live artifact, published as Carta Home. It is
assembled from source parts in this skill's resources/ directory (template + CSS +
config + app JS) by scripts/build_artifact.py, which also substitutes this session's
Carta connector name. You never need to read the assembled
HTML — see "Source layout" below.
The published artifact takes its name from the page's own <title> tag, which the build
stamps as Carta Home. The body detects whichever firm is active at open time. One artifact
per firm, so each has its own sidebar tile, found again by its title together with the firm
at the start of its description.
What the artifact does
- Schedule of Investments (SOI) — fund-level summary of the top 3 funds by value, with
gain/loss coloring. Pulled from FUND_ADMIN.AGGREGATE_INVESTMENTS. When Carta
administers only some of the firm's funds, a note under the card reads "Carta administers
N of your M funds". M is the real funds in FUND_ADMIN.FUNDS and N those with
IS_ADMINISTERED_BY_CARTA set, from that lookup alone, so every scoped card prints the same
note. A card fund the lookup misses still shows but isn't counted. The note says "SPVs"
instead of "funds" when every fund in the lookup is an SPV. The card footer
launches the standalone SOI dashboard; home holds no holdings table of its own.
Every firm's rows format with fmtCurrency: one decimal for K, M and B, cents under 1K. Amounts are in
the fund's reporting currency (FUND_ADMIN.FUNDS.REPORTING_CURRENCY): a foreign-currency position reads
BASE_CURRENCY_REMAINING_VALUE / BASE_CURRENCY_UNREALIZED_GAIN_LOSS, never a guessed value. An outside
fund with no converted value is neither counted nor shown with a value.
A fund of funds sees its outside funds instead, under "FUNDS YOU INVEST IN" with an "UNDERLYING FUND"
column and the description "Your largest fund investments, with value and gain/loss." (fofSummaryRows
in carta-home.app.js). A firm qualifies when it runs at least one entity whose
FUND_ADMIN.FUNDS.ENTITY_TYPE_NAME is Fund (SPV-, GP- and ManCo-only firms keep their own funds) and,
in one reporting currency, at least FOF_MIN_FUNDS outside
funds hold at least FOF_MIN_SHARE of its active value in that currency. Outside funds are
IS_INVESTMENT_IN_FUND (a missing flag counts as false), group by GENERAL_LEDGER_ISSUER_ID (or ISSUER_NAME when it has none),
and leave out any whose name matches one of the firm's own FUND_NAMEs, ignoring case and spaces. The
share's base leaves out stakes in the firm's own Carta funds
(IS_INVESTMENT_IN_CARTA_FUND_ENTITY, a missing flag counting as false), so a feeder's stake in its main fund doesn't count
twice. The card shows one currency: the qualifying one with the most outside funds, its top
SOI_CARD_ROWS by value; no amount is added across currencies. Any other qualifying currency gets a line
under the rows, e.g. "Also invests in EUR funds". The "Carta administers N of M" note and the new-fund banner stay hidden,
since they describe the firm's own funds. A failed lookup keeps the firm's own funds.
Fund-of-funds wording wins over SPV wording on this card; an SPV-only firm's LP card keeps SPV wording.
- Fund Performance — Net IRR, TVPI, DPI summary chart vs. peer benchmarks. Pulled from
FUND_ADMIN.TEMPORAL_FUND_COHORT_BENCHMARKS — queries all funds for the active firm
automatically (no hardcoded fund names). When that table has no qualifying rows for
the firm, the card falls back to FUND_ADMIN.AGGREGATE_FUND_METRICS and previews each
fund's Total Value (per-fund currency) with a "no benchmark trend" note, instead of
rendering blank. IRR/TVPI/DPI are near-always null for those firms, so Total Value is
what the card shows. For a firm Carta administers only in part (same FUND_ADMIN.FUNDS
lookup as the SOI note), both sources list the funds Carta administers first and mark the funds the lookup flags as not administered (a fund the lookup misses shows unmarked), and the card says
"Carta administers N of your M funds". The card footer launches the standalone Fund Performance dashboard.
- Skill Directory — categorized index of carta-investors skills with copyable prompts.
Prompts auto-substitute the active firm name. Every category shows to every role.
The skills come from the plugin's .claude-plugin/skill-directory.json, not the page:
the build bakes them in as the first paint, and once the browser is idle the page asks
carta-mcp (plugin:list:skills) for the published copy, so a skill that ships later
appears without a rebuild. A row tagged "tag": "App" is a micro app: it shows a
Microapp pill (its hover tooltip says what a microapp is) and, in an expanded card, a line saying the prompt works in Claude Code only, since the app is a local
React app that a Cowork chat cannot start. The tab opens on two columns of category cards; a card's
View more link expands it in place. Clicking a prompt row copies it; **term** marks in a prompt set key words in bold and are stripped for copy and tracking. See docs/skill-directory.md for the entry
format; CI fails a published skill that has neither an entry nor an explicit null.
Entitlement-gated: fetchUserEnrichment() calls get_current_user, logs the full
payload to the debug console (visible to the LLM client), and reads two product flags:
- Fund forecasting (a single skill inside Fund modeling) — needs
has_tactyc - ManCo & budgeting (the whole category) — needs
has_active_manco
requires sits on a category or on one skill. A category whose every skill is gated
out hides as well. A gated item hides only when its flag is an explicit false. Anything
else — enrichment unavailable, the call failed, the key absent or null, a staff account
whose enrichment is stripped — shows it. Seeing too much beats seeing nothing.
- LP summary (
resources/app/segment-dashboards.js, Fund Admin firms) — the three largest
LP families by commitment with net TVPI, from FUND_ADMIN.PARTNER_DATA and each partner's
latest FUND_ADMIN.PARTNER_MONTHLY_NAV_CALCULATIONS month, per fund currency. The footer
launches the LP Summary dashboard.
- Carta Law firms (
resources/app/law-only-home.js) — a firm with NDA insights data and
no Fund Admin gets NDA prompts (tagged Legal) in the "Suggested for you" slots its recommendations leave, no What's new
carousel (every item needs Fund Admin) and no Skill directory tab; Plugin news stays. The
tour leaves out capital activity for any firm without Fund Admin, and the directory for
a Carta Law firm.
- NDA insights (
resources/app/nda-card.js, firms with NDAs Carta Law has read) — the
three NDAs that expire soonest, the NDA count and how many companies are under
an active restriction (a non-solicit, no-contact or non-circumvention clause), by
carta-nda-dashboard's rules. It is not built with Home, so the footer
opens the NDA dashboard's prompt. A firm without NDAs never sees it, even when the query fails.
- What's new (
resources/app/whats-new.js) — a rotating carousel of up to four items.
The featured microapps (WHATS_NEW_MICROAPPS: Fund Modeling, ManCo Budgeting, Portfolio
Analytics) each have a preview mockup and a "Set up in Claude Code" button that copies their
command. A microapp whose product flag is not true is locked and comes after the open
ones. Its label links to unlockPath in the viewer's own Carta (the web app host for
get_current_user's environment, from CARTA_APP_HOSTS in whats-new.js, never its API
base_url; + the path, with the firm's organization pk) once both are known, else to its
carta.com demo page (unlockUrl), else is plain text: locked ManCo opens Carta's in-app
ManCo page, falling back to the Fund Administration demo page; locked Fund Modeling links to
the Fund Administration demo page; locked Portfolio Analytics has no link. Fund Modeling and ManCo
Budgeting read has_fund_admin and has_active_manco from get_current_user. Portfolio
Analytics reads has_data_collection, which Home works out itself once fetchLiveData has
resolved the firm and called set_context: list_accounts with the firm name finds its
organization_pk:<n> account (the exact name match, else the only candidate; corporations
ignored; the same organization builds ManCo's link), then call_tool →
data_collection__get__firm_settings reads that one organization's data_collection_enabled
(off when data_collection_enabled is not true, on a 404, or when the firm has no organization
account). Until that answers, or if it can't be asked, the matches are ambiguous, the settings
call fails any other way, or the reply is unreadable, Portfolio Analytics stays out of the carousel rather than flash open or upsell a firm that may have it; it takes
its slot when the answer lands, without moving the viewer off the item they're on. One skill that went live
in the last 60 days (Contentful pluginPrompt) takes one slot: only a skill the current Skill
Directory lists, never one it marks "whatsNew": false and never a featured microapp's own skill (the product is already
in the carousel), a deck, document or spreadsheet skill before a chat answer, newest
first within each (rankWhatsNew). It sits after the open microapps and
before the locked ones, so the last item in that order drops out of the four, with a copyable prompt and a preview of what it hands back
(WHATS_NEW_SKILL_OUTPUTS). Shown once get_current_user answers; an answer with none of
the microapps' get_current_user flags known keeps it hidden rather than upsell a paying
customer. Rotates every 5s, starting the first time the carousel is on screen, pauses
while hovered or focused, stops for good once the viewer picks an item (a key press on the
tabs counts as a pick), and stands still under reduced motion.
- Firm auto-detection — calls
list_contextswithout a firm name filter; extracts the
active firm UUID and name from the response. All DWH queries use FIRM_ID = '${firmId}'
dynamically — the artifact works for any Carta firm with no code changes.
- Capital Activity (
resources/app/capital-activity.js) — pinned cards for active capital
calls and distributions from fa:list:active-capital-activity, with a detail overlay
listing each LP partner's amount, status, and date — paid date once paid, days late while
outstanding. On a capital call, unpaid partners get Send Reminder (Resend, over the
last-reminded date, once one has gone out), which previews and then sends the email via
fa:mutate:send-capital-call-reminder. A partner with at most 30 (or 1% of the call, if less) left to pay
on a capital call reads as Paid, and the list runs unpaid, then partly paid, then paid. Other partly paid
partners show a Partially paid pill,
a $X unpaid line under the amount called (in the picker too) and days late in gray rather
than red — a partner who has paid part of the call is already engaging, so the row never
reads as a task. Their reminder lives in the row's ⋯ menu (Send reminder / Resend reminder),
and the row notes when it was last reminded. Rows with email_notice_enabled: false show a muted
Email disabled and no menu — the backend drops those sends silently. Remind investors
in the summary row, offered only while some remindable partner has paid nothing, batches the
same send: a selection table of the remindable investors (unpaid ones ticked to start, partly
paid ones listed unticked; a group with any interest that has paid nothing counts as unpaid), then a preview with a picker over each one's own email. One entry per
interest group, since the backend collapses a group's rows into a single email. The preview
is the confirmation: snoozing it means the next click sends, and a sent batch reads
Sent just now for 24h (caBulkRemindedAt).
Dashboard launchers
The dashboard cards are summaries that link out, not full surfaces. The full Schedule of
Investments, Fund Performance and LP Summary experiences each live in their own standalone
artifact, published by their own skill, so there is exactly one implementation of each.
Every firm gets the first two; a Fund Admin firm adds LP summary
(resources/app/segment-dashboards.js) and a firm with NDAs adds NDA insights, so the grid
holds 1 to 4 cards. A Fund Admin firm, or one whose profile answered without saying, sees its
cards while they load; a firm Carta says has no Fund Admin, or whose profile failed, sees a
card only once it has data or a note, and its tour waits for the cards. NDA insights waits for
its data for every firm, and never shows a note.
DASHBOARDS in resources/carta-home.config.js is the registry. Each entry has:
| Field | Purpose |
|---|---|
| key | matches the --dashboard-url <key>=<url> passed at build time |
| footerId | the card footer element the launcher renders into |
| prompt | the contract — copied into chat when no URL was baked in |
| label | the launcher's visible text |
| buildSkill | build-time only: candidates Step 5 fans out to, in preference order. Optional. |
| requires | build-time only: the get_current_user flag that must be true for Step 5 to build it. Optional. has_fund_admin counts when it is true, or when the key is absent and the profile has both is_staff: true and fund_admin_access: true (the rule readProductFlag applies at runtime). Read these off the get_current_user payload kept in Step 1. When that payload is missing or does not say, treat the firm as Fund Administration and build it: a card left on "Preparing" is better than a card that silently falls back to a paste prompt. |
prompt is the contract, and buildSkill follows it. The same sentence routes to
whichever skill owns that dashboard, and buildSkill names it so the build-time fan-out
reaches the same owner the prompt would. Home never needs to know which.
Home publishes before its dashboards exist. It goes out with each launcher marked as
building, the fan-out runs, then home redeploys over itself with the real links — a
redeploy reaches viewers who already have it open. Home is published first because a
published artifact surfaces itself, so publishing it last would land the viewer on a
dashboard instead.
Degradation is automatic. A buildSkill whose every candidate is absent or unavailable
is skipped in Step 5, so no --dashboard-url reaches that key, so the tile renders its
prompt in the same popover every other run button uses. There is no separate public/internal branch
and no error state — a dashboard that could not be published simply reverts to the copyable
prompt. Adding a dashboard later is one registry entry plus its skill.
MCP tools required inside the artifact
The artifact resolves the runtime bridge once with await claude.use("mcp"), then calls
mcp.callTool(CARTA_MCP_SERVER, "<tool>", args). CARTA_MCP_SERVER is the Carta
connector's display name — the {{CARTA_MCP_SERVER}} placeholder the build script
fills in. The runtime addresses connectors by display name only, never by a UUID.
Every tool below must appear in the publish call's capabilities.mcp grant, or the call
rejects with not_in_manifest:
welcome— re-initializes an expired MCP sessionlist_contexts— auto-detects the active firmset_context— activates the firm's DWH sessionget_current_user— signed-in user's profile;has_tactycandhas_active_mancogate
their Skill Directory categories (see fetchUserEnrichment), and the product flags lock
What's new's microapps
list_accounts— finds the firm's organization account, whose Data Collection setting
unlocks What's new's Portfolio Analytics (resolveDataCollection in
resources/app/whats-new.js) and whose pk builds locked ManCo's in-app link
track_ui_event— relays the page's UI events to Snowplow, called by the vendored trackercall_tool— the gateway dispatcher, carrying the Capital Activity reminder sends
(fa__mutate__send-capital-call-reminder), the Plugin news live-content cards, and the
Data Collection settings read (data_collection__get__firm_settings)
read_tool— runs a read without asking the viewer; carries the cards' warehouse queries
(dwh__execute__query), the Fund Admin reads behind Capital Activity, the email preview and
the firm logo (fa__list__*, fa__get__*), plugin__get__version for the update banner and
plugin__list__skills for the Skill Directory
Source layout — the artifact is BUILT, not hand-edited
The deployed artifact is assembled from source parts in resources/ by
scripts/build_artifact.py. Do NOT read or edit the assembled HTML — you never
need the full file in context. Edit the small source file for what you're changing:
| File | What it holds | Edit it to… |
|------|---------------|-------------|
| resources/carta-home.config.js | DIR_CATEGORIES (id, name, tagline, optional requires), NEWS_TAG; DASHBOARDS launcher registry; WHATS_NEW_MICROAPPS featured microapps; WHATS_NEW_SKILL_OUTPUTS output kind per skill and per category | change which categories show, a category's entitlement gate, which Contentful tag feeds Plugin news, which cards launch a standalone dashboard, which microapps What's new features, or which output kind a new skill's preview shows |
| ../../.claude-plugin/skill-directory.json | the Skill Directory's entries, keyed by skill: category (a DIR_CATEGORIES id), name, order, prompts, optional tag ("App"), requires, whatsNew (false keeps the skill out of What's new) and whatsNewCopy (the headline and body What's new shows for the skill); null opts a skill out | add or change a skill's row or example prompts — no rebuild needed once published |
| resources/app/directory-search.js | Skill directory search rules: which skills a typed search finds, close matches through the hand-kept DIR_SYNONYMS word groups, the best match | change what a search finds or add related words |
| resources/app/directory-views.js | Skill directory tab: expandable category cards, the search box and its results and empty state, prompt copy and the directory's tracking ids | change how the directory looks or tracks |
| resources/app/skill-directory.js | reads the published directory (plugin:list:skills) when idle, validates it, and re-renders over the baked list | change how the published list is merged or when it loads |
| resources/carta-home.app.js | shared/core runtime logic (_mcp, format helpers, fetchLiveData bootstrap, SOI, Fund Performance, the directory's data and directoryCategories(), tour) | change behavior / data fetching for anything not yet split into its own file below |
| resources/app/capital-activity.js | Capital activity cards + detail overlay (fetch/render/dismiss) | change the capital call / distribution cards or their detail modal |
| resources/app/version-check.js | update banner: reads the published version, compares, renders/dismisses | change the banner copy or when it appears |
| resources/app/live-content.js | Plugin news row: Contentful fetch, per-content-type adapters, card render (tag itself lives in the config file above) | change how news cards are fetched, adapted or rendered |
| resources/app/segment-dashboards.js | LP summary card: which firms get it, its warehouse query; which cards show while loading, and the 1–4-card grid | change who sees that card or what it shows |
| resources/app/nda-card.js | NDA insights card: its warehouse query and rows | change what the NDA card shows |
| resources/app/firm-switcher.js | header Firm select for logins with more than one firm, plus a name search for Carta staff (who are listed one firm); a switch calls set_context and reloads | change which firms it lists, who gets the search, or what a switch does |
| resources/app/whats-new.js | What's new carousel: featured microapps (locked by product flag, linked in-app or to a carta.com demo page or not at all; the Data Collection lookup behind Portfolio Analytics), one new skill from Contentful (only one the current Skill Directory lists, skipping whatsNew: false and featured microapps' own skills, visual outputs first) with a preview of its output (WHATS_NEW_SKILL_OUTPUTS in the config file), rotation, and the microapp preview mockups (microapp list lives in WHATS_NEW_MICROAPPS in the config file above) | change which microapps are featured or how they lock, how many new skills join, or the carousel's behaviour |
| resources/app/soi-new-fund.js | SOI card banner for funds the published SOI page does not list yet (fund list from --soi-page), its copy prompt and dismissal | change when that banner shows or what it says |
| ../../.claude-plugin/skill-versions.json | this skill's version + release headline | bump on every user-visible change — see Versioning |
| resources/carta-home.css | styles (Ink tokens) | change appearance |
| resources/carta-home.template.html | HTML skeleton + injection markers | change page structure |
| resources/carta-home.tracker.js | inlined @carta/mcp-ui-tracker browser bundle (window.mcpUiTracker) | re-run the library's build:browser and re-copy the output if the tracker source ever changes |
| resources/carta-home.chart.js | inlined Chart.js v4.5.1 UMD | bump only to change Chart.js versions — never link it from a CDN, the CSP blocks that |
App-layer JS is split across multiple files (see APP_JS_PARTS in
build_artifact.py) but still assembles into a single classic (non-module)
<script> tag — no bundler, no runtime import/export. New feature files
just get appended to APP_JS_PARTS and concatenated in order (parts run top to bottom;
see the comment there for what code that runs at load may touch); a file's header
comment documents which shared helpers it depends on from elsewhere in the
bundle.
The build inlines carta-home.css → /* __CARTA_HOME_CSS__ */, carta-home.tracker.js
→ /* __CARTA_HOME_TRACKER_JS__ */, carta-home.config.js → /* __CARTA_HOME_CONFIG_JS__ */,
and the concatenated APP_JS_PARTS → /* __CARTA_HOME_APP_JS__ */, then substitutes
{{CARTA_MCP_SERVER}}, producing one self-contained HTML. {{FIRM}} is a runtime
placeholder the artifact fills from list_contexts — leave it alone.
Versioning — bump this skill's entry when you change the artifact
A deployed artifact is a frozen copy. Nothing updates it in place, and the sandbox
sets connect-src 'none' so it cannot fetch its own release metadata. The only way an
existing user learns a newer build exists is the update banner, which compares the
version baked in at build time against the one carta-mcp reads from the published
carta/plugins tree (plugin:get:version, called through read_tool).
The version lives in the plugin's registry, keyed by this skill:
// plugins/carta-investors/.claude-plugin/skill-versions.json
{ "carta-home-build": { "version": "1.0.0", "headline": "…" } }
It sits there rather than beside the skill because carta-mcp reads it from the published
mirror, and a skill that has not opted into publishing never reaches that mirror —
whereas .claude-plugin/ is plugin-level metadata and is always published.
The registry entry is the only place this number lives. This skill's frontmatter
carries no version: on purpose: nothing cross-checks the two, so a second copy just
drifts silently every time the artifact ships. validate-skill-frontmatter.py warns
about the absence — that warning is expected here, and re-adding the field to silence it
would reintroduce the drift.
This is not the plugin's own version. carta-investors publishes several releases a
day across ~30 skills; the banner is keyed to this skill's number so it fires only when
this artifact changed.
So: change anything under resources/, bump this skill's entry in the same PR. CI
enforces it (.forgejo/scripts/validate-artifact-version-bump.py).
| Bump | When | User sees |
|------|------|-----------|
| patch | the default — copy tweak, style nudge, refactor, bug fix | nothing |
| minor | new card, new data, changed behaviour a user would want to know about | banner |
| major | rebuild genuinely required | banner |
Start at patch and stay there unless you can name what the user gains. A banner
interrupts every fund CFO running Carta Home, and one raised for a change they cannot
see teaches them to dismiss the next one unread — including the one that mattered. If
you cannot write a headline a customer would care about, that is the signal: ship patch.
Escalating is therefore a deliberate act with a cost attached: minor and major demand a
fresh, non-empty headline, and CI rejects the bump without one. The headline is the
justification — there is no separate reason field here, because the sentence proving the
bump was worth it is the same sentence the user reads.
headline is one line describing what changed, shown in the banner — it is the only
release-comms surface this artifact has, so write it for the fund CFO reading it, not
for the changelog. CI rejects a minor/major bump whose headline is empty or still
describes the previous release.
Two things that follow from the published tree being the source of truth:
- The banner appears only once the change is published to
carta/pluginsand a
week old, not when it merges here — carta-mcp announces a release only after users'
installs have had time to pick it up.
- A page stays silent for 7 days after it is built: a fresh build is already the
newest one the user can get, so asking them to rebuild it is always wrong.
- Internal builds run ahead of published, so you cannot dogfood the banner from a
local build — it correctly stays silent when your version is newer. To see it, stub
the command's response or temporarily lower your local entry.
Analytics
Keep calling trackHome(action, elementId) on new interactive elements (top of the
handler), IDs as CartaHome.<Area>.<Specific> (e.g. CartaHome.Tour.Start) — skip sort
clicks, keystrokes, dropdown changes. IDs are literals: never put customer data (firm,
fund or company names) in one. A detail that varies goes in { value } — a tour step, a
batch size — which only a click carries; a render keeps just its ID.
Every event the page sends, and when it fires, is listed in USAGE_DATA.md beside this
file. Add a row there whenever you add an event.
SOI card new-fund banner (app/soi-new-fund.js): CartaHome.SOI.NewFund.Shown (render) when
a different set of funds first shows in a page load, CartaHome.SOI.NewFund.Copy (a trackPrompt, source dashboard) with fixed prompt text, never fund names, when
its prompt is copied, CartaHome.SOI.NewFund.Dismiss (click) when it is dismissed.
Dashboard cards: a card whose query answers with no rows is hidden, never shown blank
(settleDashboardCard in app/segment-dashboards.js), and fires CartaHome.SOI.Empty,
CartaHome.Perf.Empty, CartaHome.LP.Empty or CartaHome.NDA.Empty (render). A card whose query fails keeps an
note and fires CartaHome.SOI.LoadError, CartaHome.Perf.LoadError or
CartaHome.LP.LoadError (failDashboardCard); NDA insights hides instead and fires
CartaHome.NDA.LoadError. Once every card the firm gets has loaded or
failed, CartaHome.View.Cards (click, value = the cards shown, a failed card included except NDA insights, e.g.
soi,perf, or none) records which Home the firm got. The full list is in USAGE_DATA.md.
A button that copies a prompt calls trackPrompt(elementId, prompt, source, { skill, rank })
instead. The tracker attaches the suggested text (never the viewer's edits) as the
com.carta/mcp_prompt entity, so analytics can match the copy to the prompt the user runs
next. source is one of PROMPT_SOURCE (the schema's enum, defined beside trackPrompt),
and rank is the prompt's zero-based place in its list.
The runtime CSP is connect-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com,
so the artifact cannot reach the collector host. The vendored tracker instead relays each
event through the track_ui_event MCP tool over the runtime bridge, which the CSP does not
limit. That needs track_ui_event in the publish call's capabilities.mcp grant.
Deploy steps
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-home-build", checkpoint_label="skill_started")before proceeding.<SERVER>is the Carta MCP server whoseskill_checkpointtool this session has. If there is none, or any checkpoint call fails, carry on: checkpoints never stop a run. A run that has not recordedskill_startedrecords no other checkpoint.
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 second invocation the plugin-files note asks for, Step 6's second build and publish, a follow-up such as "Show me how", an undo) does not checkpoint again.
Step 0: Checks before building
Run both checks before building, 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.
If those files can't be read, you are in claude.ai chat. Chat mounts only this skill's
folder, not the plugin's references/, so the checks can't run and the build script's
vendor assets are missing too. Don't search the filesystem for them. Stop before any build
work and tell the user:
Carta Home can't be built in claude.ai chat. Open Claude Code or Cowork and ask me
again.
This is a live artifact: the rendered HTML calls Carta at runtime through claude.use("mcp"), so it needs both.
Connector check — run it before publishing, and stay quiet when it passes. Call welcome, then get_current_user, using your own prefixed tool names (mcp__<prefix>__welcome). welcome runs once per conversation: when you already called it in this conversation, do not call it again and call only get_current_user. An observed call confirms the connector actually answers — being listed is registry state, not proof — and publishing without one earns the platform's "published against an unobserved interface" warning. This skill also needs the get_current_user payload (see below). If either call errors, tell the user Carta isn't responding and stop — do not publish. If both succeed, say nothing about them and get on with the build.
Keep get_current_user's response: Step 4 grants that tool, and the Skill Directory's entitlement gate reads has_tactyc / has_active_manco from the same payload at runtime.
Step 1: Resolve the firm once, for everyone
Build for the firm the user means, even if another firm is active. Call list_contexts,
passing the name if they gave one:
list_contexts({"firm_name": "<firm_name>"})
Read firms and active_firm_id from the structured result. For a Carta staff account the
name is a search across all firms. For everyone else it is ignored and you get their own
firms, so match the name yourself. Ask with AskUserQuestion if several match; say so and
stop if none do.
If they named no firm, call list_contexts with no arguments and take the single firm, or
the one whose is_active is true, or ask. An empty list is normal for a staff account —
staff can reach every firm, so they have no default — so ask which firm rather than
stopping.
If that firm is not already active, switch to it before going on:
set_context({"firm_id": "<firm_uuid>"})
Each page's description names the firm the page shows, and the page reads the active firm
when it opens — the same is_active resolution fetchLiveData() does in carta-home.app.js. The
switch keeps the two in step, and gives the dashboard skills Step 5 hands off to the same firm.
Capture the firm name and firm UUID. The name is what Step 2's lookup and each page's
description are built from. Step 5 hands both to the dashboard skills so they do not re-ask the user
the same question — carta-soi explicitly reuses a firm list already in conversation context
rather than calling list_contexts again.
The published home artifact still auto-detects the firm at runtime. This step fixes the
firm the pages are found and described by, and lets the fan-out run unattended; a switch also changes the user's active firm in
Carta, which is why it only happens when the firm is not already active.
Step 2: Find what is already published
Artifact({action: "list", scope: "mine"})
One call covers everything. Keep the url of each artifact below, matched on the title
its own skill publishes under — Steps 3 and 5 pass them so each page redeploys in place
instead of claiming a second URL. Omit a url you did not find.
| Artifact | Match the whole title |
|---|---|
| Home | Carta Home |
| Schedule of investments | SOI |
| Fund performance | Fund Performance |
| LP summary | LP Summary |
Find each page with ${CLAUDE_PLUGIN_ROOT}/references/firm-page-lookup.md (the plugin's
own references/, not this skill's; read it by that exact path, don't search for it). It
is the only rule for reusing a url. The firm-named titles it takes are
Carta Home - <Firm>, <Firm> — Schedule of Investments and <Firm> — LP Summary. The
name only labels the page in the artifact switcher and pinned list; each page's own header
still shows the firm.
Fund Performance is the exception: it resolves the firm when a viewer opens it, so one
artifact serves every firm and its whole-title match is reuse, not a collision.
A Carta Home carrying 📊 belongs to carta-cap-table's carta-captable-home-build
and holds some company's cap table; leave it alone. Only a 🏠 one is this skill's, and
it still has to pass the firm lookup above.
Step 2b: Open instead of rebuilding
If the user asked to open or find Home ("open Carta Home", "where's my Carta Home",
"open my home") — not to build, rebuild or deploy — and Step 2 found this firm's Home, do not
rebuild. Send this as the whole reply, and ask no question:
Here's your Carta Home: <Carta Home link, titled with the artifact's name>
Tip: click its title and choose Pin to keep it one click away. Or just say "Open
Carta Home" anytime.
The user came to find Home, so the link is the answer; a question or pop-up here pulls
their attention away from it before they've opened it. Don't suggest a newer version
exists; the welcome card tells users when a rebuild is worth it, and "Rebuild Carta Home"
still works if that's what they meant. If they then ask how to pin it, give "Keeping
Carta Home handy" below.
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-home-build", checkpoint_label="skill_finished")once the link has reached the user.
If Step 2 found no Home for this firm, say so and build it (Step 3 onward).
Step 2c: Find the user's changes, so the update keeps them
Users customize Carta Home and its dashboards by asking Claude to edit the published pages
— the Customize prompts on the SOI and Fund Performance cards invite exactly that. A
rebuild publishes fresh pages over the same URLs, so without this step it silently throws
those changes away. Keeping them is the default, on Home and on every dashboard: the
update carries each change into the new version without asking, asks only where the new
version and a change collide, and ends with one summary of what was kept (Step 8). Run
this step whenever Step 2 found this firm's Home or either dashboard; skip it on a first
build.
Follow ${CLAUDE_PLUGIN_ROOT}/references/keep-customizations.md — the plugin's
references/, not this skill's; read it by that exact path, don't search for it. The
script for every page is this skill's own
${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build/scripts/customizations.py: every stamped page
reads the same way.
Start fresh on request. When the user asked for a clean page — "start fresh", "reset
Carta Home", "without my changes" — carry nothing over on Home or the dashboards, and tell
each dashboard skill so in Step 5. Still save every live page, so the old ones can come back.
Now, for each page Step 2 found, save it and check whether it has changes (the
reference's step 2, then diff — the full plan waits until the new build exists):
| Page | Live file | Where its changes are carried over |
|---|---|---|
| Carta Home | <outputs-directory>/carta-home-<slug>.live.html | Step 6, by this skill |
| Schedule of Investments | <CWD>/<firm-slug>-fund-soi-collection.live.html | Step 5, by the dashboard's own skill |
| Fund Performance | <CWD>/fund-performance.live.html | Step 5, by the dashboard's own skill |
A dashboard's live file is the one its own skill names, so the skill finds the page already
saved: <CWD> is the session's current directory, and <firm-slug> follows the
Slugification rules in ${CLAUDE_PLUGIN_ROOT}/skills/carta-soi/SKILL.md ("Acme Capital
Partners, L.P." → acme-capital-partners-lp), which differ from this skill's <slug>.
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build/scripts/customizations.py" diff "<live file>"
Nothing is asked here. Note whether Home reads customized or no_baseline: Steps 4, 6
and 8 depend on it. Note which dashboards read customized or no_baseline too: Step 5
builds those one at a time, because each may stop to ask about a conflict. If the script
can't be run at all, follow the reference's one up-front question for each page.
Then mark each dashboard in the table above that is already current. A dashboard is
current when all of these hold:
- Step 2 found this firm's Home, its live file was saved, and the
diffreadunmodified
or customized.
- Its
versionequals the${CLAUDE_PLUGIN_ROOT}/.claude-plugin/skill-versions.json
version of the entry's first buildSkill candidate in resources/carta-home.config.js.
- One Grep of its live file for the pattern
const HOME_URL|const CARTA_MCP_SERVER, with
output_mode: "content" (do not read the page), shows:
- a
const HOME_URL = "…";line whose artifact id (the part after the last/) equals
the artifact id of Home's Step 2 URL. Publish and list can return different URL forms
(claude.ai/artifact/ or claude.ai/code/artifact/), so compare only the id.
- for a page that has a
const CARTA_MCP_SERVER = '…';line (Schedule of Investments),
that name equals this run's connector name from Step 0. A page built for another
connector cannot reach Carta from this one.
The home-link check matters for Fund Performance, one page shared by every firm: a page
another firm's build last published links back to that firm's Home, so it is not current.
LP Summary has no live file above and carries no version, so it is always rebuilt.
Rebuilding a current dashboard republishes the same page — the user's changes are already
on it — and is most of a rebuild's time and Claude usage, so Steps 3 and 5 keep it as it
is. A no_baseline page, a live file that couldn't be saved, a missing version, or a
version that differs is not current. Nothing is current when the user asked to start
fresh, or asked to rebuild that dashboard or every page by name; "rebuild everything",
"rebuild all dashboards" and the like name every page.
Step 3: Build the self-contained artifact (no need to read any HTML)
Run the build script — it assembles CSS + config + app into one file and substitutes the
server id. The script lives in this skill's own scripts/ directory.
Bash reaches ${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build on Claude Code and Cowork; do not search
for it first. Run each command on one line, exactly as written: allowed-tools matches the
command text, so a shell variable, a different path, or a line break makes the call ask for
approval. Only if uv run reports that the file does not exist, find the script once (this
call asks for approval) and run it from the path it prints:
find /sessions "$HOME" -type f -path '*/carta-home-build/scripts/build_artifact.py' 2>/dev/null
<slug> is the firm name lowercased with non-alphanumerics collapsed to -, so two firms
never write over each other's file. The bundle itself is firm-agnostic — the slug only
keeps the paths apart.
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build/scripts/build_artifact.py" --mcp-server "<CARTA_MCP_SERVER>" --dashboard-building soi --dashboard-building perf --dashboard-building lp --dashboard-firm-id "<firm_uuid>" --out <outputs-directory>/carta-home-<slug>.html
For a dashboard Step 2c marked current or kept, swap its --dashboard-building <key> for
--dashboard-url <key>=<url from Step 2>.
Why --dashboard-firm-id. The dashboard URLs belong to the firm Step 1 resolved. When a
viewer switches to another firm in the header, the page turns those links into prompts for the
firm they switched to, because opening the first firm's dashboard would show the wrong data.
The flag carries every rebuild that repeats this command.
The build stamps Carta Home into the page's <title>, which is what names the published
artifact. The page header still shows the firm, which the body detects when a viewer opens
it.
This build runs twice. On this pass, every entry with a buildSkill takes
--dashboard-building <key> and nothing else, unless Step 2c marked it current or kept —
including one whose artifact Step 2 already found. Step 5 rebuilds that artifact, so
linking to it now would point at the page this run is about to replace. Never pass both
flags for one key: the building marker wins over the URL. Drop --dashboard-building lp for a firm that does not count as Fund Administration
(the requires rule above): Step 5 skips it and the card is hidden. Step 6 runs the same command again with the URLs Step 5
returns, and the cards become launchers.
An existing URL alone is not a reason to skip Step 5. Every entry with a buildSkill
is rebuilt unless Step 2c marked it current, so the dashboards carry the current version of
their skill rather than whatever shipped whenever they were last published — with the
user's own changes carried over by the dashboard's skill. Step 2's URL tells the dashboard
skill where to redeploy; it never stands in for building an out-of-date page.
A dashboard Step 2c marked current, or one the user chose to keep as it is (only
possible when the script could not run), is the exception: pass its Step 2 URL as
--dashboard-url <key>=<url> on both passes, this one and Step 6, since nothing will
replace that page.
Omit both flags for an entry with no buildSkill — do not pass an empty value or a
guessed URL. An omitted key leaves that card on its copyable prompt, which is the intended
fallback.
Step 4: Publish the home artifact
Publishing here, before the dashboards exist, is what puts the viewer on home rather than
on whichever dashboard was built last — a published artifact surfaces itself, so the only
way home is the landing surface is for it to be the first one published. **Keep the URL
this returns**; Step 6 redeploys over it.
Skip this publish when Step 2c read Home as customized or no_baseline. This build
does not carry the user's changes yet, so publishing it would take them off their page for
the length of the fan-out. Their current page stays up, changes intact, and Step 6 publishes the merged
one over it. Go straight to Step 5. The same holds when every dashboard was current or kept as it is:
there is nothing to fill in behind home, so Step 6 is the only publish.
One call either way. action defaults to "publish", so it is omitted below; url is
the only difference between a first publish and a redeploy.
**A redeploy over an existing URL may demand
force: true— that is expected for this
artifact, not a sign something went wrong.**
build_artifact.pyinlines Chart.js and any
base64 image/font assets as single lines that can run past 100K characters each (CSP here
forbids fetching them from a CDN at runtime, so they have to ship inline). The publish
tool's own "read the live version before republishing" check requires reading the prior
HTML, and a single line that long exceeds the
Readtool's per-call token cap even at
limit: 1— there is no way to satisfy that check for this skill's output. If a redeploy
is refused as unobserved or as unchanged content you already "should have" read, don't
hunt for a way to read the file in chunks: confirm with the user once, then pass
force: trueand move on.
Artifact({
file_path: "<outputs-directory>/carta-home-<slug>.html",
url: "<Carta Home url from Step 2 — omit entirely on a first publish>",
description: "<Firm> — dashboard home: SOI, Fund Performance, LP Summary, Capital Activity, and Skill Directory.",
favicon: "🏠",
label: "Redeployed from skill bundle",
capabilities: {
mcp: {
servers: [
{
server: "<CARTA_MCP_SERVER>",
tools: ["welcome", "list_contexts", "set_context", "get_current_user", "call_tool", "read_tool", "list_accounts", "track_ui_event"]
}
]
}
}
})
No
titlehere, and do not add one. The tool reads the title out of the file's
<title>tag and uses itstitleparameter only when the file has none — so atitle
passed alongside a built page is silently dropped.
build_artifact.pystamps
Carta Homeinto the tag. If the artifact comes out named
wrong, the build is wrong: check what Step 1 printed, not this call.
Anything the page calls that is missing from
toolsrejects withnot_in_manifest.
get_current_usermust be there orfetchUserEnrichment()fails silently — the
debug log never prints and the Skill Directory falls back to showing all categories.
read_toolcarries every card's data read; without it the cards stay empty.
call_toolcarries the Capital Activity reminder sends, and is the gateway dispatcher
the Plugin news live content cards use to reach
marketing__list__content/marketing__get__asset_data
(
resources/app/live-content.js); without it those cards fall back to the static
defaults. The marketing commands only exist on some environments, so a missing command
degrades gracefully to the static cards.
list_accounts(withcall_tool) is how What's
new learns whether the firm has Data Collection; without it Portfolio Analytics never shows.
Keep
faviconstable across redeploys — users find the tab by its icon — and keep the
title and the description's firm prefix stable: Step 2 finds this firm's page by both.
Restate the whole
capabilitiesobject every time: a non-empty object replaces the
stored grant, so a tool you leave out is revoked.
Step 5: Publish the dashboard artifacts
This step always runs for every dashboard Step 2c did not mark current or keep as it is. Home is
live by now with its cards marked as building, and this is what fills them in. Skipping it because a card already points somewhere leaves the
starter pack unbuilt and every dashboard on whatever version it was last published from.
For each DASHBOARDS entry in resources/carta-home.config.js that has a buildSkill
and that was not current or kept as it is, skip it when the firm does not meet its requires rule
(the requires row of the field table) — that firm never sees the card. Otherwise work down its candidates in order and invoke the first one that resolves, keeping the
artifact URL it returns, keyed by the entry's key. A candidate that is not installed is
not a failure — move to the next one. Once a candidate returns a URL, stop; do not invoke
the rest, or the same dashboard is published twice.
**Invoke every entry's first candidate in parallel — one message, multiple Skill calls —
never one entry after another** — except a dashboard Step 2c found customized or
no_baseline. Its skill carries the user's changes over and may stop to ask about a
conflict, so run those one at a time, after the parallel batch, where their questions
can't interleave. The soi and perf entries build independently, so
running them one after the other only adds wall-clock time for no benefit, and pushes
real-world builds closer to (or past) the client-side timeout that reverts a card's
"Preparing" state (DASH_BUILDING_TIMEOUT_MS in carta-home.config.js). Building both at
once is the actual fix for a slow fan-out — not a longer wait.
**However long the fan-out actually takes, wait for it and carry every URL through to Step
6.** A dashboard build that is running long is not a signal to move on without it — stopping
before a slow-but-successful build finishes is worse than the build simply taking a while,
because it leaves that dashboard's URL uncaptured and Step 6 redeploys without it.
Lead each request with the entry's prompt sentence, then the same context every candidate gets.
Tell each one the firm is already settled, hand it its existing URL from Step 2, and hand
it the home URL — the one Step 4 returned, or Step 2's when Step 4 was skipped. The
dashboard stamps that URL into its "Back to Home" link; without it the link stays hidden.
E.g. for the soi entry:
<the entry's
prompt>
Publish the SOI artifact for firm <firm name> (
<firm_uuid>), already resolved —
do not call
list_contextsand do not ask me to pick a firm. Load every fund in the firm
and pick the initial fund yourself. Redeploy to
<url from Step 2>if given, so the link
stays stable. Carta Home is at
<home url>: pass it to the render script as
--home-url. Return only the published artifact URL.
Every dashboard prompt also carries how to treat the user's changes, since the dashboard's
skill carries them over itself:
The user's current page is saved at
<the dashboard's live file from Step 2c>. Keep
their changes, as keep-customizations.md describes, and return the published URL with the
summary lines of what you kept rather than printing them.
or, when the user asked to start fresh: "The user asked to start fresh: carry none of their
changes over."
carta-fund-performance resolves its own firm at runtime and needs no context passed —
it still takes the existing URL so its link stays stable, and the home URL for its
--home-url. It is the perf entry's only
candidate: no other skill publishes the fund performance page, so an install without it
leaves that card on its prompt.
**If every candidate is missing, or the one that ran errors or returns no URL: skip the
entry, say nothing, and move on.** Do not retry it, do not reach for a skill outside the
candidate list, and do not stop the build — the card falls back to its prompt, which is a
working affordance, not a failure. Never block the home build on a dashboard.
Step 6: Redeploy home with the dashboard links
Run Step 3's build command again, this time passing --dashboard-url <key>=<url> for every
dashboard Step 5 published, plus every one Step 2c marked current or kept (with its Step 2
URL), and dropping --dashboard-building for those keys. Keep
--dashboard-building only for an entry that was meant to build and did not, so its card
still explains itself.
Pass --soi-page "<SOI live file from Step 2c>" when Step 2c marked SOI current or the user
kept it as it is, so the SOI card can flag funds that page does not list yet. Never pass it
when Step 5 returned an SOI URL this run.
Carry the user's changes over when Step 2c read Home as customized or no_baseline,
before publishing: follow keep-customizations.md steps 3–5 with this build as the new build
and page "Carta Home".
Keep the summary lines it produces for Step 8.
Then run Step 4's Artifact call again with url set to the home URL — the one Step 4
returned, or Step 2's when Step 4 was skipped — and file_path set to the file
keep-customizations left you: this build with the user's changes carried in, or, for a
page that is mostly theirs, the .rebased.html file rebase wrote. That way this
redeploys in place instead of claiming a second page. A redeploy reaches viewers who
already have home open, so the cards change from building to links under them — no reload.
If a dashboard was skipped, redeploy anyway. The card falls back to its prompt, which
is the working affordance. Leaving home on "building" for a dashboard that will never
arrive is the one outcome to avoid.
Step 7: Validate
Open the published URL and check that it loads for the active firm without errors. Home
shows only the dashboard cards that have data for this firm: a firm whose funds Carta
doesn't administer can see fewer cards, or none, and that is expected, not a failure.
The first open asks the viewer to allow the Carta connector; until they do, the cards show a
message asking them to connect.
Step 8: Confirm
Give the user the artifact's URL, say which firm it was built for, and tell them it is live. Tell
them the first open asks them to allow the Carta connector. Describe only what they will see.
Never say cards will look empty or are still loading: Home hides any card without data.
When Step 2c read Home or a dashboard as customized or no_baseline, follow with one
summary for the whole update — keep-customizations.md step 6, with Home's lines and the
lines each dashboard skill returned, grouped by page:
Kept your changes:
- Carta Home: <plain line>, <plain line>
- Schedule of Investments: <plain line>
Want to undo any of them, or start fresh? Your previous pages are saved.
A dashboard Step 2c marked current that read customized gets its own line under "Kept
your changes": its changes stayed as they were, untouched, because the page was already
on the latest version.
Undo and start fresh work as the reference describes; for a dashboard, hand the request to
its skill with the page's URL.
Then ask with AskUserQuestion (or as a plain-text list), passing each option's label
and description exactly as below:
- question: "Want to make Carta Home easy to find?"
- label "Show me how" · description "Pin or bookmark it in a few seconds" → give
"Keeping Carta Home handy" below.
- label "Not now" · description "Just say 'Open Carta Home' anytime" → reply with that
line.
Checkpoint: Call
mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-home-build", checkpoint_label="skill_finished")once the URL has reached the user, in the same message as this question and beforeAskUserQuestionwaits for the answer.
Keeping Carta Home handy
_Last verified: 2026-09-28._ Nothing can pin an artifact for the user, so show them where.
If you have a show_widget tool, call it with the SVG below as widget_code, unchanged.
If you don't, or it fails, skip the sketch silently — never tell the user it couldn't be
drawn. Either way, send the text below as the whole reply, with nothing before or after it.
<svg viewBox="0 0 680 330" xmlns="http://www.w3.org/2000/svg" font-family="inherit">
<style>.l{fill:var(--p);font-size:14px}.s{fill:var(--s);font-size:13px}.box{fill:none;stroke:var(--t);stroke-width:1.5}.bar{fill:var(--t);opacity:.3}</style>
<rect x="20" y="20" width="640" height="260" rx="12" class="box"/>
<rect x="36" y="34" width="250" height="30" rx="8" fill="var(--bg2)" stroke="var(--text-accent)" stroke-width="1.5"/>
<text x="50" y="54" class="l">Carta Home ⌄</text>
<rect x="36" y="74" width="190" height="186" rx="10" fill="var(--bg2)" stroke="var(--t)"/>
<rect x="50" y="90" width="120" height="7" rx="3" class="bar"/>
<rect x="50" y="110" width="100" height="7" rx="3" class="bar"/>
<rect x="50" y="130" width="130" height="7" rx="3" class="bar"/>
<rect x="50" y="150" width="90" height="7" rx="3" class="bar"/>
<rect x="44" y="168" width="174" height="30" rx="6" fill="none" stroke="var(--text-accent)" stroke-width="1.5"/>
<text x="58" y="188" class="l">Pin</text>
<rect x="50" y="212" width="110" height="7" rx="3" class="bar"/>
<rect x="50" y="232" width="80" height="7" rx="3" class="bar"/>
<rect x="250" y="80" width="390" height="180" rx="8" fill="var(--t)" opacity=".08"/>
<text x="290" y="54" class="l">1. Click the Carta Home title at the top</text>
<text x="290" y="186" class="l">2. Choose Pin</text>
<line x1="286" y1="182" x2="222" y2="183" stroke="var(--t)" stroke-dasharray="3 3"/>
<text x="290" y="208" class="s">Or: click ⋮ next to Carta Home in your sidebar → Pin</text>
<text x="20" y="310" class="s">Rough sketch — can't find it? Type "Open Carta Home" in any chat.</text>
</svg>
Text to send:
Pin it
With Carta Home open, click its title at the top and choose Pin.
Or click ⋮ next to Carta Home in your sidebar → Pin.
Bookmark it
The link stays the same, even after a rebuild: <Carta Home url>
Tell Claude
Type "Open Carta Home" in any chat.
Keep the pin steps here; Step 2b's one-line tip must say the same thing. When the app's menus
change, update the sketch and the text together and bump the date.
If something fails
Checkpoint on every stop before this run has recorded
skill_finished, once this run has recordedskill_started: callmcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-home-build", checkpoint_label="skill_failed", notes="<one-line reason>")instead ofskill_finished. That includes Step 0's stops (claude.ai chat, a connector check that errors), a firm that matches nothing in Step 1, a build or publish that fails, and plugin files still unavailable after the second invocation.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. Cases that recover and continue (the one-timefindfor the build script, a redeploy that needsforce: true, a dashboard Step 5 skips) do not checkpoint, and neither do the issues below that happen inside the published page after the run.
- DWH query timeout — this happens inside the deployed artifact, not in this build
session. Ask the user to reopen the artifact and retry; if it still times out, the firm
may have an unusually large portfolio or there's an underlying DWH issue, so ask the user
to confirm in their Carta MCP session that the firm resolves correctly before retrying.
- A card reports
not_in_manifest— the publish call carried an incomplete
capabilities.mcp grant. Compare it against the full tools list in Step 5 and
republish with every entry, passing the same url.
- Every card reports
server_not_connectedorneeds_reauth— the viewer has no
callable Carta connector under the name baked in at publish time, or their credentials
lapsed. Ask them to add or reconnect Carta in Settings → Connectors. If their connector's
display name differs from the one Step 0 resolved, republish with the right name.
- Firm context unavailable inside the artifact — a runtime issue this build session
cannot query directly. Ask the user to confirm their Carta MCP connector has an active
firm in context before redeploying.
Related skills
The artifact's SOI and Fund Performance cards surface the same underlying data as
carta-explore-data (ad-hoc DWH queries) and carta-soi (dedicated SOI artifact). Routing
stays clean because this skill only triggers on build/deploy/redeploy/open requests for the
Carta Home dashboard as a whole, not on requests for one of those cards in isolation.
Data sources (for reference)
| Card | DWH Table | Notes |
|------|-----------|-------|
| SOI | FUND_ADMIN.AGGREGATE_INVESTMENTS + FUND_ADMIN.FUNDS | Joined on FUND_UUID; a second FUND_ADMIN.FUNDS lookup (every real fund with IS_ADMINISTERED_BY_CARTA) feeds the scope note |
| Fund Performance | FUND_ADMIN.TEMPORAL_FUND_COHORT_BENCHMARKS (chart + metrics); FUND_ADMIN.AGGREGATE_FUND_METRICS (Total Value fallback when benchmarks empty) | All funds for the firm, ≥ 2021-06-01 |
| NDA insights | FUND_ADMIN.DOCUMENT_AI_RECORD + FUND_ADMIN.DOCUMENT_ATTRIBUTE_CARTA_LAW_WORK_ITEM | carta-nda-dashboard's dedupe, counterparty and expiry rules; resources/app/nda-card.js |
| LP Summary | FUND_ADMIN.PARTNER_DATA + FUND_ADMIN.FUNDS + FUND_ADMIN.PARTNER_MONTHLY_NAV_CALCULATIONS | Largest LP families by commitment per fund currency, net TVPI from each partner's latest month; Fund Admin firms only (resources/app/segment-dashboards.js) |
| Capital Activity | none — fa:list:active-capital-activity + fa:list:capital-activity-partner | Active capital calls/distributions + per-partner detail; the row id/fund_uuid feed the reminder call_tool call |
Notes
build_artifact.pyproduces a complete, self-contained live artifact — CSS + config +
app + Chart.js inlined, base64-encoded fonts and logo, no external hosts at all. The
runtime CSP allows no external script, style or connect host, so a CDN reference blocks
silently and whatever needed it never renders. (Assemble via the build script; the source
carta-home.css / carta-home.app.js are injected — the template on its own is
intentionally unstyled.)
- The artifact supports any Carta firm — it calls
list_contextswithout a firm_name
filter and extracts the active firm automatically.
- Skill directory prompts use
{{FIRM}}internally and are replaced at runtime with the
detected firm name.
- Publishing with a
urlonly works on an artifact the user owns. If theurlfrom
Step 2 was shared with them rather than theirs, drop url and publish fresh.
- To change the artifact, edit the relevant source file under
resources/(see the
source-layout table above — includes resources/app/*.js for features already split out),
then re-run build_artifact.py. Never hand-edit the assembled HTML — except in Step 6,
which carries one user's own changes into their own build.
build_artifact.pystamps each page with a baseline of itself
(lib/live_artifact_render/customizations.py, run through scripts/customizations.py), so
Step 2c can list exactly what the user changed on the published copy. Changes the
user made are recorded nowhere else: the live page is the record.