exploring-ai-failures
Skill by PostHog
Finds where an AI or LLM feature fails in production by reading real PostHog traces. It groups the failures into a ranked list of named failure modes. Aimed at developers and teams who want to know what their AI feature gets wrong.
Install exploring-ai-failures
Built from the published package, never by AI.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.claude/skills && cp -r /tmp/posthog/products/ai_observability/skills/exploring-ai-failures ~/.claude/skills/exploring-ai-failuresRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/PostHog/posthog /tmp/posthog && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/posthog/products/ai_observability/skills/exploring-ai-failures ~/.gemini/antigravity-cli/skills/exploring-ai-failuresAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install exploring-ai-failures in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an assistant find and categorize failures in a production AI or LLM application. It scopes the work to one use case, selects traces to open using signals such as code errors, metric outliers, trace-type slices, manual review, eval spikes, or clustering, and reads each selected trace. The reading produces a ranked set of named failure modes, such as ignored instructions, hallucinations, or tool misuse.
The skill is built around PostHog's LLM tools, including trace listing, full trace reading, SQL, evaluation listing, and deep-link generation. It says that most failures are silent, returning a normal response that is wrong, so it treats error counts only as pointers to traces. It is for developers and teams who run AI features and want to decide what to fix next or turn a failure mode into an online eval.
Written from the project's SKILL.md and checked against it.
What it can do
- query-llm-traces-listLists candidate traces, filtered by error, sorted by a metric, or scoped by type.
- query-llm-traceReads a single trace in full to see what went wrong.
- execute-sqlFinds metric outliers, discovers the trace taxonomy, and counts failure modes.
- llma-evaluation-listFinds existing evals whose failures might reveal a new failure mode.
- generate-app-urlBuilds a region- and project-qualified deep link to a trace or trace list.
- Ranked failure taxonomyGroups traces read by hand into a short, ranked list of named failure modes with example links.
What you need
- PostHog MCP tools available to the assistant
- A PostHog project with LLM trace data
Try asking
- What's failing in my support agent this week?
- Find the common failure modes in my summarizer feature.
- Why are the responses from my chat feature bad? Show me example traces.
Good to know
- Error-based signals only catch exceptions and API failures, not silent quality failures.
- Synthetic test results are unreliable for high-stakes or niche domains.
- Some flagged failures may be misreadings of correct traces, so findings should be checked by the user.
- Analysis works best on one use case at a time, since different trace types fail differently.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: products/ai_observability/skills/exploring-ai-failures/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/finding-traces.md6 KB
Alternatives to exploring-ai-failures
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
exploring-ai-failures: common questions
Does this skill only find errors that throw exceptions?
No. The source says most failures are silent and return a normal response. It says error-based signals are the least representative and that the skill relies on reading traces to find quality failures.
How many traces should be read?
The source suggests roughly 20 to 30 traces per use case, and to keep reading until new traces stop revealing new failure modes.
Does it change my traces or evals?
The source describes reading traces and building ranked failure modes. It suggests turning a chosen mode into an online eval with the creating-online-evaluations skill, but does not say it edits traces itself.
How do I install exploring-ai-failures?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is exploring-ai-failures free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is exploring-ai-failures safe to use?
It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to exploring-ai-failures?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
