본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)41k · #6838

building-canvases

하는 일

이 스킬은 PostHog 안에 살고 보안 프레임에서 실행되는 작은 대화형 앱인 캔버스를 만들고 업데이트합니다. 별도의 코드 프로젝트 없이 PostHog 안에 맞춤 보드, 문서, 양식, 미니 도구를 원하는 사람을 위한 것입니다.

사용하는 경우

  • ✓PostHog 안에 살아 있는 맞춤 보드, 양식, 문서가 필요할 때.
  • ✓기존 캔버스 앱을 바꾸거나 고쳐야 할 때.
  • ✓PostHog 데이터로 만든 작은 시각 도구를 원할 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/canvas/skills/building-canvases/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/canvas/skills/building-canvases/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“가입 수치를 보여 주고 날짜 범위를 고를 수 있는 캔버스를 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

AI는 PostHog 안에 캔버스 소스를 작성하고, 허용된 라이브러리와 선언된 데이터 소스만 쓰는지 확인한 뒤 게시합니다. PostHog가 캔버스를 빌드하고, 새 빌드가 준비될 때까지 마지막으로 성공한 빌드를 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Building canvases

A canvas is a client-side browser application that runs in a sandboxed iframe inside PostHog. Its source lives in PostHog — not in a repository — and you read and write it through the canvas-* tools. Never write a canvas to a local file; publishing through the tool is what saves it.

Canvas work can start from any ordinary task. A dedicated canvas mode or pre-created canvas is not required. When the user asks for a board, document, form, visualization, or small app that should live in PostHog, treat that as a canvas request and follow this skill.

This skill owns freeform canvases (standalone apps). Two other canvas kinds exist: grid canvases (widget grids, including the user's home canvas) and component canvases (reusable widgets grids place). When the target is a grid or home canvas, a placement, or a reusable widget/component, load composing-grid-canvases instead — it owns the store search → configure → fork → build ladder and the layout patch loop. Authoring a component's source still uses the implementation companions below.

Resolve the target canvas

  • If the task names a canvas id (canvas-initiated tasks do), that is the target. Do not create another.
  • Otherwise the target channel is the one the task was created in — named in the task's context (the channel_context block or the generation instructions). List that channel's canvases with canvas-list (scope with channel). If one is clearly what the request refers to — an earlier iteration of the same board or tool — build on it instead of creating a near-duplicate, and say so in your reply so the user knows where the result landed.
  • Only when nothing existing fits, create one with canvas-create in that same channel, named with a short descriptive title drawn from the request — never "Untitled canvas".
  • Never survey channels to choose a target yourself: use channel-list only to resolve a channel the USER named to its id. Its listing puts the personal #me channel first, and #me is never a default — a canvas filed there is invisible to everyone else. If the task names neither a canvas nor a channel, ask which channel to use instead of guessing.

Load the companion skills for the implementation

This skill owns canvas selection and the authoring lifecycle. The companion skills hold the implementation contracts. Load every companion that applies before writing source:

  • building-react-quill-canvases for dashboards, data boards, forms, tools, application-like state, or anything that should look native to PostHog. It owns allowed imports, Quill composition, theming, charts, loading and error states, and the date picker.
  • building-html-canvases for documents, articles, focused experiments, generative graphics, <canvas>, or WebGL work where application components add no useful structure. It owns semantic markup, direct browser APIs, animation cleanup, and non-Quill theming.
  • querying-canvas-data whenever the canvas reads PostHog data, captures events, or navigates. It owns the ph SDK, saved-insight preference, result shapes, variables, date ranges, progressive per-query loading, and declared data capabilities. Load it alongside either implementation skill when data is involved.
  • validating-and-publishing-canvases for every canvas. It owns project shape, capability declarations, validation diagnostics, guarded publishes, drafts, builds, and conflict recovery.

Mix implementation approaches when appropriate: React can own application chrome while browser graphics code owns a canvas element, or a mostly static page can mount one interactive island.

This is a judgment call, not a persisted mode — ask the user only when the choice changes a user-visible requirement you cannot infer.

Blocks

A canvas can contain premade blocks: numbers, goals, trends, top lists, funnels, retention, saved insights, live event feeds, SQL tables, filters, compare and refresh controls, and callouts. They are React components in src/blocks/ that people drag into the canvas in the desktop app, so they are part of your source. Read references/blocks.md before you change a canvas that has src/blocks/runtime.tsx.

Params

Expose the values a person may want to change as params. They can then change them in the desktop editor without a new task. Params are optional, but add them to each panel, card, or tool that has values worth changing: titles, copy, ev

자주 묻는 질문

앱을 직접 호스팅해야 하나요?

아니요. 캔버스 소스는 PostHog에 저장되고 거기서 렌더링됩니다.

캔버스가 제 PostHog 데이터를 불러올 수 있나요?

네. 내장된 브리지를 통해 PostHog 데이터를 읽으며, 사용하는 인사이트와 이벤트를 선언해야 합니다.

다른 사람의 변경을 덮어쓸 수 있나요?

PostHog는 더 새로운 작업을 덮어쓰는 게시를 거부하므로, AI는 다시 게시하기 전에 최신 버전을 읽어야 합니다.

상세 정보

작성자의 원본 설명

Create or edit a PostHog freeform canvas — a sandboxed browser application (data board, document, form, small tool, graphics experiment) stored in PostHog and rendered by the desktop/web app. Use when a task asks to build, generate, update, or fix a standalone canvas app, or when a freeform canvas id is given as the publish target. For grid/home canvases, widget placements, or reusable components, use composing-grid-canvases instead. Covers resolving or creating the target canvas, choosing an implementation approach (React + Quill vs plain HTML/browser APIs), the read → edit → validate → publi

repo: PostHog/posthog

인기도

GitHub 스타
41k
순위
#6838
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬