跳到正文
Skillpedia
智能体41k · #6829

exploring-ai-failures

它能做什么

本技能查看真实的 AI 追踪记录,找出回复出错的地方,包括看似正常却忽略指令、或错误使用工具的回答。适合希望了解 AI 功能中哪些地方出了问题的团队。

适用场景

  • ✓当你想了解某个 AI 功能在生产环境中出了什么问题时。
  • ✓当用户反馈回答不好,你需要找出共同模式的时候。
  • ✓当你想要一份按优先级排列的 AI 问题清单,以决定先修复哪一项的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/exploring-ai-failures/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/exploring-ai-failures/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们的客服聊天机器人出了什么问题?请从真实对话中找出主要的失败模式。”

每周 5 个新技能,1 分钟读完。

工作原理

它使用查询定位可疑的追踪记录,阅读它们,并将失败归纳为按优先级排列的模式清单。结果会显示哪些问题最常见,并给出示例,方便你据此采取行动。

技术内容(原始 SKILL.md)

作者在 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
常见问题

它只能发现抛出异常的错误吗?

不是。它也会寻找不易察觉的失败,例如错误的回答、被忽略的指令以及不当的工具使用,这些问题不会引发报错。

我可以如何使用这些结果?

你可以修改提示词、提交缺陷报告、设定优先级,或把排名第一的模式转化为自动检查。

它会阅读每一段对话吗?

不会。查询会挑选需要查看的追踪记录,本技能再对这些记录进行详细阅读。

详情

作者的原始描述

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

热度

GitHub 星标
41k
排名
#6829
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能