/croftweaver:og-imagesfrom Croftweaver
Generates per-page 1200×630 JPEG ≤300 KB Open Graph cards via a committed Python+Pillow script, wires each Astro page with its own `image=` prop, and enforces card existence/size/uniqueness in the test suite.
Ships in Croftweaver. 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.
When a URL is shared (WhatsApp, Slack, iMessage, X, LinkedIn, Discord), the og:image
is the preview. Get it wrong and the link shares with no picture or a badly cropped
one — a silent conversion leak. This skill makes every page render a consistent,
on-brand 1200×630 JPEG ≤300 KB, generated by a committed script and enforced by the
test gate.
Base.astro already emits og:image:width/height = 1200×630..jpg trips strict scrapers. Use JPEG
for photographic cards, PNG only for flat logo/gradient cards that still come ≤300 KB.scripts/generate_og_cards.py — the generator. Renders one card per page you list,
plus a default.jpg. Run it with npm run og. Idempotent; commit the output.src/layouts/Base.astro — image prop defaults to /images/og/default.jpg. A page
gets its own card by passing image="/images/og/<slug>.jpg"; a page with no image= falls
back to the default — which only exempt utility pages should do (the test below enforces
it). og:image + twitter:image are derived from that one prop.tests/seo.spec.ts — for every page, reads the referenced card off disk and asserts
it exists in public/, is ≤300 KB, a real JPEG/PNG, and exactly 1200×630. It also enforces
that every page has its own card (not the generic default) and that no two pages share
one — except an OWN_CARD_EXEMPT allowlist (home + utility pages, default ['/', '/privacy']).
Opt-out: as you add content pages, leave them OUT of the allowlist and the guard flags any
that forgot a card. A missing/oversized/shared card fails the build — OG cards can't
silently rot, and a new page can't silently ship on the generic default.The starter ships a generated public/images/og/default.jpg so the suite is green from
commit 1; you replace it with your brand by editing the script and re-running npm run og.
BRAND block in scripts/generate_og_cards.py — BRAND_NAME,
SITE_URL_LABEL, the background/accent/text colours (copy the hexes from
src/styles/global.css / BRAND.md), and optionally point LOGO at a transparent
raster PNG for a faint emblem watermark (SVG won't load — Pillow needs raster).
The card is a dark share card by design: light text on a deep background reads well
in every chat app regardless of whether the site theme is light or dark.PAGES block — one (slug, title, [subtitle, …]) per
content page. Then set image="/images/og/<slug>.jpg" on that page's <Base>. Only
exempt utility pages (home, privacy, …) may fall back to default.jpg; every other
content page must be listed here and wired to its own card, or seo.spec.ts fails it.npm run og, then npm test. Commit the generated JPEGs.npm run og -- --check exits non-zero if any card exceeds 300 KB — wire it into CI or the
pre-push hook if you want generation (not just validation) gated.
fit_title() shrinks the font until every wrapped line actually fits the card's text
area, not just until the line count looks right. Three overflow cases fail the run
loudly (OG card OVERFLOW: ...) instead of drawing past the edge, all unconditional
(not gated behind --check, which only guards file size):
Suchmaschinenoptimierung, Datenschutz-Grundverordnung) are the
classic trigger;If you hit one: shorten the text to a near-synonym, or insert a plain space at a
natural compound boundary (Suchmaschinen Optimierung) — the generator deliberately
does not hyphenate compounds automatically.
Pillow, a local authoring dependency only (not shipped to the site or its runtime):
pip3 install Pillow
On Windows, run authoring/build inside WSL2 — the suite's recommended Windows
environment (SETUP.md), where python3 and the bash helpers all work. Running natively
is fine too: py -m pip install Pillow, and npm run og already falls back python3 → py -3 → python.
The generator deliberately ships the text-card core (emblem + wordmark + accent bar +
title + subtitles + footer URL) because it works for any site with zero per-page art. When
a content type has a natural image — a speaker headshot, a product shot, an author avatar —
extend build_page() to read that image from frontmatter and composite a circular portrait
src/content/<type>/*.md), render one
portrait card per entry alongside the static-page cards, and keep the same encode-under-300 KB
step. The template ships the text-card core; the portrait variant is a small, additive change.og:image. It crops badly. Always 1200×630.og:image at a remote/CDN URL the repo can't verify. Keep cards on-site
in public/ so seo.spec.ts can prove they exist and fit.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub karero/croftweaver --plugin croftweaver40 skills in this plugin
/ai-seoWhen the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup./astro-i18n-setupTurn a new-website scaffold into a turnkey multi-language site: Astro i18n routing (clean default locale + prefixed others), self-referencing hreflang + x-default in the Base layout, i18n sitemap alternates, a language switcher, and the test-harness changes that keep the green-from-commit-1 gate honest across locales. Run at scaffold time when new-website Q4 = "two+ languages at launch", OR later to add a second language to a single-locale site whose default stays unprefixed (phased rollout). Trigger phrases: "multi-language site", "add i18n", "DE+EN site", "internationalization", "hreflang setup", "two languages at launch".
/business-listings-setupPost-launch: claim Google Business Profile, Bing Places, and category directories, then verify the `sameAs` profiles already in schema actually resolve. The action skill for E-E-A-T's Authoritativeness component (owned by `website-content-guide`): other pages linking to or citing you are one signal search and AI answer engines read as authority. Human-in-the-loop, same shape as `search-console-setup` — the agent drafts every value, the owner clicks. Trigger phrases: "claim my Google Business Profile", "Google Maps listing", "Bing Places", "business listings", "improve E-E-A-T", "authoritativeness is thin", "sameAs profiles".
/copywritingWhen the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever someone is working on website text that needs to persuade or convert./customer-researchWhen the user wants to conduct, analyze, or synthesize customer research. Use when the user mentions "customer research," "ICP research," "talk to customers," "analyze transcripts," "customer interviews," "survey analysis," "support ticket analysis," "voice of customer," "VOC," "build personas," "customer personas," "jobs to be done," "JTBD," "what do customers say," "what are customers struggling with," "Reddit mining," "G2 reviews," "review mining," "digital watering holes," "community research," "forum research," "competitor reviews," "customer sentiment," or "find out why customers churn/convert/buy." Use for both analyzing existing research assets AND gathering new research from online sources. For writing copy informed by research, see copywriting./double-knuthGeneric two-pass "Double-Knuth" review for ANY repo or file set: Pass 1 = correctness/bugs on the change (delegates to /code-review when a git diff exists, agent-based otherwise), Pass 2 = completeness + cross-file/doc consistency — the defect class a diff reviewer structurally cannot see (stale counts/enumerations, docs contradicting changed behavior, dead paths, orphaned files, contract drift). Read-only: returns a ranked BUG/RISK/NIT list with file:line + concrete fixes. Specialized versions take precedence: websites → website-review; this skill covers everything else (skill suites, scripts, tools, configs). Trigger phrases: "double knuth this", "double knuth the code", "double knuth the repo", "two-pass review", "consistency review", "did the docs drift", "review the whole repo, not just the diff".
Other plugins' skills for the same job