Carta brand extraction

From carta/plugins · View interactive version

Carta brand extraction is an AI agent skill from the GitHub repository carta/plugins. Captures a firm's brand (colors, fonts, logo, imagery) from its website and/or a deck or PDF it already has, shows it as a brand board (HTML, PDF, PPTX or React), saves it to Carta, and hands it to whatever artifact the user is making: a deck, PDF, LP letter, dashboard, one-pager or email. Trigger p

How to use this skill

Skill file

<!-- carta:plugin-version -->

<carta-plugin>carta-investors:7.68.4</carta-plugin>

If this plugin's files can't be found: a path that still shows an unreplaced ${…} variable, or a "not found" when you read or run one of this skill's files, means the skill loaded before this session's computer link was ready. Invoke this skill once more with the Skill tool and use the paths that copy gives. If they're still unreplaced, tell the user Carta's plugin files aren't available in this session yet (link your computer, then ask again) and stop. Don't search the disk for them.

Firm Brand

Overview

This skill captures a firm's brand from its website and/or a deck or PDF it already has, shows it as a brand board, saves it to Carta, and hands it to whatever artifact the user is making: a deck, PDF, LP letter, LP summary, dashboard, one-pager or email.

A brand board includes:

  1. Color palette — primary, secondary, accent, and neutral colors with hex codes
  2. Typography — font families, weights, and size scale with specimen text
  3. Logo — extracted from the website, shown on light and dark backgrounds
  4. Imagery & mood — hero images and photography style
  5. Design tokens — border radius, shadows, spacing patterns, CSS custom properties

The skill works in two phases: extraction (automated analysis of the website or deck) and composition (building the brand board artifact with Claude's design judgment). A second mode, Use the brand on another artifact, skips the board and returns the saved brand as a short token block (see that section below).

The saved board's fields, and the brand tokens built from them, are described in ${CLAUDE_PLUGIN_ROOT}/references/brand-board-schema.md (the plugin's own references/, not this skill's). Read it by that path when you build the token block; do not search for it.

When to Use

Fire this skill when the user asks to:

Also fire when the user provides a URL and asks for "brand analysis", "visual identity audit", or "design system extraction".

When NOT to fire

Prerequisites

The analysis script requires network access to fetch the website. Dependencies are declared inline (PEP 723) and resolved by uv run automatically:

Workflow

Checkpoint: Call mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-brand-extraction", checkpoint_label="skill_started") before proceeding. <SERVER> is the one Carta MCP server, of those allowed-tools grants skill_checkpoint on, that this session is connected to. If the tool is deferred, load it first with ToolSearch(query: "select:mcp__<SERVER>__skill_checkpoint"). If it is still unavailable, or any checkpoint call fails, carry on: checkpoints never stop a run. A run that has not recorded skill_started records no other checkpoint.

Each run records each checkpoint at most once, and exactly one of skill_finished or skill_failed. A step reached again later in the same run (a re-extraction from the website after reusing a saved board, a board recomposed with the user's own assets in Phase 6, a second output format) does not checkpoint again.

Phase 0: Check for saved brand board in Carta (MANDATORY — runs before any website extraction)

Before touching the website, check whether Carta already has a saved brand board for this firm. A saved board means a previous session already extracted and approved the brand identity — reusing it is faster, more consistent, and avoids redundant scraping.

0a. Ensure firm context is set

If a firm UUID was passed in from the orchestrating skill, call:

mcp__<SERVER>__set_context(firm_id="<firm_uuid>")

If no firm UUID was passed, call mcp__<SERVER>__list_contexts() to list available firms and pick the matching one. Do not skip this step — the brand board lookup depends on the active firm context.

If Carta MCP is not connected (tool not found or auth error), skip Phase 0 entirely and proceed to Phase 1. Record brand_board_source = "none".

0b. Fetch saved brand board
mcp__<SERVER>__read_tool({"name": "fa__get__brand_board"})

> "Found a saved brand board for this firm — reusing the previously extracted brand identity. Let me know if you'd like to re-extract from the website instead."

Skip Phase 2 (website extraction) entirely. Jump directly to Phase 3 (Classify and curate) using the saved data, or, in Use the brand on another artifact mode, straight to its token block.


Phase 1: Gather inputs

Ask at most one question, and only for what is missing: a website URL or a deck.

  1. Take the source from the user's message first: a URL or bare domain (acme.com; the script prepends https:// automatically), an attached or named deck (a PowerPoint (.pptx, .ppsx, .potx) or PDF pitch deck or LP letter), a logo file, hex codes or font names they typed. Then from the saved Carta board (Phase 0) or firm context. If any of these gives a source, ask nothing.
  2. Skip any question the saved board or the user's message already answers.
  3. Only when there is no URL, no deck and no saved board, ask once for the website URL or a deck. A deck alone is a complete source: when the user gave one and no URL, don't ask for a URL.
  4. Do not ask about extra assets or the output format. Default to an HTML brand board (Phase 4 says what else is accepted). Use whatever the user attached or typed in their first message in Phase 6; a later request for another format is handled in Phase 4.

Phase 2: Extract brand signals

Every file this skill writes goes in the working folder, ./carta-brand-extraction/ (the current directory plus carta-brand-extraction/): the saved analysis report, deck logo candidates, and the PDF or PPTX board. Create the folder before anything writes to it (analyze_deck.py and both board generators do; for the saved report, create it with a first Write there).

Run the analysis script:

uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/scripts/analyze_website.py" <url>

This returns a JSON report with raw extraction data. Save the output to ./carta-brand-extraction/analysis.json — you will reference it throughout composition.

From a deck. When the user gave a PowerPoint (.pptx, .ppsx, .potx) or PDF deck, run the deck reader on it (alongside the website analysis when there is a URL too), saving logo candidates in the working folder:

uv run "${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/scripts/analyze_deck.py" "<deck file path>" --out-dir "./carta-brand-extraction"

It prints accent_candidates (#RRGGBB, best first, neutrals already left out), fonts (heading, body) and logo_candidates (saved file paths, best first). A PowerPoint's colours and fonts come exactly from its theme ("colors_exact": true). A PDF's colours are the ones its first pages paint most ("colors_exact": false) and it has no fonts: tell the user the colours are a best guess from the PDF. An empty accent_candidates means the deck has no brand colour: ask the user for one. Exit 1 prints why the file couldn't be read (not a deck, password-protected); tell the user and ask for another file or the website.

If the script fails (e.g., the site blocks automated access, CAPTCHA, JS-heavy SPA with no server-rendered content):

Phase 3: Classify and curate

This is where Claude's design judgment matters. The raw extraction data has frequency-ranked colors and multiple font families. You must classify them:

Colors

Group the extracted colors into four categories:

Classification heuristics:

Typography
Logos
Imagery
Design Tokens

Phase 4: Compose the brand board

When another skill invoked this one for the brand, skip the board: hand the classified brand back to it and go straight to the checkpoint at the end of this phase, then Phase 5.

Read the appropriate snippet template by its full path (the files are in this skill's own snippets/ folder; do not search for them):

| Format | Snippet to read |

|--------|----------------|

| HTML artifact | ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_html.html |

| React artifact | ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_react.jsx |

| PDF | ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_pdf.py |

| PPTX | ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_pptx.py |

For HTML artifacts (default):

  1. Read ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_html.html
  2. Replace all {{PLACEHOLDER}} values with the classified data
  3. Duplicate the repeating elements (.bb-swatch, .bb-type-specimen, etc.) for each data item
  4. If the brand identity is dark, add class dark-mode to <body>
  5. For logos, use the extracted URL directly (or base64-encode if producing a self-contained artifact)
  6. Output the complete HTML as a Claude artifact

For React artifacts:

  1. Read ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_react.jsx
  2. Construct the props object from classified data
  3. Render <BrandBoard> with the populated props
  4. For logos, use base64 data URIs for self-contained artifacts

For PDF:

  1. Read ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_pdf.py
  2. Construct the data dict with classified colors, fonts, logos, tokens
  3. Call generate_brand_board_pdf(data, "carta-brand-extraction/brand_board.pdf", firm_name="...")
  4. Give the user the full path: the current directory plus carta-brand-extraction/brand_board.pdf

For PPTX:

  1. Read ${CLAUDE_PLUGIN_ROOT}/skills/carta-brand-extraction/snippets/brand_board_pptx.py
  2. Construct the data dict
  3. Call generate_brand_board_pptx(data, "carta-brand-extraction/brand_board.pptx", firm_name="...")
  4. Give the user the full path: the current directory plus carta-brand-extraction/brand_board.pptx

Close with "Brand board ready." and the next step: "Next: use this brand on a deck, PDF, LP summary, dashboard or email, or tell me what to change." The first time, add one line that a logo file, hex codes, a PDF, PPTX or React board are also accepted.

Checkpoint: Call mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-brand-extraction", checkpoint_label="skill_finished") once the brand has reached the user or the skill that invoked this one, as defined under Troubleshooting.

Phase 5: Save brand board to Carta

Save when the brand was freshly extracted in this session: brand_board_source = "to_be_created" (Phase 0 returned a 404) creates the board, and brand_board_source = "saved_mcp" where the user asked to re-extract or changed the brand replaces it.

First save (no saved board). This is a Tier 1 write (informative friction only): do it automatically after the user has seen the brand (the board or the token block) or it was handed back to the skill that invoked this one, with no separate consent question, but say this one line first, before any write:

"Saving this brand to Carta so decks and reports reuse it."

Replacing a saved board. The write overwrites the brand that every deck and report uses, so it needs a yes first. After the user has seen the brand, or it was handed back, ask one question with AskUserQuestion: "Replace the saved brand with this new one?", options "Replace the saved brand" and "Keep the saved brand". Write only on "Replace the saved brand", and say no notice line before the answer.

If the user already said "don't save" or "skip Carta" earlier, honor that and write nothing, not even the notice or the question.

Build the payload from the full brand identity JSON — colors, typography, logos, and source metadata. Keep the logos the persistence rule in ${CLAUDE_PLUGIN_ROOT}/references/brand-board-schema.md keeps (the plugin's own references/, not this skill's). When it leaves out a deck's local logo path, tell the user in one line that the deck logo stays on this machine and the colours and fonts were saved.

Create (no saved board):

mcp__<SERVER>__call_tool({"name": "fa__create__brand_board", "arguments": {"brand_board": <brand_data_json>}})

Update (a saved board exists, the user re-extracted and answered "Replace the saved brand"). An update must never remove a logo the new extraction could not replace: when the new payload has no persistable logo, copy logos from the saved board (Phase 0's brand_data) into it before calling:

mcp__<SERVER>__call_tool({"name": "fa__mutate__brand_board", "arguments": {"brand_board": <brand_data_json>}})

On success, tell the user (one line only):

"Brand saved to Carta — any artifact you make later (a deck, PDF, LP summary, dashboard or email) can reuse it."

If the call fails, do not retry: follow the fa__create__brand_board / fa__mutate__brand_board row under Troubleshooting and carry on.

Skip this step if:


Phase 6: Incorporate user-provided assets

If the user provided additional assets in their message:

User-provided input always takes precedence over automated extraction.

Use the brand on another artifact

When the user wants their brand on something they are making, and not a board ("use our brand on this PDF", "match our branding", "brand this dashboard / one-pager / email"):

  1. Run Phase 0. A saved board is the source (brand_board_source = "saved_mcp").
  2. With no saved board (404, or Carta not connected), run Phases 1-3 first (one question at most, for a website or deck). Skip the Phase 4 board unless the user asks to see it.
  3. Read ${CLAUDE_PLUGIN_ROOT}/references/brand-board-schema.md and build the brand tokens by the schema's mapping. Leave out any token the board does not carry; never guess one.
  4. Give the user the tokens in one short code block, and apply them to the artifact in this conversation: colours as the artifact's theme values or CSS variables, the two fonts (with their @font-face file URLs from typography.font_faces when the family is listed there), and the logo in the header. Say in one line which tokens you used.
  5. Run Phase 5 now, after step 4, when the brand was freshly extracted.
  6. Call skill_finished as defined under Troubleshooting.

User-facing output

Keep responses concise. The brand board artifact is the deliverable — not the conversation.

If the extraction is thin (few colors, no clear fonts, no logos), say so and ask the user if they can provide additional brand assets to fill the gaps.

Verification checklist

Before delivering the brand board:

Troubleshooting

Checkpoint on every stop before this run has recorded skill_finished, once this run has recorded skill_started: call mcp__<SERVER>__skill_checkpoint(skill_name="carta-investors:carta-brand-extraction", checkpoint_label="skill_failed", notes="<one-line reason>") instead of skill_finished. That includes a run where neither the website nor a deck nor the user's own input gave enough to compose a board, a board generator that fails, and plugin files still unavailable after the second invocation. skill_finished means the brand reached the user (the board or the token block) or the skill that invoked this one; a stop before that is a failure, and counting it as finished makes failed runs look like fast successful ones. Cases that recover and continue (a skipped Phase 0 when Carta is not connected, an error from the saved-board lookup treated as not found, a WebFetch fall-back, a screenshot or manual colours and fonts from the user, another deck after analyze_deck.py exits 1, a failed save to Carta, a saved brand kept instead of replaced) do not checkpoint. Paths before skill_started record nothing: a request this skill should not fire on (see "When NOT to fire").

| Symptom | Cause | Tell the user |

|---------|-------|---------------|

| Script returns empty colors | The site uses CSS-in-JS or a framework that inlines styles at runtime | "I couldn't read colors from the page itself." Try WebFetch for the rendered HTML, else ask for a screenshot |

| No fonts detected | The site uses system fonts only, or loads fonts with JavaScript | "No custom fonts found." Check for @font-face in the raw CSS or Google Fonts links, else ask for the font names |

| Logo not found | Inline SVG or a CSS background image holds the logo | "I couldn't find your logo." Check the SVG results; if nothing works, ask for the logo file |

| Site blocks requests (403/429) | The site blocks automated requests | "The site blocked my request." Ask for a screenshot of the homepage, or the key colors and fonts pasted in |

| JS-heavy SPA returns little | The script reads server-rendered HTML only | "The page builds itself in the browser, so I got little from it." Ask for a screenshot or manual input |

| analyze_deck.py exits 1 | Not a deck, or password-protected | "I couldn't read that file." Ask for another deck or the website |

| The user asks to delete or remove the saved brand | This skill has no delete command; saving a new brand replaces the saved one only after a yes | "I can't delete a saved brand from here. Carta support can remove it. I can replace it with a new brand if you want." |

| fa__create__brand_board or fa__mutate__brand_board fails | Carta rejected or could not take the write | "Could not save to Carta; your brand is still here for this conversation. Try again later." Do not retry |

Related skills (bundled in this plugin)

| Skill | Relationship |

|-------|--------------|

| carta-agm-deck-builder | Calls this skill for the firm's brand before it builds a deck |

| carta-lp-summary | Calls this skill for the firm's brand before it brands the LP Summary page and its PDF |

Other artifact skills can read the saved brand board directly (${CLAUDE_PLUGIN_ROOT}/references/brand-board-schema.md lists its fields) instead of re-extracting.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.