agent-error-taxonomy-root-cause-analysis
/agent-error-taxonomy-root-cause-analysis
Use this skill when classifying agent operational failures, tool exceptions, and hallucination patterns into a systematic error taxonomy.
- Author
- nextboxis ↗
- Repository
- library-skill-agents ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use this skill when classifying agent operational failures, tool exceptions, and hallucination patterns into a systematic error taxonomy.
Original author description
Use this skill when classifying agent operational failures, tool exceptions, and hallucination patterns into a systematic error taxonomy.
How it works
- When to use
- Core principles
- Step-by-step workflow
- Behavioral guidelines & dialogue examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
SKILL.md preview
---
name: agent-error-taxonomy-root-cause-analysis
description: Use this skill when classifying agent operational failures, tool exceptions, and hallucination patterns into a systematic error taxonomy.
---
# Agent Error Taxonomy & Root Cause Analysis
## When to use
Use this skill when auditing failed agent runs, analyzing tool crashes, triaging evaluation benchmark regressions, or diagnosing repetitive behavioral loops.
## Core principles
- **Symptom vs. Root Cause**: A syntax error in a tool call is a symptom; the root cause is often schema ambiguity, outdated documentation, or prompt context drift.
- **The Four-Tier Agent Error Taxonomy**:
1. *Perception Failure*: Missing or misinterpreting user input, environment state, or tool output.
2. *Planning Failure*: Selecting an invalid sequence of steps, missing prerequisites, or infinite loops.
3. *Execution Failure*: Calling tools with invalid types, hallucinated arguments, or permission errors.
4. *Evaluation Failure*: Declaring a task complete when verification tests were never executed or failed silently.
- **The 5-Whys in Autonomous Systems**: Trace errors back through the causal chain to the prompt, tool definition, or system boundary.
## Step-by-step workflow
1. **Log raw failure trace**: Record the user prompt, tool call input, tool error output, and agent reasoning.
2. **Assign taxonomy classification**: Categorize the failure into Perception, Planning, Execution, or Evaluation.
3. **Execute 5-Whys root-cause drilldown**:
- Why did the tool fail? (Invalid parameter type).
- Why was the parameter invalid? (Agent passed string instead of integer).
- Why did the agent pass string? (Tool schema description was ambiguous).
4. **Identify systemic remediation**: Determine whether the fix requires prompt refinement, schema modification, or skill generation.
5. **Document failure pattern in regression suite**: Add the scenario to automated agent eval suites.
## Behavioral guidelines & dialogue examples
- **Root Cause Analysis Trace**:
- *Incident*: Agent attempted to run `git push origin main --force` on a protected branch.
- *Taxonomy*: Execution / Safety Guardrail Bypass.
- *Root Cause*: Agent's internal instructions prioritized "resolving the merge conflict at all costs" without an invariant blocking destructive force pushes on mainline branches.
- *Remediation*: Implement hard deterministic pre-execution tool filter rejecting `--force` flags on `main` and `master`.
## Common mistakes & pitfalls
- Stopping at surface blame ("The LLM hallucinated") instead of analyzing schema or prompt causes.
- Failing to track error frequency across multi-turn sessions.
- Fixing a single prompt instance without testing for regressions across other tasks.
## Verification checklist
- [ ] Failure is mapped to a standardized error taxonomy tier.
- [ ] 5-Whys causal chain traces the failure to systemic prompts or schemas.
- [ ] Remediation addresses the root cause rather than treating the symptom.
- [ ] Failure scenario is recorded for automated evaluation regression testing.
## Related skills
- agent-post-task-reflection-lessons-learned
- agent-skill-gap-detection-proposal
- agent-guardrail-invariants-compliance-audit
- agent-simulation-testing-adversarial-prompts
Versions
The database has no other skills named agent-error-taxonomy-root-cause-analysis.
Database snapshot: 13.11.2026 · package version df367bff224e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 4 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 10015-ai-rca-taxonomy-doc
Use when producing or updating AI root-cause taxonomy for stable failure families, tags, examples, detection links, and mitigation pointers. Use incident-postmortem for the neighbouring concern; this skill owns the named document contract and its acceptance evidence. - 100root-cause-investigator
Systematic root cause analysis for errors, bugs, and unexpected behaviors using 5-Why methodology. Use when user reports errors, build failures, test failures, performance issues, integration problems, or any "it's not working" scenarios. - 90root-cause-analysis
Writes a canonical RCA artifact for an incident or failure. Use when the workflow is root-cause-analysis and the team needs one durable record of problem, evidence, root cause and solution. - 100root-cause-investigator
Systematic root cause analysis for errors, bugs, and unexpected behaviors using 5-Why methodology. Use when user reports errors, build failures, test failures, performance issues, integration problems, or any "it's not working" scenarios. - 95investigate-ai-session
Deep-dives into specific AI agent sessions or failure patterns to explain why something went wrong. Only use when the user has Amplitude Agent Analytics instrumented in their project. Use when investigating a specific session ID, debugging agent failures, understanding why… - 95agent-observability-trace-rca
Root cause analysis on production LLM traces. Diagnoses why an LLM application is failing — works from eval judge verdicts, runtime errors, or structural anomalies depending on what signals are present. Walks the span tree from symptom to root cause. Use when user says "what's…