exploring-ai-failures

exploring-ai-failures is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 154 tokens per session (2,749 once invoked), scanned A, original, MIT.

A tool for finding and grouping problems in real-world AI application traces. A trace is the recorded sequence of steps behind one AI interaction, including model calls and tool use.

In plain words
What is it for?
Use it to investigate production AI failures, categorize failure modes, triage quality problems, and identify issues that could become automated evaluations.
Why use it?
It catches silent failures that do not produce technical errors, such as wrong answers, ignored instructions, or irrelevant responses. It turns scattered bad interactions into failure patterns you can act on.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate production AI failures, categorize failure modes, triage quality problems, and identify issues that could become automated evaluations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/exploring-ai-failures
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PostHog/posthog-foss --skill exploring-ai-failures
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for exploring-ai-failures

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/exploring-ai-failures/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/exploring-ai-failures)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/exploring-ai-failures"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/exploring-ai-failures/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for exploring-ai-failures

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/exploring-ai-failures"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/exploring-ai-failures.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00154 $0.02749
Opus 5.5 $0.00062 $0.01100
Sonnet 5.5 $0.00031 $0.00550
Haiku 4.5 $0.00015 $0.00275

Measured today against content hash 9012f4a370d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

exploring-ai-failures scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

products/ai_observability/skills/exploring-ai-failures/SKILL.md · 177 lines

How it starts

The opening of the file, as written. The whole thing — 177 lines — stays where its author put it; the contents beside it link to each section on 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

Read the full file on GitHub · 177 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +2 lines 9012f4a370d4
  2. 27d ago Changed · +1 lines 2e7f1f3ff8ad
  3. 1mo ago Changed 56b877f805c9
  4. 2mo ago First seen · 174 lines · 154 tokens per session scan A 57d15b997226

Subscribe to this mod's changes

exploring-ai-failures is a skill published in the GitHub repository PostHog/posthog-foss (734 stars, last pushed today), licensed MIT. It adds 154 tokens to every session and 2,749 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

exploring-ai-failures compared with skills from other repositories

exploring-ai-failures next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
exploring-ai-failuresPostHog/posthog-fossSkill734todayMITA154Claude Code, Codex
debug-inferenceNVIDIA/OpenShellSkill22kyesterdayApache-2.0A120Claude Code, Codex
notebooklmteng-lin/notebooklm-pySkill20kyesterdayMITA79Claude Code, Codex
oh-my-poshJanDeDobbeleer/oh-my-poshSkill24k4d agoMITA47Claude Code, Codex
spark-engineerJeffallan/claude-skillsSkill13ktodayMITA75Claude Code
autorag-doctorMarker-Inc-Korea/AutoRAGSkill6.2ktodayApache-2.0A144Claude Code, Codex
rocketride-debugging-pipelinesrocketride-org/rocketride-serverSkill20ktodayMITA67Claude Code