assessing-heatmaps
What it does
This skill teaches an agent to interpret a heatmap, which shows where people click and how far they scroll on a page. It is for marketers and product owners who want to know why people do or do not click something.
When to use it
- βWhen you ask what a page's heatmap shows or why people are not clicking a button.
- βWhen you want to know how far down a page visitors scroll.
- βWhen you want suggested changes to a page based on how people interact with it.
Skill link
https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/assessing-heatmaps/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhy are people not clicking our pricing button? Please check the heatmap for that page and suggest changes.β
5 new skills a week. 1 minute to read.
How it works
The agent pulls click and scroll data for the page, then matches the hot spots to the elements people clicked using autocapture data. It then summarizes the behavior and proposes concrete improvements.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Assessing heatmaps
A heatmap answers "where do people interact with this page?" β clicks, rage clicks, mouse movement, and how
far down they scroll. The data is pure geometry: pointer_relative_x (0..1 across the viewport), pointer_y
(absolute pixels down the page), and a count per spot. It does not know what was clicked. Turning
"lots of clicks at (0.5, 220)" into "lots of clicks on the Pricing nav link" is the whole job, and it comes
from cross-referencing autocapture on the same URL.
Core principle: coordinates + meaning
You can't see the page β there is no screenshot in your context. A good assessment fuses two sources and leans on autocapture to supply the layout/identity you can't see:
- Heatmap data β where interactions land and how far people scroll (
heatmaps-list). - Autocapture β what element sits under the hot spots, by element text / selector on the same page. This is what turns coordinates into meaning; without it you only have dots.
When the user wants to see the heatmap, create a saved heatmap (Step 4) β that renders the page with the data overlaid for them to open in PostHog. You reason from the data; they look at the picture.
The flow
Step 1: Pin the page and window
You need an exact url_exact (one page) or a url_pattern (regex, to aggregate across query strings). Confirm
the URL with the user if ambiguous. Default to the last 7 days; widen to 30 if volume is low. Heatmap data is
retained for 90 days.
Step 2: Pull the data
Call heatmaps-list once per signal you care about (or query the heatmaps table directly via SQL β see the
querying-posthog-data skill, models-heatmaps):
type: "click"β the primary "what draws attention" map.type: "rageclick"β repeated frustrated clicks. The single strongest "something is broken or misleading" signal. Any meaningful rageclick cluster deserves a callout.type: "scrolldepth"β how far people get. Use it to find the fold and spot CTAs that sit below where most people ever scroll.
Use aggregation: "unique_visitors" when you care about how many people (not how many clicks); total_count
exaggerates a few heavy clickers.
Click results come back hottest-first and are capped at limit (default 500). A busy page can have
thousands of distinct coordinates, so the default page plus the fold summary is almost always enough β the
hottest points are what analysis turns on. Don't ask for everything: raise limit or page with offset only
when you specifically need more, and check has_more to know the list was truncated. scrolldepth ignores
limit and always returns every bucket.
Step 2b: Above the fold β read the fold summary
For the click types, heatmaps-list returns a fold object alongside results:
pct_below_foldβ share of non-fixed interactions that landed below the user's initial viewport (they had to scroll to reach them). This is one of the highest-value findings: content people actively click that sits below the fold is a prime candidate to move up.below_fold_count/total_countβ the raw counts behind the percentage (fixed-position elements are excluded, since they're always on screen).median_viewport_heightβ the typical fold line in CSS pixels, to recommend against.
Report it concretely, e.g. "the fold is ~600px for most visitors, yet 35% of clicks land below it, so users
scroll before interacting β that content is a candidate for the first screen." Segment by device with
viewport_width_min/viewport_width_max (desktop and mobile have very different folds) and read fold per
band rather than blending them.
Need a distribution rather than a single percentage (e.g. clicks bucketed by how far below the fold)? Drop to
SQL on the raw heatmaps table, which has y and viewport_height in the same scaled units β see the
querying-posthog-data skill, models-heatmaps.
Step 3: Name the hot elements (autocapture overlap)
For each notable cluster, find what's actually there. Query autocapture on the same URL β either via the
exploring-autocapture-events skill or directly:
SELECT properties.$el_text AS text, count() AS clicks
FROM events
WHERE event = '$autocapture'
AND properties.$current_url = 'https://example.com/pricing'
AND timestamp >= now() - INTERVAL 7 DAY
GROUP BY text
ORDER BY clicks DESC
LIMIT 25
elements_chain gives the selector/DOM path when you need to disambiguate two elements with the
FAQ
Can the agent see my web page?
Not directly. It works from the click data and element names, so it infers what sits under each hot spot.
Can I view the heatmap myself?
Yes. The agent can create a saved heatmap that you open in PostHog to see the page with the data over it.
What is a rage click?
It is several quick clicks in one spot, which often means something on the page is not responding as people expect.
Details
Original description by the author
Assesses what a page's heatmap is telling you and recommends concrete changes. Pulls click / rageclick / scroll-depth data for a URL, names the hot elements by cross-referencing autocapture events on the same page, and can create a saved heatmap the user opens in PostHog, then summarizes the behavior and proposes improvements. TRIGGER when: user asks what a heatmap shows, why people aren't clicking something, where users rage-click, how far they scroll, what to change on a page based on heatmap/click data, or to 'analyze/assess/review the heatmap' for a URL. DO NOT TRIGGER when: the user only
repo: PostHog/posthog
Popularity
- GitHub stars
- 41k
- Ranking position
- #6973
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
depot-ci
41kHelps your agent set up and run Depot CI workflows, a GitHub Actions alternative, including migrating existing workflows and reading run logs.
depot-container-builds
41kHelps your agent build Docker images on Depot's remote builders, including multi-platform images, pushing to registries, and fixing build failures.
depot-github-runners
41kHelps your agent move GitHub Actions jobs to Depot-managed runners, choosing runner sizes and labels, and troubleshooting runner setup issues.
editing-agents-md
41kHelps your agent decide whether a rule belongs in an AGENTS.md or CLAUDE.md file, and write it so it sticks without bloating the file.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.