Skip to main content
skill CX Codex

building-html-canvases — Claude Code skill for HTML canvases

The building-html-canvases Claude Code skill builds PostHog canvases with semantic HTML, CSS, and browser APIs. It runs when a canvas request is routed to a plain HTML implementation.

no license 149 installs ★ 101 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill building-html-canvases -a claude-code
Open on GitHub

What building-html-canvases does

The skill guides PostHog canvas work such as articles, reports, generative graphics, and 2D or WebGL scenes. React stays as a small mounted shell in src/canvas.tsx; the page structure and browser API work live inside it. Animated scenes need teardown code to stop frame loops and remove event listeners when the component unmounts.

The runtime accepts only its listed dependencies. Three.js and other npm graphics packages cannot load yet, so drawing uses raw WebGL or 2D canvas. External requests and assets need HTTPS origins in capabilities.network.origins and work after publishing. PostHog data goes through the ph bridge; canvas tools handle validation and publishing.

What it helps with

  • build a PostHog canvas as an article or report
  • draw generative graphics with 2D canvas or WebGL
  • stop animation loops and remove listeners on unmount
  • style a canvas for PostHog theme changes

Example prompts for the agent

  • Create a PostHog canvas article using semantic HTML and CSS.
  • Draw a generative canvas scene with WebGL, without Three.js.
  • Add a 2D animation and stop its frame loop when the canvas unmounts.

How to install building-html-canvases

1Skills CLI (Vercel)

npx skills add PostHog/ai-plugin --skill building-html-canvases -a claude-code

2Manually: put the files in place

~/.claude/skills/building-html-canvases/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/building-html-canvases/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about building-html-canvases

How do I install building-html-canvases in Claude Code?

Run npx skills add PostHog/ai-plugin --skill building-html-canvases -a claude-code. The skill file is at ~/.claude/skills/building-html-canvases/SKILL.md.

What does building-html-canvases do?

It guides the creation of PostHog canvas documents and graphics with HTML, CSS, and browser APIs. It also covers the required React shell and cleanup for animation and event listeners.

Can building-html-canvases use Three.js?

No. Three.js and other npm graphics packages cannot currently be loaded, so drawing uses raw WebGL or 2D canvas.

Similar skills

All skills for Frontend and UI →

From the same set82

The whole set →
instrument-metrics The instrument-metrics Claude Code skill adds PostHog metric capture to a codebase. It runs after feature work or PR review, and when a request calls for counters or other metrics. CX Codex +1 154installs debugging-experiments debugging-experiments — a Claude Code skill for investigating PostHog experiment results. It checks uneven or missing exposures against the experiment’s data and known causes. CX Codex +1 150installs context-layer-health-check The context-layer-health-check Claude Code skill checks a context wiki after changes are consolidated. It triages missed entries, conflicting claims, and outdated priorities. CX Codex +1 150installs understanding-billing-usage understanding-billing-usage is a Claude Code skill that investigates PostHog usage and spend through Billing MCP tools. It handles questions about spikes, changes, and the products or projects behind usage. CX Codex +1 150installs composing-grid-canvases The composing-grid-canvases Claude Code skill arranges PostHog grids from reusable widgets. It activates for requests to add, resize, move, or remove a placement, or assemble a whole canvas. CX Codex +1 149installs working-with-task-comments The working-with-task-comments Claude Code skill retrieves comments on PostHog tasks, their artifacts, and canvases. It activates when an agent needs to inspect feedback or follow a discussion thread. CX Codex +1 149installs signals-scout-customer-analytics-billing-and-usage signals-scout-customer-analytics-billing-and-usage — a skill for Claude Code that tracks product usage and forecast MRR changes within individual accounts. It spots product-level shifts hidden by a steady account total. CX Codex +1 149installs building-canvases The building-canvases Claude Code skill creates and edits standalone PostHog canvas apps. It activates for requests to build, update, or fix one of these apps. CX Codex +1 149installs

Project sponsors

Companies that keep this analytics open