exploring-ai-failures
Skill này làm gì
Skill này xem qua các trace AI thực tế để tìm chỗ phản hồi bị sai, kể cả những câu trả lời trông ổn nhưng bỏ qua hướng dẫn hoặc dùng sai công cụ. Nó dành cho các nhóm muốn biết điều gì đang hỏng trong tính năng AI của họ.
Khi nào nên dùng
- ✓Khi bạn muốn biết điều gì đang sai với một tính năng AI trên môi trường thực tế.
- ✓Khi người dùng báo cáo câu trả lời tệ và bạn cần tìm các mẫu chung.
- ✓Khi bạn muốn một danh sách xếp hạng các vấn đề AI để quyết định nên sửa gì trước.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/exploring-ai-failures/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Chatbot hỗ trợ khách hàng của chúng tôi đang gặp vấn đề gì? Hãy tìm các mẫu lỗi chính từ những cuộc hội thoại thực tế.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill dùng truy vấn để tìm các trace đáng ngờ, đọc chúng, và nhóm các lỗi thành một danh sách mẫu được xếp hạng. Kết quả cho thấy những vấn đề nào phổ biến nhất và đưa ra ví dụ, để bạn có thể hành động.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Skill chỉ tìm các lỗi ném ra ngoại lệ phải không?
Không. Skill cũng tìm các lỗi âm thầm, như câu trả lời sai, bỏ qua hướng dẫn và dùng sai công cụ, những lỗi không gây ra thông báo lỗi.
Tôi có thể làm gì với kết quả?
Bạn có thể sửa một prompt, tạo một lỗi, đặt thứ tự ưu tiên, hoặc biến mẫu hàng đầu thành một kiểm tra tự động.
Skill có đọc mọi cuộc hội thoại không?
Không. Các truy vấn chọn trace nào cần xem, và skill đọc chi tiết những trace đó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6829
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.