# building-react-quill-canvases

building-react-quill-canvases — a Claude Code skill for building PostHog canvases with React and Quill. It activates when building-canvases routes a dashboard, form, or tool request to a React implementation.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 148 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-react-quill-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-react-quill-canvases

## What it does

The skill defines the React component contract for a PostHog canvas: a single TSX file exporting a prop-free component for the host to mount. It lays out permitted imports, Quill composition, theme tokens, loading skeletons, and an in-canvas date picker. Canvas data comes from `@posthog/canvas-sdk` through the `ph` object.

It also covers cards with `editable()` parameters, tables nested in cards, and Recharts styling. Direct network requests require exact HTTPS origins in `capabilities.network.origins`; the edit-mode preview blocks those requests even when an origin is declared. The skill applies after `building-canvases` routes the request to React.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

2. **Manually: put the files in place**
- File: `.cursor/skills/building-react-quill-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-react-quill-canvases
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostHog/ai-plugin --skill building-react-quill-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-react-quill-canvases/SKILL.md

## When to use it
- build a PostHog dashboard as one React component
- compose tables and controls with Quill components
- style charts to follow the active theme
- add loading states and an in-canvas date picker

## Example prompts
- Build a PostHog dashboard in React with a chart and a table.
- Create a form for a PostHog canvas using Quill components.
- Add a date picker and loading states to the canvas cards.

## Similar
- [shadcn-ui](https://affpapa.org/en/nevibecode/skills/giuseppe-trisciuoglio-shadcn-ui.md) — skill · 22800 installs
- [presentation-creator](https://affpapa.org/en/nevibecode/skills/presentation-creator.md) — skill · 3100 installs
- [feature-flags-react](https://affpapa.org/en/nevibecode/skills/feature-flags-react.md) — skill · 112 installs
- [integration-react-vite](https://affpapa.org/en/nevibecode/skills/integration-react-vite.md) — skill · 107 installs
- [ns-frontend-design](https://affpapa.org/en/nevibecode/skills/ns-frontend-design.md) — skill · 153 installs
- [recharts](https://affpapa.org/en/nevibecode/skills/recharts.md) — skill · 1200 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
