Tool Og Render

Render inline SVG to 1200x630 PNG for OG meta tags. rsvg-convert primary path, cairosvg fallback. Bundled with mainbranch PyPI package.

noontide-co 4785fd0 3 files · 3.2 KB Updated

File contents

tool-og-render

Wrapper SKILL.md for the og_render.py implementation living at .claude/skills/site/scripts/og_render.py. Live-tested via PR #100 on thelastbill.com.

Subcommand

tool-og-render render <input.svg> [<output.png>]

Renders 1200x630, validates dimensions, returns a companyctx-shape envelope on stdout. Exit 0 on ok|partial; 1 on degraded.

Why this exists as a tool

Site HTML/CSS/SVG generation happens via Claude Code subagents (LLM work). The SVG → PNG render is deterministic external work — shell to a binary, validate output. Closed-enum errors. That's tool-shape.

See also

  • .claude/skills/site/scripts/og_render.py — actual implementation
  • tool-og-render/wrapper.py (planned) — thin Python wrapper exposed via the mb umbrella

noontide-co/mainbranch/tree/main/tools/tool-og-render commit 4785fd0a74

Frequently asked questions

npx skillmds@latest add noontide-co/tool-og-render