/howtoai-social:visual-postsfrom How to AI — Social & Content
Builds pixel-exact HTML carousels, infographics, and quote graphics at platform dimensions for LinkedIn, Instagram, and other social media. Screenshot-ready or exports as PDF.
Ships in How to AI — Social & Content. 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.
Turn a post, idea, or set of notes into the finished visual: an infographic, a multi-slide carousel, or a quote graphic. Build the artifact itself — one self-contained HTML file at exact pixel dimensions that renders anywhere and screenshots or prints clean. The deliverable is never a prompt for some other image tool: text-heavy graphics are exactly what image models garble, and HTML renders text perfectly.
Read the source content first. The graphic recaps it — never reprints it.
| Content shape | Build | Canvas |
|---|---|---|
| One striking line, stat, or quote | Quote graphic / Big Number | 1080×1080 |
| 3–7 tips, steps, or rules | Single infographic | 1080×1350 (4:5) |
| 8+ points, a process, a narrative | Carousel, 6–12 slides | 1080×1350 per slide |
| X vs Y, myth vs fact, before/after | Versus infographic | 1080×1350 |
4:5 portrait owns the mobile feed on LinkedIn and Instagram; square is the safe cross-platform fallback. Platform hard facts: LinkedIn carousels are PDF document posts (limits: 300 pages, 100 MB — stay far under both). Instagram carousels take up to 20 slides and crop every slide to slide 1's aspect ratio — fix one canvas before designing anything.
Choosing a layout inside a format? Read references/layout-patterns.md (named
patterns + when each works, including the hand-drawn whiteboard skin). Building
a carousel? Start from assets/carousel-skeleton.html — brand tokens, slide
archetypes, and export CSS already wired.
Every visual is one self-contained .html file:
overflow: hidden. The canvas never uses responsive units.:root block, so restyling
is a five-line edit.@page at canvas size with zero margin,
break-after: page per slide, print-color-adjust: exact. This is what
makes PDF export work on the first try.Carousel arc (mirrors how the post itself is built):
Feeds render the canvas at ~350–400px wide — judge every draft at ~35% zoom, not full screen.
| Element | Size | Weight |
|---|---|---|
| Cover headline | 90–140px | 800–900 |
| Slide headline | 56–80px | 700–800 |
| Body text | 40–52px, line-height ~1.35 | 400–500 |
| Footer / labels / attribution | 30–36px, nothing below 30px | 500–600 |
Text contrast ≥ 7:1 (feeds recompress uploads; 4.5:1 goes muddy). Strokes and dividers ≥ 3px. Safe padding 64–96px on every edge — platform chrome (page arrows, counters, corner rounding) sits on the borders.
First run: ask once for background / ink / accent colors plus name and handle;
store them in ${CLAUDE_PLUGIN_DATA}/visual-posts/config.json (Claude Code) or
howtoai/visual-posts/config.json (elsewhere) and read from there on. If
howtoai/voice/about-me.md exists, take name, handle, and positioning from it
and ask only for what's missing.
Open the render and check it before delivering: no overflow, no clipped text, fonts and colors as designed.
chrome --headless --print-to-pdf=carousel.pdf slides.html
(any Chrome/Chromium binary; or open the file, print, save as PDF). One page
per slide. Upload as a document post.chrome --headless --screenshot=s2.png --window-size=1080,1350 'slides.html#slide-2'
captures each. With browser tools attached, screenshot each slide directly
(manual screenshots: browser zoom at 100%, or dimensions come out wrong).thumbnails skill, not this one.@page { size: 1080px 1350px; margin: 0 } + print-color-adjust: exact,
every time. And @page can't read CSS variables: hardcode its size and keep
it in sync with the slide size by hand.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/audience-researchResearches a niche's audience for content strategy: segments, their exact words, pains, watering holes, white space. Use when the user asks "who is my audience", "research my niche", "what does my audience want", or "where's the white space"./content-analyticsAnalyzes the user's content performance from platform exports (LinkedIn, YouTube, Substack CSVs or pasted stats): findings memo plus experiments. Use for "analyze my posts", "which content worked", "my LinkedIn analytics", or a performance review./content-matrixTurns expertise into a repeatable idea system: content pillars, a pillars × angles idea matrix, a posting calendar. Use when the user asks "what should I post", wants content ideas, a content calendar or content system, or is out of ideas./hooksWrites and sharpens hooks — opening lines that make people stop scrolling — for any content format. Use when the user wants a hook, an opener, a first line, or a stronger start. Openings only — whole posts and scripts belong to other skills./linkedin-postWrites, edits, and scores LinkedIn posts, plus pinned and first comments. Use when drafting a LinkedIn post from an idea, notes, or a transcript, reformatting a draft for the feed, or when asked to review or score a LinkedIn post./linkedin-profileRebuilds the LinkedIn profile page as a landing page — headline, about section, featured items, experience framing, banner concept. Use when the user says "optimize my profile", "my LinkedIn headline", "profile review", or "rewrite my about section".npx claudepluginhub rubenhassid1/howtoai-skills --plugin howtoai-socialOther plugins' skills for the same job