/b2b-pmm-skills:brand-visualsfrom b2b-pmm-skills
Renders on-brand visual assets from a brand kit: featured images, Open Graph cards, social media graphics, profile banners, avatars, title slides, LinkedIn carousels, and print-ready PDF reports. Activates when user requests branded graphics or PDFs.
Ships in b2b-pmm-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Two render pipelines and one brand. Cards: images at the exact sizes the platforms want, from a 400px avatar to a 1920px title slide, plus multi-page LinkedIn carousels. Documents: a component template that renders to a self-contained HTML page and a print-ready PDF.
This skill owns layout, sizing, and checking. It owns no color, font, logo, or
copy. Every one of those comes from brand-kit/, and the scripts refuse to
guess at the ones that matter.
Read these first. They are the source of truth and this skill does not invent around them.
brand-kit/brand.md: Company, Logo, Palette, Dark Surfaces,
Chart Colors, Typography, Type Scale, Spacing and Shape,
Document Footer, and Calls to Actionbrand-kit/voice.md: house style for every word that goes on a card or a pagebrand-kit/positioning.md: Named Traps, Headline Stats,
External Validation Quotes, and Internal Quotes, which supply most card copybrand-kit/capabilities.md: read before making any product claimIf brand-kit/ is missing or still has its template placeholders, stop and tell
the user to run brand-kit-setup. Do not proceed with invented positioning.
If house-style is installed, run it as the final voice pass over every line of
copy before you render. Short copy is where banned words hide best, and a
rendered image is harder to correct than a draft.
Kits written before the visual headings existed. If brand.md has no
Logo, Dark Surfaces, Chart Colors, Type Scale, or Spacing and Shape,
the scripts derive those values from Palette, keep them above contrast
minimums, and print exactly what they derived. Render anyway, tell the user
which values were derived when you deliver, and offer to add the real ones with
brand-kit-setup. A derived value passes contrast and is still a guess about
their brand.
Node 18 or newer. From this skill's folder:
npm install
npx playwright install chromium
The scripts also find a Playwright that is installed globally, which is common
in hosted sandboxes, so check before installing: if
node skills/brand-visuals/scripts/check-brand.mjs --fonts runs and reports
on fonts, setup is done. Without --fonts it never starts the browser, so it
proves nothing about setup.
Every command below runs from the repository root, where brand-kit/ lives.
If you run from somewhere else, pass --kit <path to brand-kit>. Output goes to
output/brand-visuals/ under the current folder, which .gitignore already
covers. When the host gives you a folder for files the user downloads, pass
--out pointing at it.
node skills/brand-visuals/scripts/check-brand.mjs --fonts
Run it once per session and again after any change to brand.md. It reports:
FAIL
prints a passing value next to it.Typography actually loads.What to do with the result:
FAIL is a brand-kit fix, not a render setting. Report the pair and the
passing value, and ask the user to update Palette or Dark Surfaces. Render
only if they say to go ahead, and say in the delivery note which pair fails.FILL ONLY is normal. It means a color, usually a bright accent, works as
a fill or a highlight but must never carry text on that ground. The templates
handle it: accent words on that ground are underlined in the accent instead of
colored with it.node skills/brand-visuals/scripts/fetch-fonts.mjs
somewhere with network access to save the fonts into brand-kit/fonts/, or fix
the spelling. Never ship a render that fell back to a system font without
telling the user, because the metrics are wrong and the brand is not on it.This is the decision that matters. Get it right and the rest is mechanical.
| Variant | Use for | Default ground |
|---|---|---|
article | An article, essay, audit, report, or anything a reader will read | Background, with a Primary rail and footer band |
tool | Something a reader will type: an install command, a CLI, a repository | Ground from Dark Surfaces, with the command in Terminal |
announcement | A launch, release, or event with one action to take | Primary dark, with the CTA as the accent |
stat | One number from Headline Stats | Background soft |
quote | One sentence from External Validation Quotes or a cleared Internal Quotes row | Background |
mark | The logo mark alone, for avatars | Primary |
When in doubt: would the reader type something? tool. Is the point one
number? stat. One sentence somebody said? quote. Is there one action with a
reason to take it now? announcement. Everything else is article.
Any card can take a different ground with "ground", named by Palette role
(Primary, Primary dark, Accent, Accent soft, Background,
Background soft, Success / positive, Muted text, Body text), or
Dark ground and Dark raised from Dark Surfaces. A tool card only takes a
dark ground, because the terminal color never sits on a light one. The
script picks text, muted, emphasis, and accent colors that pass contrast on
whatever ground you choose. Vary the ground across a series so six posts do not
read as one post seen six times.
| Size | Pixels | Use for |
|---|---|---|
og | 1200 x 630 | Link previews on LinkedIn, X, Slack, and Open Graph, and the GitHub social preview |
square | 1080 x 1080 | Feed posts on LinkedIn and Instagram |
portrait | 1080 x 1350 | Taller feed posts, and LinkedIn carousel pages |
banner | 1584 x 396 | LinkedIn personal profile banner. Text sits right, clear of the profile photo |
slide | 1920 x 1080 | 16:9 title slides, video thumbnails, webinar cards |
avatar | 400 x 400 | Profile pictures. The mark variant only |
The copy matters more than the layout, and it all comes from the kit.
Named Traps, a series
name, or the content type. It sets in capitals automatically, so write it in
sentence case.og and
square. Past 90 the script warns, because the fitter will shrink it until it
is small rather than make it good. Cut words instead.*like this*. That
phrase takes the Accent color, or an accent underline when the accent is too
light to read on that ground. The script refuses a card with two.\n in any field forces a break. Use it to keep a phrase
like a product name from splitting across lines.Headline Stats. If the Verified column starts with
Unverified or carries an example flag, do not render it without the user's
explicit go-ahead, and put that status in the source line. The script refuses
a stat card without "source".External Validation Quotes or from
Internal Quotes where Cleared for external use says yes. "source" is the
name, title, and company as the kit records them.Calls to Action, on announcement cards only.
The CTA button is that card's accent, so the text takes no asterisks.If social-generator already produced a graphic headline with accent words
marked, use it as the title as written.
Write a JSON file, one object per card. Shared fields go in "defaults".
{
"defaults": { "size": "og" },
"cards": [
{
"name": "launch-og",
"variant": "announcement",
"eyebrow": "Now available",
"title": "The claim, with *one phrase* marked",
"kicker": "One sentence that pays it off.",
"cta": "Exact CTA from Calls to Action",
"alt": "What the image says, including every word on it."
}
]
}
| Field | Used by | Notes |
|---|---|---|
name | all | Becomes the file name. No slashes |
variant, size | all | From the tables above |
alt | all | Required. See Alt text below |
eyebrow | all but mark | |
title | article, tool, announcement | Required for those three |
kicker | article, tool, announcement | |
command, path | tool | path is the folder shown in the terminal title bar |
cta | announcement | |
stat, label, source | stat | All three required |
quote, source | quote | Both required |
ground | all | Optional override, by role name |
meta | all | Optional. Replaces the domain in the footer |
Then render:
node skills/brand-visuals/scripts/render-card.mjs cards.json
Each card becomes a PNG, and manifest.json beside them records the alt text
and every check. The script reports per card:
A LinkedIn carousel is a PDF uploaded as a document post. Give a card a
"slides" array instead of a title, and every slide inherits the card's fields
except alt. The card's alt is one sentence for the carousel as a whole, and
each slide needs its own alt with the words on that page. Carousels render at
portrait unless the card sets its own size, whatever defaults says:
{
"name": "traps-carousel",
"size": "portrait",
"alt": "Five-page carousel. One sentence saying what it argues.",
"slides": [
{ "variant": "article", "title": "The hook, as a claim", "alt": "The words on page one" },
{ "variant": "stat", "stat": "3.2x", "label": "What the number means", "source": "Where it comes from", "alt": "Statistic: 3.2x, what it means" },
{ "variant": "announcement", "title": "The point", "cta": "Exact CTA", "alt": "The point. Call to action: Exact CTA" }
]
}
That renders one PNG per page plus traps-carousel.pdf. Pages carry a
01 / 05 counter in the footer, and the last page shows the domain instead.
Five to ten pages. Page one is the hook, written as a claim rather than a cover.
The last page is the one action, from Calls to Action.
Every card ships with alt text, and the script will not render one without it.
Deliver the alt text with each file, because the user pastes it into the
platform by hand. manifest.json has it for every card.
For client deliverables, reports, and readouts.
assets/document.html to a working file. Set <title>, because it
becomes the PDF's title in every reader.references/components.md
lists each one with its markup and when to use it. Delete the components you
do not use. Never add a color, a font, or a size inline. If you need one the
kit does not have, the kit is missing something.node skills/brand-visuals/scripts/apply-brand.mjs report.html
This writes the fonts, tokens, logo, and footer into the file, which is now
one self-contained page that can be shared or published as it is. It follows
the reader's light or dark preference. Run it again whenever the kit changes.node skills/brand-visuals/scripts/render-pdf.mjs report.html --page Letter
Use --page Letter for readers in the US and Canada and --page A4
everywhere else. If you cannot tell from the user's location or the kit's
Website, ask. Add --dated to use the dated Document Footer variant when
the document carries numbers.render-pdf.mjs brands a temporary copy, so step 3 is only needed for the HTML
deliverable. It also fixes, every time, the four defects that broke earlier PDF
exports: it pins the light theme so nothing prints dark, opens scroll containers
so wide tables do not lose columns, keeps rows, tiles, and callouts from
splitting across pages with table headers repeating, and forces exact color so
status pills keep their backgrounds. It then warns about off-palette colors,
clipped content, images without alt text, and leftover placeholders.
The HTML is the source. The PDF is a snapshot. Revise the HTML and render again. Never edit a PDF, or the version a client holds stops matching the one that can be updated.
Turning another skill's markdown into a document. company-recon,
competitive-white-space, google-ads-audit, and linkedin-ads-audit fall
back to markdown when no docx skill is present. To send one as a PDF instead,
map it onto components: each ## heading to an h2 section, every table to a
table inside .scroll, headline numbers to .stat tiles, the words KEEP,
WATCH, and CUT (or any good, caution, problem judgment) to verdict pills,
caveats to .note callouts, and worked arithmetic to a .calc block. Keep every
number and every sentence. This is formatting, not editing.
The automatic checks catch overflow, contrast, fonts, and crop zones. They do
not catch a headline that breaks in a silly place or a card that is technically
correct and dull. Open every PNG and every PDF page with your file reader before
you deliver, and run the checklist in references/qa.md.
Then check the work against references/donts.md. Misuse is easier to see in a
list of examples than in rules.
og card as the repository's social preview under the
repository settings, so a link to the repo and a link to its page match.brand-kit/brand.md. Never type
a color value into a spec, a template, or a document.
scripts/lint-colors.mjs finds any that slipped in.Dark Surfaces. The primary
that works on white usually fails on dark.Terminal color appears on tool cards only, and never on a light
ground.ERROR ships. Every warning is fixed or explained in the
delivery note.Logo is empty, the name is set in the display face, and that is the
honest answer.brand-kit/voice.md.All optional. This skill works alone.
brand-kit-setup fills the visual headings this skill reads, and runs
check-brand.mjs as part of its validation when this skill is installed.house-style runs the voice pass on card copy before rendering.social-generator writes graphic headlines and text overlays with the accent
words already marked. Render them here as square or portrait cards.content-writer drafts the article a featured image goes with.company-recon, competitive-white-space, google-ads-audit, and
linkedin-ads-audit produce markdown this skill can turn into a branded PDF.Anything not in skills/ does not exist. Do not reference it.
assets/card.html (opens in a new tab)assets/document.html (opens in a new tab)assets/print.css (opens in a new tab)package.json (opens in a new tab)references/components.md (opens in a new tab)references/donts.md (opens in a new tab)references/qa.md (opens in a new tab)scripts/apply-brand.mjs (opens in a new tab)scripts/check-brand.mjs (opens in a new tab)scripts/fetch-fonts.mjs (opens in a new tab)scripts/lib/brand.mjs (opens in a new tab)scripts/lib/browser.mjs (opens in a new tab)scripts/lib/color.mjs (opens in a new tab)scripts/lint-colors.mjs (opens in a new tab)scripts/render-card.mjs (opens in a new tab)scripts/render-pdf.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
brand-assets, social-media-graphics, og-cards, pdf-generation, brand-kit
Other plugins' skills for the same job
npx claudepluginhub thescottking/b2b-pmm-skills --plugin b2b-pmm-skills10 skills in this plugin
/brand-kit-setupFill in the shared brand kit that every other skill in this repo reads, then produce one real deliverable from it. Use when the user says "set up my brand kit," "configure this for my company," "onboard me," "fill in the brand kit," "get started," "customize these skills for us," "I just cloned this," "make this write like my company," "import our positioning from our website," "start from the example," "update our brand kit," "our positioning changed," "add a named trap," "change our ICP," or "who are we again." Also use it whenever another skill reports that `brand-kit/` is missing, empty, or still full of template placeholders. It interviews the user, writes `brand-kit/brand.md`, `capabilities.md`, `icp.md`, `positioning.md`, and `voice.md`, validates its own output, and hands off to `content-writer` or `company-recon` for a first artifact./company-reconFast strategic recon on any B2B company from a single URL. Use this skill whenever someone pastes a company website and wants to understand the business quickly. Triggers include "run recon on this company," "what can you tell me about [URL]," "give me a snapshot of [company]," "research this prospect," "pull up this website," "company overview," "scout this account," "who are these people," "break down this company," "check out this vendor," or any variation where a URL arrives and the reader wants to know what the company does, who it sells to, how it is positioned, what marketing it is running, and whether it matters to us. This is the fast pre-call read, not a deep multi-company study. Trigger it even when the user pastes a bare URL with no other words.