Carta Home ホームページの作成・再構築(Cowork ダッシュボードのホームページで、Carta のあらゆる企業に対応) 投資予定表、ファンドのパフォーマンス、損益計算書、貸借対照表、LP(出資者)向けレポート、ポートフォリオ評価、マネジメントカンパニーの実績、Form ADV などの要約カードを表示します。また、コピーして使える質問テンプレートをまとめた「スキルディレクトリ」も含まれます。Carta MCP(プラグイン連携)のコンテキストから、現在使用中の企業を自動判定します。 **次のような場合に使用:** - 「Carta Home ホームページを作成して」「Carta Home を再構築して」「Carta Home を更新して」「Carta Home をセットアップして」「Carta Home ページを展開して」などのリクエスト - 既存のホームページを開く場合:「Carta Home を開いて」「Carta Home はどこ?」「私のホームを開いて」 **使用しない場合:** 個別のダッシュボードの作成・変更には使いません。以下の場合は対応するスキルを使用してください: - 投資予定表 → `carta-soi` - ファンドのパフォーマンスページ → `carta-fund-performance` - 企業の株式構成表 → `carta-captable-home-build`(carta-cap-table スキル内) - CRM ホームページ → `carta-crm-home-build`(carta-crm スキル内)
Builds or rebuilds the Carta Home live artifact — a Cowork dashboard home page that works for any Carta firm. Summary cards for Schedule of Investments, Fund Performance, P&L, Balance Sheet, LP Reporting, Portfolio Valuations, ManCo actuals and Form ADV, plus a Skill Directory of copyable prompts. Auto-detects the active firm from the Carta MCP context. Use whenever the user asks to "build the carta home artifact", "rebuild carta home", "update my Carta Home", "create my Carta Home", "set up Carta Home", "set up the carta home page", or "deploy carta home" — and to open an existing one: "open Carta Home", "where's my Carta Home", "open my home". Do NOT use it to build or change one dashboard: a Schedule of Investments is carta-soi, a fund performance page is carta-fund-performance. For a company's cap table use carta-cap-table's carta-captable-home-build; for a CRM home use carta-crm's carta-crm-home-build.
<!-- carta:plugin-version --> <carta-plugin>carta-investors:6.71.0</carta-plugin>
Deploys the carta-home live artifact, published as Carta Home - <firm>. 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 and the firm the title names. You never need to read the assembled
HTML — see "Source layout" below.
The firm reaches the title through the build, because the published artifact takes its name
from the page's own <title> tag. Nothing else about the bundle is firm-specific: the body
still detects whichever firm is active at open time. One artifact per firm, so each has its
own sidebar tile.
Schedule of Investments (SOI) — fund-level summary of the top 3 funds by value, with
gain/loss coloring. Pulled from FUND_ADMIN.AGGREGATE_INVESTMENTS. The card footer
launches the standalone SOI dashboard; home holds no holdings table of its own.
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. The card footer launches the standalone Fund Performance dashboard.
P&L Card — Unrealized gain/loss and total expenses from FUND_ADMIN.STATEMENT_OF_OPS
(pre-aggregated, fast — no journal entry scan).
Balance Sheet Card — Portfolio value, LP NAV, GP NAV, Total NAV from
FUND_ADMIN.MONTHLY_NAV_CALCULATIONS with IS_FIRM_ROLLUP = TRUE (latest month).
LP Reporting & Relations — links to tear sheet downloads, LP documents, and LP dashboard.
Valuations — top 5 holdings by MOIC from FUND_ADMIN.AGGREGATE_INVESTMENTS. Shows
company name, FMV, and MOIC with color coding (green ≥ 2x, blue ≥ 1x, red < 1x).
ManCo & Budgeting — YTD expense actuals by category from FUND_ADMIN.STATEMENT_OF_OPS.
Shows the top 5 categories by spend (management fees, legal, fund admin, audit, tax prep,
payroll, software, other) with a total footer. Run button triggers the budget vs actuals skill.
Compliance (Form ADV) — Discretionary AUM, Non-discretionary AUM, and Total Regulatory
AUM. Tries FUND_ADMIN.FORM_ADV_FUND_DETAIL first; falls back to FUND_ADMIN.MONTHLY_NAV_CALCULATIONS
total NAV as a proxy if that table is unavailable (adds a footnote when using the fallback).
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 an
App pill and a line saying it launches in Claude Code, since the app is a local
React app that a Cowork chat cannot start. 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:
has_tactychas_active_mancorequires 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.
Firm auto-detection — calls list_contexts without 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. 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 batches the same send: a selection table of the remindable investors (all
checked to start), 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).
Two of the home cards are summaries that link out, not full surfaces. The full Schedule of Investments and Fund Performance experiences each live in their own standalone artifact, published by their own skill, so there is exactly one implementation of each.
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. |
prompt is the contract, and buildSkill follows it. The same sentence routes to
whichever skill owns that dashboard in the current install — carta-soi here, and
carta-portfolio-analytics-routing in the published carta/plugins tree, where carta-soi
does not exist. buildSkill lists both so the build-time fan-out reaches the same owner the
prompt would: Step 5 takes the first candidate that resolves. 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.
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 sessionfetch — all DWH queries (SOI, P&L, BS, benchmarks, tear sheets)get_current_user — signed-in user's profile; has_tactyc and has_active_manco gate
their Skill Directory categories (see fetchUserEnrichment)mutate — the legacy write dispatcher, granted as a fallback; nothing in resources/
calls itcall_tool — the gateway dispatcher, carrying both the Capital Activity reminder sends
(fa__mutate__send-capital-call-reminder) and the Plugin news live-content cardsThe 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 |
change which categories show, a category's entitlement gate, which Contentful tag feeds Plugin news, or which cards launch a standalone dashboard |
../../.claude-plugin/skill-directory.json |
the Skill Directory's entries, keyed by skill: category (a DIR_CATEGORIES id), name, order, prompts, optional tag ("App") and requires; null opts a skill out |
add or change a skill's row or example prompts — no rebuild needed once published |
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, Skill Directory, 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 |
../../.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; 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.
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 the fetch tool the artifact
already has — no capabilities.mcp change needed).
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:
carta/plugins and a
week old, not when it merges here — carta-mcp announces a release only after users'
installs have had time to pick it up.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. The calls are harmless and cost nothing.
No event currently reaches Snowplow, and rebuilding the tracker will not change that.
The runtime CSP is connect-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com,
so the collector host is unreachable from the artifact — the browser blocks the request
before the tracker's transport matters. Restoring analytics means routing events through an
MCP tool call (which goes over the runtime bridge, not the network, and so is not
CSP-limited), not fixing the bundle.
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 confirms the connector actually answers — being listed is registry state, not proof — and publishing without one observed call earns the platform's "published against an unobserved interface" warning. get_current_user is not a second check; this skill needs its 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.
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>"})
The title must name 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 3's title and Step 2's lookup
key 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 title 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.
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 | Scope |
|---|---|---|
| Home | Carta Home - <Firm> (hyphen) |
this firm only |
| Schedule of investments | <Firm> — Schedule of Investments (em dash) |
this firm only |
| Fund performance | Fund Performance |
shared by every firm |
A title is not an identity on its own. The two firm-scoped pages carry the firm in
theirs, so one belonging to a different firm is not a match — reusing its url would
republish over that firm's page. Match the whole title, never a fragment: every firm's SOI
ends in the same three words.
Fund performance is the deliberate exception. It carries no firm in its title because the page resolves the active firm when a viewer opens it, so one artifact serves everyone — adopting it is reuse, not a collision. Don't "correct" it into a per-firm match.
More than one match for the same title is a collision, not a choice. It means some
earlier run created a second artifact instead of redeploying over the first — most likely
because that run's url was never passed through to the dashboard skill, or the artifact
was published under a different session identity than this scope: "mine" listing sees.
Do not silently pick the newest and move on: tell the user how many duplicates exist for
that title and which URL you are about to redeploy over, so the stale ones can be cleaned
up deliberately rather than accumulating further.
A bare Carta Home with no firm suffix predates per-firm titling. Only adopt one whose
favicon is 🏠 — that is this skill's page, so redeploy over it. A bare Carta Home
carrying 📊 belongs to carta-cap-table's carta-captable-home-build and holds some
company's cap table; leave it alone, publishing over it would replace that cap table with
this firm's dashboard.
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.
If Step 2 found no Home for this firm, say so and build it (Step 3 onward).
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: the update carries every change into the new version without asking, and asks only where the new version and a change collide (Step 6). Run this step whenever Step 2 found this firm's Home or either dashboard; skip it on a first build.
Start fresh on request. When the user asked for a clean page — "start fresh", "reset Carta Home", "without my changes" — skip the rest of this step: nothing is carried over. Still save the live page (below), so their old one can come back.
1. Save the live page. Read it and save it next to the build output, at
<outputs-directory>/carta-home-<slug>.live.html — if Artifact({action: "read", url})
hands back a file, use that; otherwise write the HTML it returns to that path. This copy
is the user's backup and what "undo" restores from, so keep it for the whole run.
2. Find what changed.
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build/scripts/customizations.py" diff <outputs-directory>/carta-home-<slug>.live.html
Every build stamps a baseline of itself into the page, so the script lines the live page
up against the page as it was built and prints JSON with a status:
status |
Meaning | What to do |
|---|---|---|
unmodified |
the page is exactly as built | nothing to carry over |
customized |
hunks holds each change: the live line it starts at, the lines added, and how many were removed |
describe each change (below); Step 6 carries them over |
no_baseline |
built before pages carried a baseline | run it again with --against (below) |
For no_baseline, build the new page first (Step 3's command with --out <outputs-directory>/carta-home-<slug>.reference.html), then rerun the script with
--against <that file>. The hunks now mix the user's changes with everything Carta
changed since version. Keep only what reads as the user's — a column, a filter, a color
rule, a card or a chart Carta's source does not have. These are your best reading of their
changes, so the summary says so (Step 8).
Describe each change in one plain line a fund CFO recognises, named by where it shows —
"SOI card: rows tinted by gain/loss", not a line number or a function name. Read the live
file around a hunk's line when the added lines alone don't say what it does. Several
hunks that make one change are one line. These lines are what the summary lists.
A page that is mostly the user's own flips the direction. When summary.changed_share
is 0.3 or more, carrying their changes onto the new build means rebuilding most of their
page by hand. Step 6 brings Carta's changes into their page instead — still without asking.
3. Dashboards. The SOI and Fund Performance dashboards are published by their own
skills and carry no baseline, so their changes can't be found — and Step 5 republishes them
from scratch. That is a real choice only the user can make, so when Step 2 found either
dashboard, ask one AskUserQuestion — question "Update your Schedule of Investments and
Fund Performance dashboards too?":
Keep them as they are — the found dashboards are kept: Step 3 passes their Step 2
URLs as --dashboard-url instead of --dashboard-building, and Step 5 skips them. A kept
dashboard still raises its own update banner when its skill ships a new version.
Home itself asks nothing here. Carry its change list, and which dashboards are kept, through to Steps 3–6.
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>" --firm-name "<firm name from Step 1>" --dashboard-building soi --dashboard-building perf --out <outputs-directory>/carta-home-<slug>.html
--firm-name is stamped into the page's <title> as Carta Home - <Firm>, which is what
names the published artifact. It is the only firm-specific thing in the bundle; the body
still detects whichever firm is active when a viewer opens it.
This build runs twice. On this pass, every entry with a buildSkill takes
--dashboard-building <key> and nothing else — including one whose artifact Step 2
already found. Step 5 rebuilds that artifact too, so linking to it now would point at the
page this run is about to replace. Step 6 runs the same command again with the URLs Step 5
returns, and the cards become launchers.
An existing URL is not a reason to skip Step 5. Every entry with a buildSkill is
rebuilt on every run unless the user chose to keep it in Step 2c, so the dashboards carry the current version of their skill rather
than whatever shipped whenever they were last published. Step 2's URL tells the dashboard
skill where to redeploy; it never stands in for building.
A dashboard Step 2c kept is the exception: pass its Step 2 URL as --dashboard-url <key>=<url> now, 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.
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 found changes to carry over. 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 kept: 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 theReadtool's per-call token cap even atlimit: 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 passforce: 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: "Dashboard home for <Firm> — SOI, Fund Performance, P&L, Balance Sheet, LP Reporting, Valuations, ManCo Actuals, Form ADV, and Skill Directory.",
favicon: "🏠",
label: "Redeployed from skill bundle",
capabilities: {
mcp: {
servers: [
{
server: "<CARTA_MCP_SERVER>",
tools: ["welcome", "list_contexts", "set_context", "fetch", "get_current_user", "mutate", "call_tool"]
}
]
}
}
})
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 atitlepassed alongside a built page is silently dropped.build_artifact.pystampsCarta Home - <Firm>into the tag from--firm-name. 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.call_toolcarries the Capital Activity reminder sends, and is the gateway dispatcher the Plugin news live content cards use to reachmarketing__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.Keep
faviconstable across redeploys — users find the tab by its icon — and keep the title stable for a given firm: it is the per-firm lookup key Step 2 matches on. Restate the wholecapabilitiesobject every time: a non-empty object replaces the stored grant, so a tool you leave out is revoked.The title is stamped once, at build; the page still follows whatever firm is active in the viewer's Carta context when they open it. A viewer who switches firm sees a title that no longer matches the body. Rebuild for that firm to fix it.
This step always runs for every dashboard the user did not keep in Step 2c. 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 Step 2c did not keep, 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. 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.
A router candidate serves several dashboards, so it needs the entry's prompt to know
which one to build. Lead with that 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 calllist_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.
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: the router's benchmarks route answers in chat rather than publishing an
artifact, 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.
Run Step 3's build command again, this time passing --dashboard-url <key>=<url> for every
dashboard Step 5 published, 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.
Carry the user's changes over when Step 2c found any, before publishing. Get the plan:
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build/scripts/customizations.py" plan <outputs-directory>/carta-home-<slug>.live.html <outputs-directory>/carta-home-<slug>.html
It lists the same changes as Step 2c, each with conflict: true when Carta changed or
removed the same part of the page in this version.
conflict: true — the part of the page it changed is different now. Ask about this
change alone.For a page that is mostly theirs (Step 2c), turn it around: publish the saved live file,
bringing in each of Carta's changes from uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-home-build/scripts/customizations.py" diff <live file> --release <this build>, and ask only where one of them lands on something
the user changed.
Ask about each conflict with AskUserQuestion, one question per change, naming it and what
changed in Carta Home:
Up to four conflicts go in one call. More than four is one question first: label "Adapt them all", "Use the new version for all" or "Go through them". A change the user did not touch in conflict never becomes a question.
Nothing else is asked: publish when the conflicts are settled.
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 — so 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.
Open the published URL and check that it displays fund data for the active firm without errors — SOI rows, Fund Performance charts, and the P&L/Balance Sheet cards should all populate. The first open asks the viewer to consent to the Carta connector; until they accept, every card shows its no-connector state.
Give the user the artifact's URL, name the firm in its title, and tell them it is live. When Step 2c carried changes over, follow with the summary — the user was not asked about them, so this is how they find out and how they undo one:
Kept your <N> changes: <plain line>, <plain line>, <plain line>. Want to undo any of them, or start fresh? Your previous page is saved.
Past five changes, name the areas with a count ("Kept your 14 changes: 9 on the SOI card,
5 on the header"). Add a line for each conflict and how it was settled ("Days held column:
Carta Home now has one built in, so yours was dropped"). For a no_baseline page, say
"These look like your changes" instead of "Kept your changes". After start fresh, say
nothing was carried over and where the previous page is saved.
Undo. If they then ask to undo a change, remove it from the published page (edit the
built file, republish with the same call and url). "Start fresh" republishes the plain
build. "Put my old page back" republishes the saved .live.html.
Then ask with AskUserQuestion (or as a plain-text list), passing each option's label
and description exactly as below:
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 - Your Firm ⌄</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.
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.server_not_connected or needs_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.The artifact's SOI, P&L, 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.
| Card | DWH Table | Notes |
|---|---|---|
| SOI | FUND_ADMIN.AGGREGATE_INVESTMENTS + FUND_ADMIN.FUNDS |
Joined on FUND_UUID |
| 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 |
| P&L | FUND_ADMIN.STATEMENT_OF_OPS |
Pre-aggregated per-firm; no journal scan |
| Balance Sheet | FUND_ADMIN.MONTHLY_NAV_CALCULATIONS |
IS_FIRM_ROLLUP = TRUE, latest month |
| Tear Sheets | FUND_ADMIN.AGGREGATE_INVESTMENTS + FUND_ADMIN.CORPORATION_BASIC_INFO_V2 |
Company list |
| 409A | FUND_ADMIN.IRC409A_VALUE + FUND_ADMIN.CORPORATION_BASIC_INFO_V2 |
Latest valuation per company |
| Deal IRR | FUND_ADMIN.TEMPORAL_DEAL_IRR |
Latest per ISSUER_NAME |
| Valuations | FUND_ADMIN.AGGREGATE_INVESTMENTS |
Top 5 by MOIC; HAVING COST > 0 to exclude zero-cost rows |
| ManCo Actuals | FUND_ADMIN.STATEMENT_OF_OPS |
Per-category expense breakdown; top 5 by spend |
| Form ADV AUM | FUND_ADMIN.FORM_ADV_FUND_DETAIL (primary) / FUND_ADMIN.MONTHLY_NAV_CALCULATIONS (fallback) |
Discretionary + non-discretionary + total; falls back to total NAV if form ADV table unavailable |
| 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 mutate call |
build_artifact.py produces 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.)list_contexts without a firm_name
filter and extracts the active firm automatically.{{FIRM}} internally and are replaced at runtime with the
detected firm name.url only works on an artifact the user owns. If the url from
Step 2 was shared with them rather than theirs, drop url and publish fresh.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.py stamps each page with a baseline of itself (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.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。