assessing-heatmaps
できること
このスキルは、ヒートマップを解釈する方法をエージェントに教えます。ヒートマップは、人がページのどこをクリックし、どこまでスクロールするかを示します。ボタンがクリックされない理由を知りたいマーケターやプロダクト担当者向けです。
使う場面
- ✓ページのヒートマップが何を示しているか、またはボタンがクリックされない理由を知りたいとき。
- ✓訪問者がページのどこまでスクロールするかを知りたいとき。
- ✓ページへの操作に基づいて、具体的な変更案が欲しいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/web_analytics/skills/assessing-heatmaps/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“料金ボタンがクリックされていません。そのページのヒートマップを確認して、変更案を提案してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、そのページのクリックデータとスクロールデータを取得します。次に、オートキャプチャのデータを使ってホットスポットを、クリックされた要素に対応づけます。そのうえで、行動を要約し、具体的な改善案を提案します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
エージェントはWebページを直接見られますか?
直接は見られません。クリックデータと要素名をもとに作業するため、各ホットスポットの下にあるものを推測します。
ヒートマップは自分で見られますか?
はい。エージェントは保存済みのヒートマップを作成できます。PostHogで開けば、データを重ねたページを確認できます。
レイジクリックとは何ですか?
同じ場所を素早く何度もクリックすることです。ページの何かが、利用者の期待どおりに反応していないことを意味することが多いです。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 41k
- ランキング
- #6973
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
depot-ci
41kエージェントが、GitHub Actionsの代替であるDepot CIのワークフローを設定し実行できるよう支援します。既存のワークフローの移行や、実行ログの確認も含みます。
depot-container-builds
41kエージェントが、Depotのリモート・ビルダーでDockerイメージを作れるよう支援します。マルチプラットフォームのイメージ、レジストリへのプッシュ、ビルド失敗の修正を含みます。
depot-github-runners
41kエージェントが、GitHub Actionsのジョブを Depot が管理するランナーに移し、ランナーのサイズとラベルを選び、ランナー設定の問題を解決できるよう支援します。
editing-agents-md
41kエージェントが、AGENTS.mdとCLAUDE.mdのどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。