exploring-ai-failures
Fungsinya
Skill ini memeriksa jejak AI yang nyata untuk menemukan di mana respons menjadi salah, termasuk jawaban yang tampak baik tetapi mengabaikan instruksi atau salah menggunakan alat. Ditujukan untuk tim yang ingin tahu apa yang rusak pada fitur AI mereka.
Kapan dipakai
- โSaat Anda ingin tahu apa yang salah pada fitur AI di produksi.
- โSaat pengguna melaporkan jawaban buruk dan Anda perlu mencari pola umumnya.
- โSaat Anda menginginkan daftar masalah AI yang diurutkan untuk memutuskan apa yang diperbaiki lebih dulu.
Link skill
https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/exploring-ai-failures/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 salah dengan chatbot dukungan kami? Temukan pola kegagalan utama dari percakapan nyata.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menggunakan kueri untuk menemukan jejak yang mencurigakan, membacanya, dan mengelompokkan kegagalan ke dalam daftar pola yang diurutkan. Hasilnya menunjukkan masalah mana yang paling sering terjadi dan memberikan contohnya, agar Anda dapat bertindak.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Exploring AI failures
The highest-value thing you can do with production AI traffic is look at where it fails and name the patterns. The catch: most failures are silent. The model returns a clean response โ HTTP 200, no exception โ that is wrong, off-topic, ignores an instruction, or misuses a tool. Those never raise an error, and they're usually the failures worth caring about.
So this skill is about finding failures (loud and silent), reading them, and grouping them into a
ranked set of failure modes you can act on: fix a prompt, file a bug, prioritize work, or turn the
top mode into an automatic eval (creating-online-evaluations).
Everything below serves one irreducible activity: reading real traces. The queries only tell you which traces to open โ they are never the answer. If you report a list of problems without having opened traces, you've described the loud minority (the things that throw errors) and missed the job.
This is bottom-up: the failure modes emerge from real traces, not from a list of generic metrics decided
in advance. For reading a single trace in depth, lean on exploring-llm-traces; for emergent grouping at
high volume, exploring-llm-clusters.
Tools
| Tool | Purpose |
|---|---|
posthog:query-llm-traces-list |
List candidate traces โ filter by error, sort by a metric, scope by type |
posthog:query-llm-trace |
Read a trace in full to see what actually went wrong |
posthog:execute-sql |
Find metric outliers, discover the trace taxonomy, count failure modes |
posthog:llma-evaluation-list |
Find existing evals whose failures might reveal a new mode |
posthog:generate-app-url |
Build a region- and project-qualified deep link to a trace or list |
Detailed queries for each strategy below are in
references/finding-traces.md. That file also explains the events vs
ai_events split: heavy content like $ai_input / $ai_output_choices is not on events. For the
full $ai_* event schema, load the exploring-llm-traces skill.
Work with the user
Collaborate on scope and priorities โ not on whether to do the work. Narrow with the user up front: which feature or use case? have they already seen something bad? is there a signal to follow (a thumbs-down, a ticket, a metric that looks off)? Once it's scoped, go read traces and come back with coded failure modes โ don't stop to ask permission before the reading; that reading is the core activity, not an optional follow-up to offer. When the user doesn't know what to look for, drive the loop below and explain the reasoning as you go; keep the teaching opt-in.
Step 1 โ Scope to one use case
Apps have a taxonomy of trace types, and each fails differently โ a support chat hallucinates policy, a
summarizer drops key points, an agent loops or misuses a tool. Evaluating or analyzing them together
averages the signal away. Pick one, then find its filter (a $ai_trace_id prefix, a feature
property, a model). If the user isn't sure how their traffic splits, discover the taxonomy first (query
in references/finding-traces.md).
Step 2 โ Pick which traces to read
These are ways to select which traces to open โ not answers in themselves. The queryable ones (error counts, metric aggregates) tell you where to look; they are never the output. Choose by the context and signals you have, and combine them:
- Code errors (
$ai_is_error) โ the cheapest sweep and the least representative signal: it only catches exceptions and API failures, not the silent quality failures that matter most. Use it to grab a few traces to read, not as a tally of "the problems." Slightly more useful for structured-output or tool-calling pipelines, where some failures do surface as parse/schema errors. - Metric outliers โ sort by output/input tokens, message length, cost, or latency and open the extremes. Runaway length, truncation, context bloat, and loops cluster at the tails.
- One trace-type slice โ narrow to a single kind of request so the traces you read share a taxonomy.
- Stratified sample โ when you have no specific signal (the common case), pull a mixed batch acro
Pertanyaan umum
Apakah skill hanya menemukan error yang melempar pengecualian?
Tidak. Skill juga mencari kegagalan diam-diam, seperti jawaban yang salah, instruksi yang diabaikan, dan penggunaan alat yang keliru, yang tidak memunculkan error.
Apa yang bisa saya lakukan dengan hasilnya?
Anda dapat memperbaiki prompt, membuat laporan bug, menetapkan prioritas, atau mengubah pola teratas menjadi pemeriksaan otomatis.
Apakah skill membaca setiap percakapan?
Tidak. Kueri memilih jejak mana yang akan diperiksa, dan skill membaca jejak tersebut secara rinci.
Detail
Deskripsi asli dari pembuat
Find where an AI/LLM application is failing in production and surface the failure patterns, working from real traces. Use when someone wants to understand what's going wrong with an AI feature, find and categorize failure modes, triage errors, or investigate quality issues (wrong answers, ignored instructions, hallucinations, tool misuse) โ "what's failing in my agent", "surface error patterns", "why are the responses bad", "find the common failure modes", "what should I fix next". Covers scoping to one use case, finding failing traces by whichever signal fits the context (code errors, metric
repo: PostHog/posthog
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6829
- 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
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.