signals
Fungsinya
Skill ini menjelaskan cara membaca sinyal mentah yang dihasilkan PostHog dari data produk Anda, menggunakan kueri HogQL. Ditujukan untuk analis yang ingin mencari atau menghitung sinyal secara langsung, di luar inbox yang sudah dikurasi.
Kapan dipakai
- βSaat Anda ingin mencari sinyal PostHog berdasarkan makna, bukan berdasarkan teks yang persis sama.
- βSaat Anda ingin setiap sinyal yang berkontribusi pada laporan tertentu.
- βSaat Anda ingin mendaftar atau menghitung jenis sinyal yang dimiliki proyek Anda.
Link skill
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βTemukan semua sinyal mentah yang berkontribusi pada laporan ini dan daftarkan jenisnya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjelaskan bahwa sinyal disimpan dalam tabel embedding, yang dapat dikueri dengan HogQL untuk pencarian semantik, pengelompokan, dan pendaftaran. Untuk menelusuri laporan, skill inbox digunakan terlebih dahulu.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa itu sinyal?
Sinyal adalah observasi otomatis yang singkat tentang produk Anda, seperti lonjakan tingkat error, dan beberapa sinyal bersama membentuk sebuah laporan.
Kapan sebaiknya saya menggunakan skill inbox?
Gunakan skill inbox untuk mendaftar laporan, menyaringnya, atau mencari satu laporan. Gunakan skill ini untuk data sinyal mentah.
Apakah saya perlu tahu SQL?
Ya. Kueri ditulis dalam HogQL, yaitu bahasa bergaya SQL.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6950
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
discrawl
394kMemungkinkan agent Anda mencari dan merangkum arsip pesan Discord lokal yang tersimpan, memeriksa seberapa baru arsipnya, dan membaca pesan langsung.
clickhouse-io
280kMembantu agent Anda mengoptimalkan query dan skema di database ClickHouse dengan praktik terbaik analitik berperforma tinggi. Gunakan saat query analitik terlalu lambat.
scientific-db-pubmed-database
280kMembantu agent Anda mencari artikel ilmiah di bidang biomedis. Berguna untuk riset yang membutuhkan informasi medis spesifik.