reviewing-warehouse-suggestions
Fungsinya
Skill ini membuat agent meninjau saran harian yang dibuat PostHog tentang tampilan dan tabel warehouse Anda. Skill ini untuk orang yang ingin memutuskan tampilan mana yang akan disimpan, dihentikan, atau ditandai sebagai tepercaya.
Kapan dipakai
- ✓Saat Anda ingin tahu apa yang disarankan PostHog untuk data warehouse Anda.
- ✓Saat Anda ingin memahami mengapa sebuah tampilan sebaiknya disimpan atau dihentikan.
- ✓Saat Anda ingin menerima, mengabaikan, atau menugaskan saran warehouse.
Link skill
https://github.com/PostHog/posthog/blob/master/products/warehouse_suggestions/skills/reviewing-warehouse-suggestions/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
“Apa yang disarankan PostHog untuk data warehouse saya hari ini? Jelaskan saran teratas dan beri tahu saya apakah layak diterima.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mencantumkan saran yang diajukan sesuai urutan prioritas dan menjelaskan tiap saran dengan angka yang melandasinya. Agent dapat mengubah pengaturan refresh jika Anda minta, lalu menerima, mengabaikan, atau menugaskan saran tersebut.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Reviewing warehouse suggestions
PostHog computes warehouse suggestions every day from how the project reads its views and tables.
Each suggestion is about one view or table.
Its payload holds everything that accepting it would create or change.
1. Find the suggestions
Call warehouse-suggestions-list with status=proposed.
The results come in priority order, so start at the top.
If the list is empty, call warehouse-suggestions-status: it says whether suggestions are turned off, still collecting read history, or not eligible.
Call warehouse-suggestions-get for a suggestion the user wants to discuss.
Its evidence has the read counts behind it.
2. Explain it with its own numbers
Tell the user what accepting does and what it costs, using the payload fields. Do not invent a score or a confidence level.
- materialize: the view is computed often enough that storing its result saves compute.
- A view that is not stored is computed on every read, and again on every refresh of each materialized view that reads it.
recomputed_by_viewscounts those materialized views. When it is above 0, the saving comes mostly from their refreshes, not from people's reads. saves_seconds_per_monthandsaves_bytes_per_monthare what those computations stop costing.- Materializing adds a recurring refresh cost, which these numbers already subtract.
freshness_today_secondsandfreshness_after_secondssay how old the data can be now and after.refresh_interval_secondsis the proposed interval.refresh_interval_basissays what kept it from being shorter:source_sync(the sources sync no faster),fastest_schedule(PostHog refreshes views no more often),read_rate(people read the view no more often),consumer_refresh(the materialized views that read it refresh no more often) orsavings(a shorter interval costs more than it saves).refresh_modeisincrementalwhen each refresh can read only new rows, byincremental_key, and update rows byunique_key. Otherwise it isfull, and each refresh rebuilds the whole table.
- A view that is not stored is computed on every read, and again on every refresh of each materialized view that reads it.
- unmaterialize: this materialized view is read so rarely that refreshing it costs more than computing it on each read.
refresh_seconds_per_monthandrefresh_bytes_per_monthare what its refreshes cost now.live_seconds_per_monthandlive_bytes_per_monthestimate what its reads would cost if each one computed the view. The estimate uses a full refresh per read, so it leans high.read_secondsis how long one read would take afterwards. Nine in ten of its refreshes finished within this time. Tell the user that reads get slower by about this much, and that each read sees current data instead of the last refresh.- Accepting stops the refreshes and deletes the stored table. The view definition stays, so it can be materialized again later.
- A 409 on accept means the view changed since the suggestion was made, for example another view now reads from it. Explain the reason to the user and do not retry.
- certify: many people read this view or table, from several places. Use the read counts in
evidence. - deprecate: nobody reads this materialized view, but it still refreshes.
refresh_seconds_per_monthandrefresh_bytes_per_monthare that cost. Accepting marks it deprecated in the data catalog, stops its refreshes and deletes its stored table. The view definition stays, so it can be materialized again later. To keep it refreshing, passkeep_materialized: true. After accepting,created_asset.stopped_materializationsays whether the refreshes stopped: they keep running when other views read from it or its refreshes feed person properties, a destination or a workflow.
3. Change a materialize suggestion before accepting
The payload is a starting point. To change it, pass the payload field with the same name to the accept tool. An omitted field keeps the suggested value.
- Another interval: pass
refresh_interval_seconds. - Full instead of incremental, or the reverse: pass
refresh_mode. - Other keys:
- Read the view's query with
view-get. - Call
view-check-incrementalwith that query, plus theincremental_keyandunique_keythe user wants. Without keys it listskey_candidatesandunique_key_candidates. - Accept with those keys only when the check returns
eligible: true. Otherwise explain theblockersto the user.
- Read the view's query with
- Late rows: pass
lookback_secondsso each refresh read
Pertanyaan umum
Apakah agent membuat-buat skor?
Tidak. Agent menjelaskan setiap saran hanya dengan angka yang diberikan PostHog.
Apa yang dilakukan menyimpan tampilan?
Hasil tampilan disimpan sehingga tidak dihitung ulang setiap kali, yang menghemat komputasi tetapi menambah biaya refresh berulang.
Bagaimana jika daftar saran kosong?
Agent memeriksa apakah saran dimatikan atau masih mengumpulkan riwayat pembacaan.
Detail
Deskripsi asli dari pembuat
Reviews PostHog's warehouse suggestions with a person and acts on them. Explains why a view should be materialized, unmaterialized, certified or deprecated using the numbers in the suggestion, changes a materialize suggestion's refresh mode, keys or interval when the person wants something else, then accepts, dismisses or assigns it. Use when the user asks what PostHog suggests for their data warehouse, whether to materialize a view, why a view should refresh incrementally or every few hours, or wants to accept, change, dismiss or assign a warehouse suggestion.
repo: PostHog/posthog
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6972
- 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.