building-react-quill-canvases
Skill by PostHog
Guides an AI assistant to write a PostHog canvas as a React and Quill app. It covers allowed imports, Quill component rules, theme tokens, loading states and the date picker. Use it for dashboards, data boards, forms and tools.
Install building-react-quill-canvases
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/canvas/skills/building-react-quill-canvases ~/.claude/skills/building-react-quill-canvasesRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install building-react-quill-canvases in Claude Code
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/canvas/skills/building-react-quill-canvases ~/.gemini/antigravity-cli/skills/building-react-quill-canvasesAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install building-react-quill-canvases in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is the React and Quill step in building PostHog canvases. It is used after the building-canvases skill routes a request to a React implementation. A canvas is one TSX file that exports a single component with no props, which the host mounts. The skill sets rules for allowed imports, Quill components, theme-aware design tokens and loading skeletons.
It also covers progressive loading, where each query owns its loading state, and the difference between error and empty states. It includes a date picker pattern built from Quill's DateTimePicker inside a Popover, a starter scaffold and a checklist example. It is aimed at people building dashboards, data boards, forms or tools that should look native to PostHog.
Written from the project's SKILL.md and checked against it.
What it can do
- Single-component contractRequires one React component, exported as default with no props, in src/canvas.tsx.
- Import rulesLists the standard libraries and the ph module from @posthog/canvas-sdk that canvases may use.
- Quill component rulesRequires Quill components such as Select, Button, Table and Card instead of native controls.
- Theme tokensLimits colors to design-token utilities so the canvas follows light and dark PostHog themes.
- Loading and error statesGives each card its own skeleton, error message with retry, and empty state.
- Date pickerBuilds a date window control from Quill DateTimePicker inside a Popover with a Button trigger.
- Starter scaffoldProvides a working starting file with the date picker, theme tokens and per-query loading wired in.
- Checklist exampleProvides a validated checklist project with shared state and visible load and save failures.
- Data-product patternsGives starting shapes for product dashboards, web analytics boards and interactive explorers.
Try asking
- Build a PostHog canvas dashboard with KPI cards, a line chart and a date picker.
- Create a checklist canvas for a launch runbook with saved step state.
- Make a web analytics board with visitors, bounce rate and top paths tables.
Good to know
- Network requests and external images work only in the published canvas, not the edit preview.
- Remote scripts are blocked, so code must be bundled with the canvas.
- Native controls such as select and button are not allowed in a PostHog data board.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/canvas/skills/building-react-quill-canvases/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/checklist-example.md18 KB -
references/platform-libraries.md3 KB -
references/starter-scaffold.md11 KB
Alternatives to building-react-quill-canvases
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
building-react-quill-canvases: common questions
Can a canvas load scripts from a CDN?
No. Remote scripts are blocked, so code must be bundled with the canvas. Stylesheets from declared origins are allowed.
Which UI library do canvases use?
Quill, PostHog's design system, which is built on Base UI. Recharts, Lucide and Day.js are part of the standard application shell.
How does a canvas get PostHog data?
Through import { ph } from @posthog/canvas-sdk, a platform-provided module. The same object is also available as window.ph.
How do I install building-react-quill-canvases?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is building-react-quill-canvases free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is building-react-quill-canvases safe to use?
It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to building-react-quill-canvases?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
