微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Error Analysis

Error Analysis · v2.3.4
安全 unknown 级 作者 ckchzh 公开目录收录
1.1k 下载 1 安装 4.1k 收藏 4 浏览

简介

Error Analysis

原始描述

错题分析助手。错题归类、知识点定位、薄弱环节分析、复习建议。Error analysis for study with categorization, knowledge gap identification. 错题本、考试复盘、学习分析。Use when analyzing exam mistakes.

通过你的 Agent 添加

安装目录:error-analysis/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/error-analysis/
Codex CLI~/.codex/skills/error-analysis/
DeepSeek Harness~/.agents/skills/error-analysis/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: error-analysis description: Use this skill when the user asks to "analyze AI errors", "error analysis for our AI feature", "open coding", "axial coding", "analyze model failures", "categorize AI mistakes", "find patterns in bad AI outputs", "what's wrong with our AI", or has a set of bad AI outputs and wants to understand what's failing and why. This is the first step in the AI eval methodology from Hamel Husain and Shreya Shankar. version: 2.0.0

AI Error Analysis

You are conducting a structured error analysis of AI output failures — the first and most important step in building an effective eval system. Most teams skip this step and build evals that measure the wrong things, leading to dashboards that are ignored.

Framework: Hamel Husain + Shreya Shankar (Building eval systems that improve your AI product, 2025), Aman Khan (Beyond vibe checks, 2025).

Key principle: "Many teams build eval dashboards that look useful but are ultimately ignored and don't lead to better products, because the metrics these evals report are disconnected from real user problems." — Hamel Husain + Shreya Shankar, Lenny's Newsletter (2025)

The solution: ground evals in real failure modes first, then build evals to catch those failures.

Step 1 — Gather Failure Data

Ask the user to provide failure data:

  • Traces: Input → output pairs where the AI failed. Can be pasted directly or uploaded.
  • User feedback: Thumbs down, low ratings, complaint tickets about AI outputs
  • Known bad examples: Cases the team already knows are wrong

Minimum viable set for open coding: 30–100 failure examples. More is better, but 30 gives enough signal to start.

Step 2 — Open Coding

Open coding = free-form critique of failures, one at a time, without a predetermined category system.

For each failure:

  1. Read the input and the bad output
  2. Write a brief, specific description of what went wrong: "The model contradicted the user's stated preference", "The output is factually wrong about [X]", "The response is unhelpfully vague when the user needs specifics"
  3. Do NOT categorize yet — just describe in your own words

This produces a list of free-form failure descriptions.

Common AI failure types to watch for (but don't force fit):

  • Factual error / hallucination: Model states something incorrect as fact
  • Instruction following failure: Model ignores or misinterprets the system prompt or user instruction
  • Format error: Output is in the wrong format (too long, wrong structure, wrong tone)
  • Context failure: Model ignores or loses relevant context from earlier in the conversation
  • Hedging over-use: Model adds excessive caveats that undermine the usefulness of the response
  • Scope creep: Model does more than asked, confusing the user
  • Retrieval failure (RAG): Retrieved context is wrong, irrelevant, or not used
  • Reasoning error: Model reaches the wrong conclusion through flawed reasoning
  • Safety over-refusal: Model refuses a reasonable request due to over-sensitive safety filters

Step 3 — Axial Coding

Axial coding = grouping the open coding descriptions into a manageable set of named failure categories.

Target: fewer than 10 categories. More than 10 is too granular to act on.

For each group of similar descriptions:

  • Name the category (3–5 words, noun-phrase)
  • Write a one-sentence definition
  • List 2–3 example failure descriptions that fit

The categories should be mutually exclusive (each failure fits in one category) and collectively exhaustive (every failure fits somewhere, even if there's an "Other" category).

Step 4 — Frequency Count

For each category:

  • Count how many failures fall into it
  • Calculate the percentage of total failures
  • Rank by frequency

The top 3 categories by frequency are your evaluation priorities. Build evals to catch these first. Everything else is secondary.

Step 5 — Root Cause Analysis

For the top 3 failure categories:

  • What causes this type of failure?

    • System prompt issue (instructions are unclear, missing, or contradictory)
    • Model capability issue (this task is at the edge of the model's capability)
    • Context issue (the model doesn't have the information it needs)
    • Retrieval issue (RAG is returning wrong or irrelevant chunks)
    • Data issue (training/fine-tuning examples were poor)
    • Prompt engineering issue (user prompt format triggers this failure)
  • Is this fixable with prompt engineering, or does it require a different approach (better retrieval, fine-tuning, model upgrade)?

Step 6 — Output

Produce:

  • Open coding output (list of failure descriptions)
  • Axial coding result (category names, definitions, counts)
  • Ranked failure category table (category | count | % | root cause)
  • Top 3 categories with root cause diagnosis and recommended next step
  • Eval design recommendation: what evaluation method would catch each top failure category?

正文来自原始仓库, 版权归作者所有,许可:Apache-2.0。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/Productfculty-aipm/PM-Copilot-by-Product-Faculty

标签

没有标签

同类 Skill