Carta Captable Home Build
ASecurityBuild or open a live dashboard for one company's cap table, published as "Carta Home - {company}". Use when the user asks to "build cap table home", "rebuild cap table home", "deploy cap table home", "set up cap table home", or asks to build, rebuild, deploy or set up Carta Home for a named company or corporation — and to open an existing one: "open cap table home", "where's my cap table home", or to open or find Carta Home for a named company. For a fund firm's Carta Home (SOI, fund performa...
- 16 stars
- 0 votes
- 0 copies
- 2 views
- Added September 23, 2026
Works with
Security analysis
100/100Pro scans all 16 files and shows the line behind each finding
npx -y skills add carta/plugins --skill carta-captable-home-build --agent claude-codeAre you the author of Carta Captable Home Build?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/carta-carta-captable-home-build)---
name: carta-captable-home-build
description: >-
Build or open a live dashboard for one company's cap table, published as "Carta Home -
{company}". Use when the user asks to "build cap table home", "rebuild cap table
home", "deploy cap table home", "set up cap table home", or asks to build, rebuild,
deploy or set up Carta Home for a named company or corporation — and to open an
existing one: "open cap table home", "where's my cap table home", or to open or find
Carta Home for a named company. For a fund firm's Carta Home (SOI, fund performance,
LP reporting), use carta-investors' carta-home-build instead; for a CRM home of
pipeline, deals and contacts, use carta-crm's carta-crm-home-build.
model: sonnet
allowed-tools:
# The two Step 0 gates live in the plugin's own references/ directory.
- Read
# The only source for a connector's name
- list_connectors
# Carta MCP — the connector check's two observed calls.
- mcp__carta__welcome
- mcp__claude_ai_Carta__welcome
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__welcome
- mcp__carta__list_accounts
- mcp__claude_ai_Carta__list_accounts
- mcp__2827383e-1775-4df3-b6ff-04d5392f6d18__list_accounts
- Bash(uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-captable-home-build/scripts/build_artifact.py" *)
- Artifact
- ToolSearch
# Step 0b picks between companies; Step 2 asks who an untitled legacy page belongs to.
- AskUserQuestion
# Draws the pin sketch in "Keeping Carta Home handy" where inline visuals are supported.
- mcp__*__show_widget
---
<!-- carta:plugin-version -->
<carta-plugin>carta-cap-table:6.124.1</carta-plugin>
# Carta Home (cap table) — Build / Redeploy / Open
Deploys the `captable-home` live artifact, published as **`Carta Home - <company>`**. 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 company the page is built for. You never need to read the
assembled HTML — see "Source layout" below.
**One page serves one company.** The company is fixed at build time and named in the
artifact's own title, so the two can never disagree. A second company means a second build,
which claims its own artifact and its own URL.
Send `_instrumentation_v2: {"surface": "<surface>"}` with every Carta tool call, as a parameter
of the tool next to `name` and `arguments`, never in `arguments`. `<surface>` is the closest of
`chat`, `cowork`, `code-terminal`, `code-desktop`, `code-remote`, `excel`, `sdk-cli`,
`sdk-typescript` and `sdk-python`, else `other`. Run no shell command for this or any other
`_instrumentation_v2` field: send `session_id` only when your system prompt already shows it.
## What the artifact does
- **Update banner** — when a newer version of this artifact is published, a banner at the
top of the page says so and offers a copyable "rebuild" prompt. See Versioning.
- **Connection banner** — the first card whose fetch comes back with a real error raises
one banner naming the connector the page calls, the corporation it asks for, and what
Carta replied. A card's own "Couldn't load …" line cannot tell a dead connector from a
company that lives on another Carta environment; this can. A permission gap is not an
error here — the option pool and round history role states never raise it.
- **Fully diluted summary** — a strip above the tiles: stat tiles for fully diluted
shares, outstanding shares, and amount raised, plus a meter for outstanding as a share
of fully diluted. When every row is a percentage-based or invested-capital class, the
share totals add percentage points or nothing, so the strip shows the fully diluted
ownership the rows hold in place of the share tiles and the meter — never the empty
state. It carries no card chrome and nothing to click, because it summarizes
rather than drills in. Amount raised carries its own currency when
`cap_table:list:financings` resolves to exactly one, one tile per currency when
it resolves to more than one, and stays unitless when it can't be determined — never
assumed USD.
- **Dashboards** — five tiles. **Every one behaves the same way**: a preview in the tile,
and a footer button that opens that dashboard's full-page view. A tile that copies a
prompt instead would look identical and act differently, which is what the uniform
footer exists to prevent — `test_every_dashboard_tile_opens_a_drill_down` enforces it.
- *Cap table* — one horizontal **stacked bar** of fully diluted ownership by share
class, option plan and warrant block, then every row with outstanding, fully
diluted, and % fully diluted. The bar and every % use the ownership fields, never
share counts: a percentage-based or invested-capital class can hold ownership with
no share count, and an admin scoped to some share classes gets only the rows in
scope, each with its part of the whole company. So the part out of scope is a grey
"Rest of the company" segment, and a line above the bar says how much of the
company the rows hold. Both come from `totals.total_fully_diluted_ownership`, never
from the sum of the rows: committed RSAs are in the fully diluted total but in no
row, so for a full admin the rows can add up to less than the whole with nothing
out of scope. When every row is a percentage-based or invested-capital class, the
heading above the bar is that ownership, not a share count. Both read the one `cap_table_chart` response, so the pair
costs no extra fetch. Each
segment wears its own hue from the categorical order, separated by a 2px gap in the
surface color, and is named in the HTML legend below the bar — never color alone. A
value sits inside a segment only where it measures as fitting; the rest are in the
tooltip and the table. Six segments at most; a 7th+ class folds into "Other". The
chart draws in `afterShow`, never at fetch time: its canvas only exists
while the page is open, and Chart.js sizes to a laid-out canvas.
- *Round history* — cash raised per round, with close date, price per share, shares
issued, and post-money valuation. Cash is held per currency and never summed across
currencies; the tile's bar chart is drawn only when one currency is in play, and falls
back to per-currency rows otherwise.
- *Option pool* — one meter per plan in the tile: the fill is what has been granted, the
track is the whole pool. The page adds pool size, granted, available, % used and
expiry per plan.
- *Stakeholders* — the total as a stat tile, then a bar per stakeholder type. Every bar
wears the same hue: bar length already carries the count, so coloring each type would
double-encode it. The page adds each type's share of the total.
- *Drafts* — draft certificate and option grant sets on the cap table, full width
because it is a list. Set names arrive already entity-escaped from the API and are
decoded before display.
- **The company** — baked in at build time as `BAKED_CORPORATION_ID` /
`BAKED_COMPANY_NAME`, written into the page heading ("Carta Home | <company>") and driving
every card's data. The `<title>` comes from `page_title()` in the build script. The
page has no picker: it loads its one company and nothing else, and remembers nothing
between opens. To serve another company, build again for that company.
- **Suggested for you** — four editable prompt cards under a category chip (Ownership,
Equity, Governance or Compensation, read off the prompt's words). Personalized from
`get_current_user`'s `recommendations` when it returns any, padded out with the static
`CAP_PROMPTS` from the config. A pad is skipped when a personalized prompt already
covers one of its `topics`, so the row never shows two cards on one subject. The company
name in each prompt is an editable blank (`[[COMPANY]]` in a pad) that types itself in
when the row scrolls into view; Copy takes whatever the viewer left in the box and says
"Copied. Paste into chat." The prompts on screen are handed to What's new so it never
repeats one.
- **What's new** — a carousel of up to four items (`app/whats-new.js`), rotating every
five seconds until the viewer picks one, and pausing while the pointer or focus is
inside it. Order: unlocked microapps, then the newest recent skills from Contentful,
then locked microapps. The one microapp, Total Compensation (`WHATS_NEW_MICROAPPS`),
carries a "Microapp" pill, a "What's a microapp?" popover, and a "Set up in Claude Code"
button that copies `/carta-compensation-app`. It is unlocked when `get_current_user`
reports `has_ctc: true`; otherwise it is locked and links to the Total Compensation demo
page (tagged `utm_campaign=carta-home-whatsnew-total-compensation`) with no set-up
button. The skills are `pluginPrompt` entries from the prompts space with a go-live date
in the last 60 days, shown only when `has_cap_table` is true, and skipped when the skill
is not listed in the Skill Directory, when the Skill Directory file opts it out (`null`
or `"whatsNew": false`), when it is the microapp's own skill, or when its prompt is
already in Suggested for you. A skill whose directory entry has `whatsNewCopy` shows that
outcome headline and body; otherwise its prompt is the headline over a stock line. The
copy button always copies the prompt. The `WHATS_NEW` cards in the config paint at load and stay
whenever no profile arrives (no connector, a failed or unanswered `get_current_user`),
when no product flag is known, or when Carta supplies nothing; they pass the same Skill
Directory checks and follow the same copy rule (a card's `body` shows only when its skill
has no `whatsNewCopy`). Each item's preview is a static picture; `WHATS_NEW_SKILL_OUTPUTS` says
which kind (document, register, spreadsheet, chart, or an answer in chat) a skill gets.
- **Plugin news** — Carta events, customer stories, and guides. The template ships static
fallback cards; `live-content.js` replaces them with live Contentful entries tagged
`NEWS_TAG`. Every failure path keeps the static cards, so the row is never empty.
- **Skill Directory** — categorized index of carta-cap-table skills, each with two or
three copyable example prompts covering that skill's distinct use cases. The entries
come from the plugin's `.claude-plugin/skill-directory.json`: the build bakes them in,
and `skill-directory.js` swaps in the published copy from `plugin:list:skills` when the
page opens, so a skill that ships later appears without a rebuild. Any failure keeps
the baked list. See `docs/skill-directory.md` in the marketplace repo for the entry
format.
Every prompt names the company, because a copied prompt lands in a chat that has no page
context. The foot of each drill-down page, the directory's copy buttons and the `WHATS_NEW`
cards write it as a `{{COMPANY}}` placeholder, which `resolvePrompt()` fills with the
built-for company's name (or "this company" when it is somehow blank). The Suggested for
you pads write it as a `[[COMPANY]]` blank instead (see Suggested for you above), and Copy takes
whatever text is in the box. Keep either form a standalone noun —
`for {{COMPANY}}`, never `{{COMPANY}}'s` — so the fallback still reads as a sentence. `[square brackets]` mark a
value the user fills in.
Each dashboard's prompt sits at the foot of its **page**, not on its tile: the user has
just read the data there, so that is where the same question carries into chat. The
prompts live in `DASHBOARD_PROMPTS` in the config, keyed by page id. `fullPagePrompt()`
returns an empty string for a key it doesn't know, so a mistyped page id renders nothing
and fails silently — `test_every_drill_down_page_has_a_prompt_that_resolves` keeps the
template, the config and the call sites in agreement.
Every card fetches live data on open, and every card has three distinct states: loading,
error, and empty (see "Data sources" below).
## 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_JSON}}` placeholder in the page's
config block, which the build script (or you, for the shell page) fills in as a JSON string. 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`:
- `cap_table_chart` — renders the ownership composition bar
- `call_tool` — the non-deprecated dispatcher for every other colon-namespaced command
(`cap_table:get:...`, `cap_table:list:...`) that the cards use, plus
`marketing:list:content` / `marketing:get:asset_data` for the Plugin news row and
`marketing:list:content` for What's new's recent skills. The marketing commands only
exist on some environments; a missing one leaves the static news cards in place and
What's new on its microapp or fallback cards.
- `read_tool` — carries `plugin:get:version` for the update banner, `plugin:list:skills`
for the Skill Directory, and `plugin:get:artifact_bundle` for the shell page's body, CSS and JS. It runs reads without asking the viewer, so neither check
interrupts the page load
- `get_current_user` — called once; its profile supplies `recommendations` for Suggested
for you and `has_ctc` / `has_cap_table` for What's new
- `track_ui_event` — relays the page's UI events to Snowplow, called by the vendored tracker
## 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/captable-home.config.js` | all page content: `DIR_CATEGORIES` (directory categories: `id`, name, tagline), `CAP_PROMPTS` (Suggested for you pads + dedupe `topics`), `DASHBOARD_PROMPTS` (one per drill-down page, keyed by page id), `WHATS_NEW` (fallback cards), `WHATS_NEW_MICROAPPS`, `WHATS_NEW_SKILL_OUTPUTS`, `NEWS_TAG` | change the directory's categories, the capability, dashboard or what's-new prompts, or which Contentful tag feeds Plugin news |
| `resources/captable-home.app.js` | shared/core runtime logic (`_mcp`, `_mcpResultCandidates`, `_mcpErrorMessage`, format helpers, `fullPagePrompt`/`fpCopyPrompt`, the baked company constants + `selectCompany`, `loadCompanyData`, tab switching, Skill Directory render, fallback empty states) | change behavior for anything not yet split into its own file |
| `resources/app/ownership.js` | the ownership composition bar (`drawOwnershipChart` + `ownershipLegendHtml`, both used by the Cap table page) + the Fully diluted summary strip, all from `cap_table_chart`; the categorical palette and its surface/label color helpers; the shared `statTile` helper; and `applyAmountRaised`, which dashboards.js calls with the financing currency | change how the stacked bar, its legend, the FD stat tiles, the dilution meter, or the amount-raised currency logic render |
| `resources/app/option-pool.js` | Option pool tile (one meter per plan) + its full-page per-plan table | change option-pool rendering |
| `resources/app/stakeholders.js` | Stakeholders tile (total stat tile + bar per type) + its full-page by-type table | change the stakeholder count/breakdown rendering |
| `resources/app/drafts.js` | Drafts tile + full-page table; merges the two `draft_sets` calls | change how merged drafts render |
| `resources/app/dashboards.js` | the Cap table and Round history tiles, `openDashboardPage`/`closeDashboardPage` and every `open*Page()` entry point, plus the one paged `financings` read that feeds both the round history and the FD summary's currency | change the cap-table or round-history dashboards, or how any drill-down page opens |
| `resources/app/capabilities.js` | Suggested for you — editable prompt cards, category chips, typing-in blanks, copy; and the page's one `get_current_user` call (`fetchUserEnrichment`) that feeds this row and What's new | change how prompt cards are chosen or rendered |
| `resources/app/whats-new.js` | What's new — carousel engine, item selection, microapp and skill previews | change how the carousel picks, orders or renders items (edit the microapp and fallback cards in the config) |
| `../../.claude-plugin/skill-directory.json` | the Skill Directory's entries, keyed by skill: `category` (a `DIR_CATEGORIES` id), `name`, `order`, `prompts`, optional `tag` (`"App"` shows the Microapp pill), `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 of both | change which skills show or their example prompts — no rebuild needed once published |
| `resources/app/skill-directory.js` | reads the published directory (`plugin:list:skills`), validates it, keeps each skill's baked `tag` / `whatsNew` / `whatsNewCopy` when the server omits them, and re-renders over the baked list | change how the published list is merged or when it loads |
| `resources/app/version-check.js` | update banner: stays quiet for a week after the build (`BUILT_AT`), then reads the published version, compares, renders/dismisses | change the banner copy or when it appears |
| `resources/app/live-content.js` | Plugin news — live Contentful fetch, adapters, asset resolution; and `_listWhatsNewPrompts`, the Contentful fetch behind What's new's skills | change which content types render or how news cards look |
| `resources/app/tour.js` | the first-visit guided tour: `TOUR_STEPS` (each step's element id, title and copy), the spotlight and tooltip, and its `CaptableHome.Tour.Start` / `.Next` / `.Skip` events; it opens once per browser (localStorage `captable-home-tour-v1`) | change the tour's steps or copy |
| `../../.claude-plugin/skill-versions.json` | this skill's `version` + release `headline` | **bump on every user-visible change** — see Versioning |
| `resources/captable-home.css` | styles (Ink tokens) | change appearance |
| `resources/captable-home.template.html` | the head, the config block (`window.CAPTABLE_HOME`: every per-company and per-build value) + injection markers | change the head or the config block |
| `resources/captable-home.body.html` | the page's body markup (no placeholders) | change page structure |
| `resources/bundle.json` | the body, CSS and JS parts in load order, as paths inside the skill as carta-mcp serves it (`vendor/` is the plugin's `vendor/`) | add, remove or reorder a part |
| `resources/captable-home.loader.js` | the shell page's loader: cache, `plugin:get:artifact_bundle`, digest check, inject, retry | change how the shell loads its parts |
| `resources/captable-home.shell.html` | generated: the template's head and config block, with the loader as the body | never by hand — run `uv run scripts/build_artifact.py --write-shell` after you change the template or the loader |
| `resources/captable-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 |
App-layer JS assembles into a single classic (non-module) `<script>` tag — no bundler,
no runtime `import`/`export`. New feature files get added to the `js` list in
`resources/bundle.json` and concatenated in order. Card fetch/render functions are declared
with `function name() {}` (hoisted), so `loadCompanyData` in `captable-home.app.js` can
call them regardless of concatenation order.
**But top-level `const`/`let` are not hoisted.** One script means one shared scope, so a
module's constants are still in the temporal dead zone while an earlier file's top-level
code runs. Calling a later module's function from `captable-home.app.js`'s init block
throws `ReferenceError` the moment that function reads one of its own constants — and it
takes the whole page with it. Two rules follow:
- Each module does its own first paint at the bottom of its own file (see
`capabilities.js`, `whats-new.js`, `version-check.js`, `live-content.js`,
`skill-directory.js`).
- Every top-level name across all parts has to be unique. A duplicate `const` is a
parse-time `SyntaxError` that kills every card at once; `test_bundle_parses` catches it.
The build inlines `captable-home.body.html` → `<!-- __CAPTABLE_HOME_BODY_HTML__ -->`,
`captable-home.css` → `/* __CAPTABLE_HOME_CSS__ */`, and every JS part of `bundle.json`, in
its order, → `/* __CAPTABLE_HOME_JS__ */` as one script (the tracker, the chart bundle, the
config and the app files). The shell's loader joins the same parts the same way. Then the
build fills the config block: `{{CARTA_MCP_SERVER_JSON}}`, the company, the baked Skill
Directory and its opted-out skills, the version, the build id and the build time
(`BUILT_AT`), producing one self-contained HTML. No part holds a per-company value, so
carta-mcp can serve the same parts to every shell page.
## Versioning — bump this skill's entry when you change the artifact
A deployed artifact is a **frozen copy**. Nothing updates it in place. The version lives
in the **plugin's** registry, keyed by this skill:
```jsonc
// plugins/carta-cap-table/.claude-plugin/skill-versions.json
{ "carta-captable-home-build": { "version": "0.1.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.
**This is not the plugin's own version.** `carta-cap-table` publishes many releases
across ~30 skills. The update banner is keyed to this skill's number so it fires only
when *this artifact* changed — `app/version-check.js` reads `version` from the
`plugin:get:version` response and must never compare against the `plugin_version` that
rides along beside it.
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.** If you cannot
write a headline a customer would care about, that is the signal: ship patch.
`headline` is one line describing what changed. It is the text the banner shows, so write
it for the customer. CI rejects a minor/major bump whose headline is empty or still
describes the previous release.
## Deploy steps
### Step 0: Checks before building
Run both checks before building, and stay quiet about them when they pass:
1. `${CLAUDE_PLUGIN_ROOT}/references/gate-has-artifact-tool.md` — can this session publish at all?
2. `${CLAUDE_PLUGIN_ROOT}/references/gate-carta-connector-name.md` — the connector name the page will call.
Both sit in the **plugin's** `references/` directory — `${CLAUDE_PLUGIN_ROOT}/references/`,
alongside the other plugin-wide references. They are *not* under this skill's own
`references/`. Read them by that exact path; don't search for them.
This 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.** `welcome` runs once per conversation. If this conversation already called `welcome`, call only `list_accounts`. If not, call `welcome`, then `list_accounts`. Use *your own* prefixed tool names (`mcp__<prefix>__welcome`). An observed call is what makes the grant honest: publish without one and the platform warns that the page is "published against an unobserved interface". It does **not** verify the display name — nothing in this session can — so the name still comes from `list_connectors`. If either call errors, see Error Handling. If both succeed, say nothing about them.
**One connector answers the company and gets baked in — they must be the same one.**
The page hard-codes two values that only work as a pair: the corporation pk, resolved
here by `list_accounts`, and the connector display name, published in Step 3. A user with
both `Carta` and `Carta (Test)` installed has two connectors matching
`mcp__*Carta*__list_accounts`, so the glob can resolve the company on one environment
while `list_connectors` hands you the name of the other. The page then asks production
for a Test corporation and every card fails for every viewer.
So when `list_connectors` returns **more than one connected Carta entry**, ask with
`AskUserQuestion` which one this page is for *before* calling `welcome` / `list_accounts`
— the gate's Step 2 table says the same, and it is not optional here. Then make every
call in Step 0 and Step 0b through **that connector's own prefix**, and pass **that**
name as `--mcp-server` in Step 1 and as `server` in Step 3. Never resolve the company
through one prefix and publish against another name.
### Step 0b: Resolve which company this build is for
The page carries one company, so settle it before building. Reuse the **same
`list_accounts` response** the connector check above already made — same connector
prefix, and `detail: "full"` is required (`"summary"` returns blank names). Keep the accounts whose `id` starts
`corporation_pk:`. Do **not** filter on `type === "company"`: a corporation that can hold,
or that sits under a parent org, is typed `fund` and still has a cap table.
- **The user named a company in this request** — re-call `list_accounts` with
`search: "<name>"` and take the match. `search` is matched server-side across every
account they can reach; the unsearched response is a single page capped at 200 accounts
ordered by legal name, so a company further down the alphabet is *only* reachable this way.
- **carta-start chose the company in the run that loaded this skill** — re-call
`list_accounts` with `search: "<that name>"` and take the match. Ask nothing. A company
chosen in an earlier run does not count.
- **Exactly one company** — build for it and say nothing.
- **More than one** — ask with `AskUserQuestion`. Never guess: guessing publishes a page
titled for the wrong company.
- **None** — tell the user they have no cap-table company on this connector and stop.
Carry forward the company's **name** and its **bare pk** — `id` with the
`corporation_pk:` prefix stripped. The build rejects a still-prefixed id.
**Asked to open or find Home, not build it?** Skip Step 1 and run Step 2 now, then
Step 2b.
### Step 1: Build the self-contained artifact (no need to read any HTML)
`<slug>` is the company name lowercased with non-alphanumerics collapsed to `-`, so two
companies never write over each other's file.
Run this as its own command on one line, with the script path exactly as written and every
argument quoted. Don't chain anything before or after it (no `mkdir … &&`): a chained command
needs approval. Do not search for the script; where Bash is available, it reaches this path,
Cowork included:
```
uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-captable-home-build/scripts/build_artifact.py" --mcp-server "<CARTA_MCP_SERVER>" --corporation-id "<bare corporation pk from Step 0b>" --company-name "<company name from Step 0b>" --out "<outputs-directory>/captable-home-<slug>.html"
```
#### Step 1 without Bash or `uv` (the skill comes from the Carta connector)
Use this branch only when this session has no Bash tool or no `uv`. Do not run the build.
Write the small shell page instead. When it opens, it gets its body, CSS and JS from
carta-mcp through `read_tool` (`plugin:get:artifact_bundle`), so it is the same page, and it
always runs the newest parts. It needs no version and no build time.
1. Read `${CLAUDE_PLUGIN_ROOT}/skills/carta-captable-home-build/resources/captable-home.shell.html`.
When the skill comes from the Carta connector, read it as the resource
`skill://carta-captable-home-build/resources/captable-home.shell.html`. Do not search for it.
2. Replace each placeholder in the shell text. Change nothing else. A JSON string has its
quotes, a `\"` for each `"` and a `\\` for each `\`, and `<` as `\u003c`, `>` as `\u003e`
and `&` as `\u0026`:
| Placeholder | Value |
|---|---|
| `{{PAGE_TITLE}}` | `Carta Home - <company name>`, with `&` as `&`, `<` as `<` and `>` as `>` |
| `{{CARTA_MCP_SERVER_JSON}}` | the connector name from Step 0, as a JSON string: `"Carta"` |
| `{{CORPORATION_ID}}` | the bare corporation pk from Step 0b |
| `{{COMPANY_NAME_JSON}}` | the company name as a JSON string: `"Acme, Inc."` |
3. Write the result to `<outputs-directory>/captable-home-<slug>.html`. Then go to Step 2.
### Step 2: Find an already-published Carta Home for this company
```
Artifact({action: "list", scope: "mine"})
```
Look for an artifact titled exactly **`Carta Home - <Company>`**. If one is there, keep its
`url` — Step 3 passes it so the page redeploys in place. If there is none, omit `url`: this
company gets its own artifact. An artifact for a *different* company is not a match — reusing
its `url` would overwrite that company's page.
**A bare `Carta Home` with no company suffix** is a page from before the title carried the
company. Its favicon says which skill built it: **📊** is a cap-table page, **🏠** is
carta-investors' firm dashboard — never redeploy over a 🏠, it would replace a firm's
dashboard with this cap table. A 📊 one was built for *some* company and the listing cannot
say which, so do not assume it is this one: ask with `AskUserQuestion` whether to redeploy
over it or publish a new page, and pass its `url` in Step 3 only if the user says it is this
company's.
### Step 2b: Open instead of rebuilding
If the user asked to **open or find** Home ("open cap table home", "where's my cap table
home", "open Carta Home for <Company>") — not to build, rebuild or deploy — and Step 2
found this company's Home, do not rebuild. Send this as the whole reply, and ask no
question:
> Here's your Carta Home for <Company>: <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
> cap table 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 page's own update banner tells users when a rebuild is worth it, and "Rebuild
cap table home" still works if that's what they meant. If they then ask how to pin it,
give "Keeping Carta Home handy" below.
A bare `Carta Home` 📊 page from Step 2 counts only if the user confirms it is this
company's. If Step 2 found no Home for this company, say so and build it (Step 1, then
Step 3 onward).
### Step 3: Publish the artifact
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.
```
Artifact({
file_path: "<outputs-directory>/captable-home-<slug>.html",
url: "<url from Step 2 — omit entirely on a first publish>",
description: "Cap table home for <Company> — a fully diluted summary, and Cap table, Round history, Option pool, Stakeholders and Drafts dashboards, plus Suggested for you, What's new, Plugin news, and a Skill Directory.",
favicon: "📊",
label: "Redeployed from skill bundle",
capabilities: {
mcp: {
servers: [
{
server: "<CARTA_MCP_SERVER>",
tools: ["cap_table_chart", "call_tool", "read_tool", "get_current_user", "track_ui_event"]
}
]
}
}
})
```
> **No `title` here, and do not add one.** The tool reads the title out of the file's
> `<title>` tag and uses its `title` parameter only when the file has none — so a `title`
> passed alongside a built page is silently dropped. `build_artifact.py` stamps
> `Carta Home - <Company>` into the tag from `--company-name`, which is why the page and
> the name it publishes under cannot disagree. For the shell page, `{{PAGE_TITLE}}` sets the
> tag. If the artifact comes out named wrong, the build is wrong: check what Step 1 printed
> or wrote, not this call.
>
> Anything the page calls that is missing from `tools` rejects with `not_in_manifest`.
> `list_accounts` is **not** in the grant: the skill resolves the company at build time and
> the page never calls it.
> Keep `favicon` stable across redeploys — users find the tab by its icon — and keep the
> title stable **for a given company**: it is the per-company lookup key Step 2 matches on.
> Restate the whole `capabilities` object every time: a non-empty object replaces the
> stored grant, so a tool you leave out is revoked.
### Step 4: Confirm
Give the user the artifact's URL, name the company it is built for, and tell them it is
live. Name the Carta connection it calls too when they have more than one — that is the
only place a viewer can catch a page pointed at the wrong environment before opening it. The first open asks the viewer to consent to the Carta connector; until they accept,
every card shows its no-connector state. If they want another company, say so plainly:
run this skill again for that company and they get a second artifact.
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 cap table home' anytime" → reply with
that line.
If Step 2 left a bare `Carta Home` behind — the user said it wasn't this company's — say so
too: it is an older page, and they can either rebuild for whichever company it holds or
delete it from their artifact gallery.
## 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
<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 Company ⌄</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 cap table 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 cap table 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.
## Data sources (for reference)
| Card | Backing command |
|------|------------------|
| Cap table dashboard (tile, stacked bar and table) | `cap_table_chart` — one call, held in `_capTableChartData`, feeding all three plus the FD summary's share counts |
| Round history dashboard | `cap_table:list:financings` with `size` 100, read page by page (`after` = `next`) while `has_next` is true, at most 5 pages; past the cap the tile and the page say "Showing the latest rounds only." — one row per share class or note block, latest `closing_date` first, carrying `closing_date`, `original_issue_price`, `shares_issued`, `post_money`, `cash_raised` (one amount per currency) and `summary.total_cash_raised`. |
| Suggested for you | `get_current_user` — `recommendations`, filtered to entries that are not `is_skill_gap` and carry a `recommended_prompt` |
| What's new | the same `get_current_user` profile (`has_ctc` unlocks the microapp, `has_cap_table` gates the skills), plus `marketing:list:content` with `content_type: pluginPrompt`, `space: prompts`, newest `goLiveDate` first |
| Update banner | `plugin:get:version` via `read_tool`, with `plugin` + `skill` arguments |
| The shell page's body, CSS and JS | `plugin:get:artifact_bundle` via `read_tool`, with `plugin` + `skill`: the parts `resources/bundle.json` lists. The page keeps them in `localStorage` and sends their `build_id` as `if_build_id` on each open; it runs kept parts only when the answer is `unchanged` and their sha256 is the `build_id`. The shell bakes an empty Skill Directory, so the directory comes from `plugin:list:skills` |
| Skill Directory | baked from `.claude-plugin/skill-directory.json` at build time, then `plugin:list:skills` via `read_tool` with `plugin` — entries at the plugin's stable tag, only for published skills. `skills: null` or an unusable list keeps the baked one |
| Plugin news | `marketing:list:content` (tag `NEWS_TAG`, `tag_source: "metadata"`) then `marketing:get:asset_data` per image. Images must arrive as `data:` URIs — the sandbox CSP is `img-src 'self' data:`, so a remote asset URL renders nothing |
| Ownership composition bar (on the Cap table page) | `cap_table_chart` — `chart_data.share_classes` and `chart_data.warrant_blocks` by `fully_diluted_ownership`, `chart_data.option_plans` by `outstanding_ownership + available_ownership`, largest first and capped at six segments, plus "Rest of the company" when `chart_data.totals.total_fully_diluted_ownership` is less than the whole |
| Fully diluted summary | `cap_table_chart` — `chart_data.totals` for share counts, or `total_fully_diluted_ownership` when every share class row's `quantity_semantics` is `PERCENT` or `INVESTED_CAPITAL` (same call again, no extra fetch), upgraded by the Round history dashboard's `cap_table:list:financings` response, which the dashboard hands over via `applyAmountRaised` — one currency renders plainly, more than one renders a per-currency breakdown (never summed), none/failure keeps the unitless fallback |
| Option pool | `cap_table:list:equity_plans` with `size: 100` (403 for non-staff users falls back to a plain "not available for your role" state, not an error banner) |
| Stakeholders | `cap_table:list:stakeholders` with `size: 1` and `fields: ["id"]` — no `search` param, no names/PII; the card reads only `summary.count` and `summary.by_relationship`. Relationship names vary per corporation, so they are always iterated, never matched against a hardcoded enum |
| Drafts | `cap_table:list:draft_sets` called **twice** — once per required `security_type` (`certificate`, `option_grant`) — and merged; one call can fail without blocking the other |
| The company itself | none at runtime — baked in at build time. The **skill** resolves it once with `list_accounts` in Step 0 (see there) |
`cap_table:get:cap_table_summary` does not exist ("Unknown command") — never reference it.
## Gates
**Required inputs**: the company and the Carta connector. Step 0b resolves the company and
asks with `AskUserQuestion` when there is more than one. Step 0 takes the connector name
from `list_connectors` and asks when more than one Carta entry is connected.
**AI computation**: No — the page shows live Carta data. Publishing changes nothing in Carta.
## Error Handling
| Situation | What to do |
|---|---|
| `welcome` or `list_accounts` errors in Step 0 | Tell the user Carta isn't responding and stop. Do not publish. |
| The shell page shows "Carta Home could not load" | carta-mcp did not send the page's parts. Check that `read_tool` is in the grant (Step 3). Do not write the parts into the page. |
| `build_artifact.py` exits with an error | Fix the argument it names (a still-prefixed `corporation_pk:` id is the usual one) and run it once more. If it fails again, show the error and stop. |
| A card fails with `scope_required`, 403 or "response too large" | The card keeps its fallback state. Do not rebuild for it. |
## Notes
- `build_artifact.py` produces a complete, self-contained live artifact — CSS + config +
app inlined, fully self-contained — Chart.js is vendored at the plugin level (`plugins/carta-cap-table/vendor/chart.umd.min.js`) and inlined at build time. The runtime CSP allows no external
script, style or connect host, so a CDN reference blocks silently and the charts never draw.
- To change the artifact, edit the relevant source file under `resources/` (see the
source-layout table above), then re-run `build_artifact.py`. Never hand-edit the
assembled HTML.
Files in this skill
- SKILL.md
- resources/app/capabilities.js
- resources/app/dashboards.js
- resources/app/drafts.js
- resources/app/live-content.js
- resources/app/option-pool.js
- resources/app/ownership.js
- resources/app/stakeholders.js
- resources/app/version-check.js
- resources/app/whats-new.js
- resources/captable-home.app.js
- resources/captable-home.config.js
- resources/captable-home.css
- resources/captable-home.template.html
- resources/captable-home.tracker.js
- scripts/build_artifact.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.