building-canvases — Claude Code skill for PostHog 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.
no license 149 installs ★ 101 updated 2026-10-24
npx skills add PostHog/ai-plugin --skill building-canvases -a claude-codeWhat building-canvases does
The skill selects or creates a freeform canvas in PostHog, edits its source, then publishes the result. A canvas is a browser app inside a sandboxed iframe. Its source stays in PostHog rather than in a local repository, and the canvas-* tools handle reading and writing it.
The workflow moves through reading, editing, validation, publishing, and building. Companion skills cover React with Quill, plain HTML, querying PostHog data, and validation and publishing. Grid canvases, widget placement, and reusable components belong to composing-grid-canvases instead.
A supplied canvas ID identifies the target. Otherwise, the skill looks for a matching canvas in the task’s channel; if neither a canvas nor a channel is named, it asks which channel to use. Publishing through the tools saves the canvas source.
What it helps with
- create a standalone PostHog canvas app
- edit a canvas identified by its ID
- fix an existing freeform canvas
- choose between React with Quill and plain HTML
Example prompts for the agent
- Create a PostHog canvas with a signup form.
- Update canvas
canvas-123and publish the changes. - Fix the standalone app in my PostHog canvas.
How to install building-canvases
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-canvases -a claude-code2Manually: put the files in place
~/.claude/skills/building-canvases/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/building-canvases/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-canvases -a codex2Manually: put the files in place
.agents/skills/building-canvases/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-canvases -a cursor2Manually: put the files in place
.cursor/skills/building-canvases/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install PostHog/ai-plugin skills/building-canvases2Manually: put the files in place
.github/skills/building-canvases/SKILL.md1Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-canvases -a gemini-cli2Platform CLI
gemini skills install https://github.com/PostHog/ai-plugin --path skills/building-canvasesManually: put the files in place
.devin/skills/building-canvases/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add PostHog/ai-plugin --skill building-canvases -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about building-canvases
How do I install building-canvases in Claude Code?
Run npx skills add PostHog/ai-plugin --skill building-canvases -a claude-code. The skill is installed at ~/.claude/skills/building-canvases/SKILL.md.
What does building-canvases do?
It creates and edits standalone browser apps stored in PostHog, then validates and publishes them using the canvas-* tools.
How is building-canvases different from composing-grid-canvases?
building-canvases handles standalone freeform apps. composing-grid-canvases covers widget grids, home canvases, placements, and reusable components.