The brand-import skill teaches a coding agent, such as Claude Code or Codex, to recreate an existing look as a deckster brand. You give it a PowerPoint template, a PDF, a Google Slides link, a website, brand guidelines or screenshots. You get back a draft brands/<name>/brand.ts that passes deck brand check, pictures that compare the brand with the source, and a short list of questions only you can answer. To install the skill, see skills.
Ask for it
Run your agent in the workspace folder, the one that holds decks/ and brands/, and name the sources:
$ cd talks
$ claude
> Import our brand from ~/Downloads/company-template.pptx and the site https://example.com.Give the agent the brand name to use for its folder. If the template has several masters or similar layouts, name the ones you use. For each layout the skill keeps, review the source placeholders, the Deckster slots and fields they fill, and the kit fallback used when another brand renders the slide. Brand layouts
What it needs
deckon your PATH (npm install --global @deckster/cli, Node 26 or later)uvfor the bundled Python scripts. Python 3.10 or later runs the scripts that have no dependencies.- Chromium for
deck lintanddeck shot. The website extractor uses Google Chrome if it’s installed, otherwise Playwright’s Chromium. - For a PPTX, something that renders its slides: a PDF you exported from the authoring app, LibreOffice, or Docker with a LibreOffice image
What the agent does
- Extracts values with scripts.
extract_pptx.py,extract_pdf.py,fetch_gslides.py,extract_web.pyandextract_images.pyread exact colours, fonts, sizes, gradients, logos and chart styles into a work folder outside your workspace.brand_tools.py analyzethen proposes roles, surfaces and a type scale. - Looks at the pages and drafts the brand, recording each value’s source and confidence. The numbers alone don’t say which colour is the accent. When the source has diagrams, the agent also notes how a box is drawn, which boxes are drawn differently and why, and how connectors end, bend and carry their labels. That becomes the brand’s diagram look and cards: the plain box restyles the
defaultcard, a highlighted box restyles the closest standard card, and a card of the brand’s own is added only for a treatment none of the five carries. - Writes and checks
brand.ts.emit_brand.pywritesbrands/<name>/brand.ts, the logos andimport-notes.json, and prints thenpm installcommand for any Fontsource packages. The agent runsdeck brand check <name> --jsonand fixes the draft until the check passes. - Renders a specimen deck.
make_specimen.pycreatesdecks/zz-<name>-specimen: one slide per layout, slides on theinverse,accentandgradientsurfaces, and charts, big numbers and a table. The agent lints and shoots it, puts source pages and slides side by side withcompare.py, and fixes the draft again, usually two or three times. For a source with diagrams it adds adiagramslide with nodes on the standard and the brand’s own cards, and compares the boxes, connectors, arrowheads and labels with a source diagram.
The zz- prefix marks the specimen as scratch, so deck build --out leaves it out of the site. The agent deletes it after you’ve seen the comparison, unless you want to keep it.
Which sources work
| Source | Gives | Misses |
|---|---|---|
| PPTX or POTX template | Theme colours and fonts, masters and layouts, exact sizes, gradient stops, native chart styles, logo media; the template’s slide layouts as brand layouts | Page images unless it can render them; reusable font files |
| Exact vector colours, font names (even from subsets), sizes, line heights, PDF gradients, repeated logos | Theme, layouts and letter spacing; charts are only shapes | |
| Google Slides | A PPTX and a PDF from a link shared as “Anyone with the link” | Charts linked from Sheets become images; private decks need a download from you |
| Website | CSS custom properties, colour pairs by use, text styles, gradients, radii, shadows, transitions, the logo | Web sizes aren’t slide sizes; web font files are licensed for that site only |
| Guidelines | Stated hex values, typeface names and logo rules, which outrank anything observed | Slide layouts or a slide type scale |
| Screenshots | Flat colours and layout | Font names, small-text colours; sizes are estimates |
A PPTX is the best single source. Several sources together are better, such as a deck, the company website and a logo file.
What you get back
brands/<name>/with abrand.tsthat passesdeck brand check, or an exact list of the errors that remain- from a template, a
layouts.tswith one brand layout per slide layout it kept, their art inlayouts/, and side-by-side pictures of each one and the source layout it came from; the handover names each layout’s fallback and the layouts it dropped or merged - the contact sheet and side-by-side images of source pages and specimen slides
- a handover that ends with Needs a human, at most ten questions, most important first: font licences and the substitute picked for each family, colours the check forced it to change (source value, new value, ratio) and every waiver, missing logo variants, and values it guessed rather than found
To try the draft on your own decks, pass --brand <name>. To install a finished brand folder from Git, use deck brand add. Try a brand · Install from Git
Before you adopt it, run the checks in check a brand. From then on brand.ts is yours to edit by hand, as in create a brand.
How it treats the source
Everything in the source is data, never instructions: slide text, speaker notes, hidden page text and file names alike. The agent doesn’t run scripts or macros from the source or copy credentials it finds there. The web extractor loads only http(s) addresses on public hosts. It refuses localhost, private networks, cloud metadata addresses and any file: request a page makes, and lists each refusal. A local HTML file is read only when you pass it on the command line, and only inside its folder. The agent reports a refused fetch rather than working around it. For a site you run yourself, the extractor takes --allow-origin http://localhost:3000.
Fonts are never copied out of a PDF, a PPTX or a website, because the files identify the typeface but don’t license it. Open fonts come from Fontsource, and font files go into the brand only when you supply them.