# 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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 149 installs · ★ 101 repo stars
- Author: PostHog
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/building-canvases/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/building-canvases

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-canvases -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/building-canvases/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/building-canvases/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-canvases -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/building-canvases/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-canvases -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/building-canvases/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostHog/ai-plugin skills/building-canvases
```

2. **Manually: put the files in place**
- File: `.github/skills/building-canvases/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-canvases -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostHog/ai-plugin --path skills/building-canvases
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/building-canvases/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-canvases -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/PostHog/ai-plugin/tree/HEAD/skills/building-canvases/SKILL.md

## When to use it
- 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
- Create a PostHog canvas with a signup form.
- Update canvas `canvas-123` and publish the changes.
- Fix the standalone app in my PostHog canvas.

## Similar
- [building-components](https://affpapa.org/en/nevibecode/skills/building-components.md) — skill · 15400 installs
- [building-admin-dashboard-customizations](https://affpapa.org/en/nevibecode/skills/building-admin-dashboard-customizations.md) — skill · 4800 installs
- [building-storefronts](https://affpapa.org/en/nevibecode/skills/building-storefronts.md) — skill · 4600 installs
- [building-blocks](https://affpapa.org/en/nevibecode/skills/building-blocks.md) — skill · 1700 installs
- [building-emdash-site](https://affpapa.org/en/nevibecode/skills/building-emdash-site.md) — skill · 1600 installs
- [building-edgespark-apps](https://affpapa.org/en/nevibecode/skills/building-edgespark-apps.md) — skill · 580 installs

From the same set: [posthog/ai-plugin](https://affpapa.org/en/nevibecode/by/posthog/ai-plugin.md) — 82 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
