Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 86
  • 41k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-failures

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install exploring-ai-failures in Claude Code

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

A

No 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 →

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.

exploring-ai-failures Install

Add to stack

Loading.