Omnibus
Skill 16 of 200
Author a PostHog canvas with semantic HTML, CSS, and direct browser APIs — documents, articles, generative graphics, 2D canvas and WebGL experiences, and focused experiments where…
3 minutes · 594 words · 3 sections
Install
npx skills add PostHog/skills --skill building-html-canvasesnpx skills add PostHog/skills/plugin marketplace add PostHog/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Some canvases are documents or graphics programs, not applications: a written report, a diagram, a generative-art piece, a WebGL scene. For these, semantic HTML, CSS, and direct browser APIs are the right tools — don’t force Quill components or React state onto a static page.
Every canvas keeps src/canvas.tsx as its mounted React entry component (default export, no
props). Keep the React layer as a thin shell and write the
experience in HTML/CSS/browser APIs inside it:
<article>, headings, lists, tables,
figures — with a <style> block for typography and layout. Write real, specific copy.<canvas> element and drives it imperatively from a
useEffect via a ref: get the 2D/WebGL context, run the setup and render loop there.requestAnimationFrame loops, remove listeners, and
release contexts, so theme switches and remounts don’t leak or double-run.<canvas> to imperative code while React owns the chrome.The import allowlist still applies (react, react-dom, @posthog/quill, recharts, lucide-react,
dayjs) — browser globals (document, CanvasRenderingContext2D, WebGLRenderingContext,
requestAnimationFrame, IntersectionObserver, Web Audio, etc.) need no import. Three.js and
other npm graphics libraries are not yet loadable; write against raw WebGL or 2D canvas until the
build pipeline’s dependency admission ships.
min-h-screen or min-height: 100vh, so it fills the viewport and grows past it as content demands.
Do not use h-screen or height: 100vh there: a fixed viewport height caps a flex column, so tall children shrink and clip instead of scrolling.
Do not use h-full or height: 100% on that root either: a published canvas’s artifact shell gives its html, body, and #root elements no explicit height, so percentage height collapses to the content height.
A min-height root is not a definite height, so a descendant’s percentage height still collapses; give an intermediate wrapper an explicit height when a child must fill a box.<style> block (keyframes and complex selectors are fine)..dark class on the document root when the user’s PostHog theme changes.
Define your colors as CSS variables under :root { … } with overrides under html.dark { … },
or use theme token utilities (bg-background, text-foreground, border-border) — never a
light-only hardcoded color.--doc-bg, --doc-muted). Never reuse a platform token
name: the bundled Quill stylesheet sets --background, --border, --card, --chrome,
--input, --muted, --primary, and --fill-* on every element, so a :root or html.dark
value with one of those names never reaches any element. A page that colors its text with its own
--muted then renders unreadable (pale text on a pale page). Validation rejects such a
declaration with platform_token_redeclared.getComputedStyle(document.documentElement).getPropertyValue("--primary")) or your own CSS
variables, and re-read on theme change if the scene is long-lived.ph bridge (see querying-canvas-data), including
ph.capture for interaction analytics. Other requests and external styles, images, fonts, media,
or frames require their exact public HTTPS origins in capabilities.network.origins and work only
after publishing. Remote scripts and dynamic imports remain blocked.ph.openExternal (URL from the generate-app-url MCP tool,
from a click); an ad-hoc ph.query number discloses the exact query that ran in a <details>
element beside the claim — see “Verifiability” in querying-canvas-data.ph.openExternal(url) (posthog.com origins only), from a user
interaction.validating-and-publishing-canvases.Author a PostHog canvas with semantic HTML, CSS, and direct browser APIs — documents, articles, generative graphics, 2D canvas and WebGL experiences, and focused experiments where React components add no useful structure. Use after building-canvases has routed a canvas request to a plain-HTML/browser-API implementation. Covers the thin component wrapper the current runtime requires, styling and theming without Quill, drawing surfaces, and animation/cleanup patterns.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 24 September 2026.SKILL.md, not by matching a directory convention. 2 distinct layouts observed: skills/omnibus/*/SKILL.md, skills/posthog/all/skills/*/SKILL.md.h1 and no skipped levels:.claude-plugin/marketplace.json by PostHog, declaring 6 plugins. It is read for editorial metadata only — never as the skill index, which is always the repository tree./PostHog/skills.md, and each skill at its own .md URL.