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에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-container-builds
41k에이전트가 Depot 원격 빌더에서 Docker 이미지를 빌드하도록 돕습니다. 다중 플랫폼 이미지, 레지스트리 푸시, 빌드 실패 수정을 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.