/carta-cap-table:carta-reporting-markdownfrom Carta Cap Table
Internal step of carta-reporting that guides users through shaping a report in MARKDOWN mode: schema preview, customization checkpoint, transform configuration (filtering, sorting, formulas, aggregations), output preview, and hand-off to carta-reporting-excel.
Ships in Carta Cap Table. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
carta-cap-table:6.124.1
Called from carta-reporting step 4d (MARKDOWN mode, Artifact tool not available). Use values resolved earlier in this session: data file path, corporation_id, user_report_pk. The script lives at ${CLAUDE_PLUGIN_ROOT}/skills/carta-reporting/scripts/report_processor.py; never search for it. Run it only in the one-line form below, as its own command: a heredoc, a pipe or a chained command needs approval every time.
Run report_processor.py on the data file with no transforms to extract column names and types:
Write carta-reporting/config.json (in the working directory) with:
{
"local_file": "<preview or full report file path>"
}
Then run this as its own command, on one line:
UV_PYTHON_DOWNLOADS=never uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-reporting/scripts/report_processor.py" --config "carta-reporting/config.json"
Lead with a brief result summary (e.g. "Here's your Securities Ledger report — loading full data in the background."), then present the column inventory.
Column inventory format — numbered list, grouped by category. Example for a 28-column report:
**All 28 columns:**
Identity
1 — Stakeholder Name (text) 2 — Grant ID (text) 3 — Equity Plan (text)
Grant details
4 — Grant Date (date) 5 — Grant Type (text) 6 — Exercise Price (money)
7 — Expiration Date (date)
Share counts
8 — Shares Issued (integer) 9 — Shares Vested (integer)
10 — Shares Unvested (integer) 11 — Shares Cancelled (integer)
...
Grouping heuristics (apply in order; unmatched → "Other"):
dateinteger, name contains Share, Quantity, Count, UnitsmoneypercentageOne AskUserQuestion covering columns, filters, sort, and format. Content adapts based on what the original prompt already specified. Always ask it before the output preview or an Excel export, also when the prompt asks to download or export the report. Ask it with the AskUserQuestion tool, not as a plain-text question: never end the turn with a question in text, such as "Reply Export to Excel". The row count, the rows with no values and the data warnings go in the question, not in text before it: the host shows text between tool calls only as a one-line summary. Start the question with this sentence word for word: "The report has {R} rows." ({R} is the sum of kept_row_count across sheets.)
When the prompt specified details:
Question: I'll apply these settings from your request:
- Columns: Stakeholder Name, Grant Date, Shares Issued, Vested %
- Filter: Vested % > 50%
- Sort: Grant Date descending
You can also add formula columns (% of total, running sum, ratio, delta) or aggregations (totals row, group-by).
Options:
Continue with these settings·Adjust columns, filters or sort
When the prompt was vague:
Question: What would you like to customize? You can set any of:
- Columns — which to include
- Filters — e.g. "Vested % > 50", "Grant Date after 2024-01-01", "Name contains Smith"
- Sort — e.g. "Grant Date newest first", "Shares Issued descending"
- Formulas — % of total, running sum, ratio (A ÷ B), delta (row-over-row change)
- Aggregations — totals row or group-by rollup
Options:
All columns, no filters·Customize
Before building the config, check every column name and filter target the user mentioned against the actual column names from the schema preview. The user's terminology often differs from the report's column names (e.g. "Department" → "Cost Center", "Employee" → "Stakeholder Name", "Vest %" → "Vested %").
Matching rules (apply in order):
When a term can't be matched, surface it in the checkpoint with candidates:
⚠ "Department" wasn't found in this report. Closest text columns: Cost Center, Equity Plan, Grant Type. Which did you mean, or should I skip this filter?
Show at most 3 candidates, ranked by edit distance / word overlap. If the unmatched term was a filter target, do not add it to the config until the user resolves it.
Apply this check to: explicit column selections, filter column names, sort column names, and formula source columns.
Always pre-select key identifier columns (Stakeholder Name, Grant ID, or equivalent) plus any columns explicitly named in the prompt. State what's pre-selected in the checkpoint:
Question: Columns pre-selected: 1 — Stakeholder Name, 2 — Grant ID, 6 — Exercise Price. To add columns, type their numbers (e.g. +8, 12, 13) or a keyword (e.g. vesting).
Options:
Keep the pre-selection·All 28 columns
If the user replies with a keyword, call AskUserQuestion once more showing only matching columns and ask them to confirm or add more by number. This is the only case where a second checkpoint question is allowed.
All filtering is handled by report_processor.py — do not apply filters in Claude's memory.
Translate user requests to filter objects:
| User request | Filter object |
|---|---|
| "vested % > 50" | {"column": "Vested %", "op": ">", "value": 0.5} |
| "grant date after 2024-01-01" | {"column": "Grant Date", "op": ">", "value": "2024-01-01"} |
| "name contains Smith" | {"column": "Stakeholder Name", "op": "contains", "value": "Smith"} |
| "ownership above 5%" | {"column": "Fully Diluted %", "op": ">", "value": 0.05} |
| "only Class A and Class B" | {"column": "Share Class", "op": "in", "value": ["Class A", "Class B"]} |
Supported ops: > < >= <= = != contains in
in takes a list and keeps a row that = would keep for any one of the values; every other op
takes one value. "Not one of" is a != filter per value.
Pass percentage values as decimals when the column type is percentage (e.g. 50% → 0.5).
When a filter removes all rows from a sheet, the script returns 0 rows — skip that sheet and note it in the summary.
All column selection is handled by report_processor.py. Pass column names in the desired display order; the script preserves that order.
Always include key identifier columns (Stakeholder Name, Grant ID, or equivalent) even if the user didn't explicitly request them.
Translate user requests to sort objects:
| User request | Sort object |
|---|---|
| "newest first" | {"column": "Grant Date", "direction": "desc"} |
| "largest first" | {"column": "Shares Issued", "direction": "desc"} |
| "alphabetical" | {"column": "Stakeholder Name", "direction": "asc"} |
Multi-key: pass multiple objects in priority order (first = primary sort key).
Formula computation is handled by report_processor.py. Formulas are applied after column selection — they can only reference columns that are included in the output.
Formulas are for mechanical transforms on values already present in the report data — arithmetic that any spreadsheet could do without knowing anything about equity rules. The four supported ops:
| Op | Description | Required fields |
|---|---|---|
pct_of_total | Each row as % of the column's total in this report | column |
running_sum | Cumulative total down the column (current sort order) | column |
ratio | numerator ÷ denominator | numerator, denominator |
delta | Row-over-row difference (current sort order) | column |
pct_of_total divides by the sum of the rows present, which is the whole company only when the
report is. If _scope_<corporation_id> reports is_limited_admin: true (step 1b of
carta-reporting), name the column "% of {Share Class} Total" — or "% of In-Scope Total" for more
than one class — and never present it as ownership of the company.
If a user asks for a value that requires understanding cap structure, equity rights, or ownership math, direct them to the Carta report that already contains it:
"That calculation involves equity rules that I can't safely compute from the raw data. Carta's [Report Name] report already has it — want me to pull that one instead?"
Example:
[
{"name": "% of Total Shares", "op": "pct_of_total", "column": "Shares Issued"},
{"name": "Cumulative Shares", "op": "running_sum", "column": "Shares Issued"}
]
Aggregation is handled by report_processor.py.
Summary row — appends one totals row at the bottom (a {"_t": [...]} row); the label "Total" sits in the first visible column with no aggregation:
{"type": "summary", "columns": {"Shares Issued": "sum", "Vested %": "avg"}}
Group-by — collapses rows by a key column, one row per unique value:
{"type": "group_by", "group_by": "Stakeholder Name",
"columns": {"Shares Issued": "sum", "Grant Count": "count"}}
Supported ops: sum avg min max count
See Script Reference in carta-reporting for the full API (all fields, multi-sheet, merge, output format).
Phantom equity label: If _phantom_label_<corporation_id> was resolved in this session (Step 1a of carta-reporting), include "label_overrides": {"CBU": "<label>"} in every report_processor.py invocation for this corporation — both the schema preview call and the output preview/full-report call. Use the corporation-keyed variable (e.g. _phantom_label_12345) to correctly handle multi-corporation flows.
Always check stats after running:
missing_columns non-empty → list available column names from data[sheet].columns and ask the user which they meant, then re-run with the corrected nameskipped_formulas non-empty → tell the user which formulas couldn't run (usually the source column wasn't included in the selection)warnings.unknown_sheets present → a requested sheet is not in this report; write the warnings.unknown_sheets row's sentence word for word (carta-reporting Error Handling table)warnings.merge_sources_missing present, or stats[<merged sheet>].schema_warnings non-empty → say which sheet's rows are missing from the merged tab (wording in the carta-reporting Error Handling table)warnings.data_quality present → add a Show data warnings option, and put this sentence word for word in the Customization Checkpoint question. One sentence with a clause for each sheet in warnings.data_quality: "Carta flagged {N} securities with data warnings" ({N} is the "Data Warnings" count) and "{M} defective securities" ({M} is the "Defective Securities" count). When the user picks it or says "show data warnings", rerun with sheets naming every sheet in warnings.data_quality. Do not use the checkpoint text of carta-reporting step 4d: it is for ARTIFACT mode onlyempty_rows_dropped > 0 → put this sentence word for word in the Customization Checkpoint question: "{K} rows with no values were left out." (K = sum of empty_rows_dropped across sheets)filtered_row_count = 0 → no rows matched; offer to relax the filter or change as_of_datedisplayed_row_count < kept_row_count (section and _t rows not counted) → preview is active; re-run without preview for full resultsAfter the Customization Checkpoint, check if carta-reporting/carta_report_<user_report_pk>.json exists. If ready, use it as local_file. If not, poll every 5 s up to 5 more attempts. If the data file is a preview (carta_preview_<pk>.json), label every table as a preview with partial rows. If the full report doesn't arrive, say "The full report didn't finish, so this is a preview — tell me to retry." Never present a preview as final.
Run the script with "preview": 5:
Write carta-reporting/config.json (in the working directory) with:
{
"local_file": "<path>",
"columns": [...],
"filters": [...],
"sort": [...],
"preview": 5
}
Then run this as its own command, on one line:
UV_PYTHON_DOWNLOADS=never uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-reporting/scripts/report_processor.py" --config "carta-reporting/config.json"
Show first 5 rows of each processed sheet as a markdown table. Above each table write: N of M rows · K columns, where N is kept_row_count and M is original_row_count.
Ask:
Does this look right?
- Generate full report — all rows as a markdown table
- Excel — download as .xlsx
- Describe any change to filters, columns, or sorting — I'll update just that field and re-run the preview without restarting the whole checkpoint.
If the user requests a change, update only the affected config field and re-run the preview — do not restart the customization checkpoint.
If the user chooses Excel, invoke Skill(carta-cap-table:carta-reporting-excel).
1,234.56 with the row's currency symbol or code from the data (never assume $).12.34% (script stores as decimal, including percentage totals and formula columns; multiply × 100 for display. A cell that already reads like 5% is already formatted).MMM D, YYYY (e.g. May 3, 2026) — the Carta brand standard.What SKILL.md sets; muted values are Claude Code's defaults
sonnet27 skills in this plugin
/carta-boardroomBoard consents and board members in Carta. See consents and who signed; create, rename, change the date or email, swap grants, send, remind, void, delete. See the board; add, end a term, remove or invite a member again. Each change has a preview./carta-cap-tableAnswer quick questions about one company's cap table, like who owns what. Holds Carta's rules for every cap table answer, and the commands for a single fact or a short answer: one stakeholder, the largest grants or holders, totals of grants, certificates, RSUs, SARs, CBUs, SAFEs, convertible notes or option plans, and rights and preferences. Use when asked "who owns the most", "what percentage of the company do I own", "how many shares does [name] hold", "how many options are outstanding", "how many options are left in the pool", "what is the fully diluted share count", or when no other carta-cap-table skill matches. Also answers total, indirect or look-through ownership through a holding entity (trust, Stichting, SPV, holdco or fund): "direct and indirect holders", "who ultimately owns 25%", "beneficial owners". For every row of a list, a table, a report or a file, for ownership by holder group (founders, investors, employees) and for the liquidation seniority stack, use carta-reporting./carta-captable-home-buildBuild 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./carta-company-usersSee and change who can use a company's Carta account: list its users and access levels, invite a person, change their access level or title, remove their access or resend their invite, with a preview first. Not for stakeholders or board members./carta-compensation-appOpen an interactive pay dashboard you can filter and explore, in Claude Code only. Serves one corporation's Carta Total Compensation (CTC) data as a live React console on localhost, with job area filters, peer groups and the scorecard. Use it when the ask is to run an app, launch a console, build an interactive comp dashboard, or explore pay data live (filter by team, level or location), e.g. "launch a comp dashboard for Acme", "build an interactive dashboard of our pay vs market". Outside Claude Code it cannot run: use carta-compensation-scorecard (employee pay vs market) or carta-compensation-benchmarks (a role's market rate), and say the live console needs Claude Code. Route by deliverable: an answer, CSV or figure to quote belongs to a sibling even when the wording overlaps. So "what are our comp benchmarks" is a sibling, while "open our comp benchmarks so I can filter them" is this skill. NOT for a single role lookup. READ-ONLY./carta-compensation-benchmarksSee market pay for a role: salary, equity and total cash. Retrieves Carta Total Compensation (CTC) market benchmarks for the role. Output to chat or CSV. Market benchmarks are triggered by queries like: "sales benchmarks", "comp benchmarks", "market rate", "what does a [role] pay", "put benchmarks in a CSV", "get benchmarks", "get carta's market benchmarks", "show me benchmarks for [role]", "compensation ranges for [role]", "p25/p50/p75 for [role]". Do NOT use for job classification or role mapping — use carta-compensation-rolematcher for that. Do NOT use for "how is OUR company positioned vs market", "who at our company is below market", or "our internal pay bands or employees' salaries vs benchmarks" — those are roster-level positioning, use carta-compensation-scorecard. Do NOT use for fund performance benchmarks (use carta-fund-performance) or portfolio structural metrics like SAFE terms and option pool sizes (use carta-market-benchmarks).Other plugins' skills for the same job
npx claudepluginhub carta/plugins --plugin carta-cap-table