Skip to main content
skill CX Codex

querying-canvas-data — Claude Code skill for canvas data

The querying-canvas-data Claude Code skill helps put PostHog data into a canvas and make its metrics traceable to their source. It applies when a canvas needs charts, tables, analytics events, or data from GitHub or an MCP server.

no license 148 installs ★ 101 updated 2026-10-24

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add PostHog/ai-plugin --skill querying-canvas-data -a claude-code
Open on GitHub

What querying-canvas-data does

The skill describes how to fetch PostHog data in a canvas through the ph SDK: load saved insights, run typed queries, and use HogQL when those options do not fit. It covers result formats and rendering sections as their own queries finish.

Metrics from saved insights need a link to the matching PostHog insight; other queries should expose the query that ran. Calls to ph.loadInsight, ph.query, and ph.capture must be declared in the project’s capabilities, or the host rejects them. For GitHub or MCP server data, it describes using the viewer’s connections through ph.connectors.

What it helps with

  • show PostHog metrics in a canvas
  • link a metric to its saved insight
  • display the query behind a result
  • render canvas sections as their data arrives
  • send analytics events from a canvas

Example prompts for the agent

  • Add PostHog metrics to this canvas and link each one to its saved insight.
  • Build a chart from a PostHog query and show the query text beside it.
  • Send an analytics event when someone clicks this canvas button.

How to install querying-canvas-data

1Skills CLI (Vercel)

npx skills add PostHog/ai-plugin --skill querying-canvas-data -a claude-code

2Manually: put the files in place

~/.claude/skills/querying-canvas-data/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/querying-canvas-data/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about querying-canvas-data

How do I install querying-canvas-data in Claude Code?

Run npx skills add PostHog/ai-plugin --skill querying-canvas-data -a claude-code. The skill file is placed at ~/.claude/skills/querying-canvas-data/SKILL.md.

What does querying-canvas-data do?

It explains how to fetch PostHog data into a canvas, choose a query method, and render its results. It also covers linking saved-insight metrics and exposing ad-hoc queries.

What does querying-canvas-data require?

The canvas SDK provides ph, imported from @posthog/canvas-sdk. Calls used by the canvas must be declared in the project’s capabilities.

Similar skills

All skills for Data and databases →

From the same set82

The whole set →
working-with-scouts The working-with-scouts Claude Code skill helps manage PostHog Signals scouts that watch a project and send reports to the Signals inbox. Assign monitoring tasks, review findings, and steer the scouts with feedback. CX Codex +1 148installs setting-up-warehouse-properties The setting-up-warehouse-properties Claude Code skill maps warehouse columns to person or group properties in PostHog. It runs for reverse ETL setup or when replacing a recurring identify job. CX Codex +1 148installs suggesting-path-cleaning-rules suggesting-path-cleaning-rules is a Claude Code skill that proposes URL path-cleaning rules for web analytics. It engages on requests to generate or inspect suggestions and troubleshoot path_cleaning_suggestions issues. CX Codex +1 148installs authoring-data-quality-checks authoring-data-quality-checks is a Claude Code skill that adds and runs dbt-style data quality checks on warehouse tables and HogQL metrics. It runs when validating models or checking for nulls and duplicates. CX Codex +1 148installs creating-surveys The creating-surveys Claude Code skill creates PostHog surveys and forms through MCP. It activates for requests to build a survey or call survey-create. CX Codex +1 127installs checking-member-access The checking-member-access Claude Code skill explains member and role permissions in a PostHog project through access-control MCP tools. It answers who can view or edit dashboards, flags, and data. CX Codex +1 122installs signals-scout-pr-follow-up signals-scout-pr-follow-up — a Claude Code skill checks merged pull requests against post-deploy telemetry. It looks for the promised effect and regressions tied to a specific change. CX Codex +1 122installs building-loops The building-loops Claude Code skill builds Loops in PostHog Desktop, where an event or schedule starts an AI task. A Slack or email notification can follow the task. CX Codex +1 122installs

Project sponsors

Companies that keep this analytics open