signals
できること
このスキルは、プロダクトデータからPostHogが生成する生のシグナルを、HogQLのクエリで読む方法を説明します。キュレーションされた受信箱を超えて、シグナルを直接検索や集計したいアナリスト向けです。
使う場面
- ✓正確な文字列ではなく、意味に基づいてPostHogのシグナルを検索したいとき。
- ✓特定のレポートに寄与したすべてのシグナルがほしいとき。
- ✓プロジェクトにあるシグナルの種類を一覧にしたり、数えたりしたいとき。
スキルのリンク
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このレポートに寄与した生のシグナルをすべて見つけて、その種類を一覧にしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
シグナルは埋め込みのテーブルに保存されていて、HogQLでクエリできることを説明します。意味による検索、グループ化、一覧化に使えます。レポートを閲覧するには、先に受信箱のスキルを使います。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Querying Signals
What Are Signals?
Signals are automated observations that PostHog generates by monitoring a customer's product data across multiple sources — error tracking, web analytics, experiments, session replay, and more. Each signal is a short natural-language description of something noteworthy (e.g. "Error rate spiked 3× on /checkout").
Signals are grouped into Signal Reports. When a report accumulates enough weight it gets summarized and assessed for actionability. A signal report represents a cluster of related observations that together describe a meaningful issue or trend.
Signals and their embeddings are stored in the document_embeddings ClickHouse table, queryable via HogQL through the posthog:execute-sql MCP tool. They may provide a useful way to semantically query for recent things that happened in the user's product.
When to use this skill vs. inbox-exploration
The two skills cover different layers of the same product:
inbox-exploration— curated report layer via dedicated MCP tools (inbox-reports-list,inbox-reports-retrieve,inbox-source-configs-list,inbox-source-configs-retrieve). Use for "what's in my inbox?", "what's actionable?", filtering reports by status / source / suggested reviewer, looking up a specific report by ID or URL.- This skill (
signals) — raw signal layer via HogQL ondocument_embeddings. Use when the curated report layer is not enough: semantic search over signal text, fetching every signal that contributed to a specific report, listing what kinds of signals exist, or any ad-hoc analytics that the report tools don't expose.
The typical pattern is to start with inbox-exploration, get a report_id or a sense of the area the user cares about, then drop into this skill when the user wants to see the raw observations.
Table and Column Reference
The HogQL table alias is document_embeddings. HogQL automatically constrains queries to the current team — you never need to filter on team_id. Key columns for signals:
| Column | Type | Description |
|---|---|---|
product |
String | Product bucket — always 'signals' for signals |
document_type |
String | Document type — always 'signal' for signals |
model_name |
String | Embedding model — always 'text-embedding-3-small-1536' |
document_id |
String | Unique signal ID (UUID) |
timestamp |
DateTime64(3) | When the signal was created |
inserted_at |
DateTime64(3) | When this row version was inserted (used for deduplication and soft deletes) |
content |
String | The signal description text |
metadata |
String | JSON string with report_id, source info, weight, deleted flag, etc |
embedding |
Array(Float64) | 1536-dimensional embedding vector |
Mandatory Filters
Every signals query MUST include all four of these filters. Missing any of them can cause the query to fail with an invalid model error, return wrong data, or trigger unnecessarily expensive scans:
WHERE model_name = 'text-embedding-3-small-1536'
AND product = 'signals'
AND document_type = 'signal'
AND timestamp >= now() - INTERVAL 30 DAY
The model_name filter is especially critical — the HogQL engine uses it to route to the correct underlying ClickHouse table. If the WHERE model_name = ... equality filter is missing or uses an unknown model, the query will fail with an "Invalid model name" error (you cannot use IN or other expressions here).
The product and document_type filters are equally important — the same model contains data from multiple products (e.g. error tracking, AI memory). Without these filters you will get unrelated data mixed in.
The timestamp filter is required for performance — the table is partitioned by week and has a 3-month TTL. Always include a time bound using now() - INTERVAL N DAY (or WEEK, MONTH, etc.). Default to 30 days unless you have a reason to look further back. Gene
よくある質問
シグナルとは何ですか?
エラー率の急増など、プロダクトについての短い自動的な観察です。複数のシグナルがまとまって1つのレポートになります。
受信箱のスキルとの違いは何ですか?
受信箱のスキルは、レポートの一覧化、絞り込み、1件の検索に使います。このスキルは生のシグナルのデータに使います。
SQLを知っている必要がありますか?
はい。クエリはSQLに似たHogQLで書かれるため、SQLの知識が役立ちます。
詳細
作者による元の説明
How to query the document_embeddings table for raw signal data using HogQL. Use when you need to perform semantic search over signals, fetch every signal that contributed to a specific report, or list signal types. For browsing the curated report layer (the Inbox) — listing reports, filtering by status/source, drilling into a single report by ID — use the `inbox-exploration` skill first; drop into this skill afterwards if the user wants the underlying observations.
repo: PostHog/posthog
人気
- GitHubのスター
- 41k
- ランキング
- #6950
- ライセンス
- —
- 更新日
- 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のどちらにルールを書くべきかを判断し、ファイルを膨らませずに守られやすい形で書けるよう支援します。
似ているスキル
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
clickhouse-io
280kエージェントがClickHouseデータベースのクエリとスキーマを最適化できるようにします。高性能な分析処理向けのベストプラクティスを適用します。分析クエリが遅すぎるときに使います。
scientific-db-pubmed-database
280kエージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。