Langsung ke konten
Skillpedia
Database41k Β· #6857

auditing-endpoints

Fungsinya

Skill ini memeriksa semua endpoint dalam proyek PostHog dan memberikan laporan yang diurutkan prioritasnya tentang apa yang perlu dibersihkan. Ditujukan untuk orang yang mengelola banyak endpoint dan ingin mengurangi kekacauan serta biaya.

Kapan dipakai

  • βœ“Saat Anda ingin tahu endpoint mana yang dapat dihapus atau dibersihkan.
  • βœ“Saat Anda mengambil alih proyek PostHog dan ingin melihat endpoint apa saja yang sudah dimilikinya.
  • βœ“Saat endpoint telah berjalan lama dan Anda menginginkan tinjauan berkala.

Link skill

https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/auditing-endpoints/SKILL.md

Salin 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

Gunakan skill ini untuk membantu saya: https://github.com/PostHog/posthog/blob/master/products/endpoints/skills/auditing-endpoints/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œAudit endpoint PostHog saya dan beri tahu mana yang bisa saya bersihkan.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menggunakan alat endpoint untuk menemukan kandidat seperti materialisasi yang gagal dan versi materialisasi yang tidak digunakan, lalu mengelompokkannya ke dalam laporan. Skill tidak mengubah apa pun.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Auditing endpoints

This skill produces a project-wide audit of the Endpoints product. Use it when the user wants to find what to clean up β€” unused endpoints, failing materialisations, materialised versions that nobody calls any more. It does not modify anything; it reports.

The deeper investigation per endpoint is diagnosing-endpoint-performance. The audit's job is to find candidates and hand off.

When to use this skill

  • "Audit my endpoints" / "What endpoints can I clean up?"
  • The user is taking over a project and wants to know what they've inherited
  • A periodic review (monthly / quarterly) of endpoint sprawl
  • The user is over a materialisation cost budget and wants to know what to disable

The dedicated tools give a fast endpoint-level view. For call frequency, recency, and cost over time, query the query_log table with execute-sql (endpoint-level). Per-version recency comes from endpoint-versions β€” each version carries its own last_executed_at.

Available tools

Tool What it's for
execute-sql (HogQL) Primary read path. Query system.data_modeling_endpoints for metadata (name, is_active, current_version, derived_from_insight, last_executed_at) and query_log for endpoint-level usage (call counts, recency, duration, bytes)
endpoint-materialization-status Per endpoint: is materialisation eligible, current status, last run, last error (not in the system tables β€” use this tool)
endpoint-versions All versions for one endpoint, latest first, with each version's query, materialisation state, and last_executed_at
endpoint-update Write path β€” disable (is_active: false) or unmaterialise (is_materialized: false) after the user confirms
agent-feedback Tell the PostHog team what's missing or confusing in this flow so the product and skill improve

Prefer reading from the system tables over the endpoints-get-all / endpoint-get tools β€” one SQL query returns the whole inventory and lets you join metadata to usage in query_log.

What counts as an issue

Category Trigger Typical action
Never called No rows in query_log for the endpoint (personal-API-key calls only) Confirm with the user, then disable
Stale query_log shows the last call more than 30 days ago Confirm with the user; often safe to disable
Inactive is_active = 0 in system.data_modeling_endpoints Verify intent; if abandoned, delete
Failing materialisation endpoint-materialization-status returns Failed with an error Hand off to diagnosing-endpoint-performance
Unused materialised version A materialised version whose last_executed_at (from endpoint-versions) is null or long stale Unmaterialise that version, or roll to a newer one
Drifted versions Many versions exist (query
Pertanyaan umum

Apakah skill ini menghapus endpoint?

Tidak. Skill hanya melaporkan apa yang ditemukannya, sehingga Anda yang memutuskan apa yang akan dihapus.

Apa itu versi endpoint termaterialisasi?

Itu adalah salinan tersimpan dari hasil endpoint, yang dapat menghabiskan penyimpanan dan komputasi meskipun tidak ada yang memanggilnya.

Bagaimana cara melihat seberapa sering endpoint dipanggil?

Skill menyarankan untuk mengkueri log kueri guna melihat frekuensi dan kebaruan pemanggilan, karena setiap versi menampilkan waktu eksekusi terakhirnya.

Detail

Deskripsi asli dari pembuat

Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks "what endpoints can I clean up?", "are any of my endpoints broken?", "which materialised versions are still being called?", or wants a one-shot cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with recommended actions but does not modify anything without explicit confirmation.

repo: PostHog/posthog

Popularitas

Bintang GitHub
41k
Peringkat
#6857
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa