Logo vun Analyze Exports

Analyze Exports

OrganisatiounBeléift
Leanmcp
analyze-exports

Analyze tau2-bench task export files to identify exactly where and why tasks failed. Map failures to specific conversation rounds, show root causes, check whether relevant documentation was available, and cite sources. Use this skill whenever you need to debug a tau2-bench evaluation, understand why an agent made wrong decisions, identify missing knowledge, or review task performance—especially when context length, eligibility criteria, or policy compliance might be at fault.

Iwwersiicht

EditeurLeanmcp
Repositorygateway-skills
Skill-Nummanalyze-exports
Stären
2.1K
Forks
2.1K
Matgeliwwert Fichieren
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum Leanmcp op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Analyze Exports an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Leanmcp/gateway-skills/tree/main/skills/analyze-exports
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Leanmcp/gateway-skills.git /tmp/gateway-skills
mkdir -p .claude/skills
cp -r /tmp/gateway-skills/skills/analyze-exports .claude/skills/analyze-exports
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Analyze Exports an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Analyze Exports automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Analyze Exports net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Analyze Exports Skill

Purpose

When a tau2-bench task returns reward 0.0 (or fails), the export file contains everything you need to understand why—but it's buried in tool-call summaries and conversation transcripts. This skill systematically analyzes the export to show:

  1. Where it failed — the exact round (Assistant #X, User #Y) and tool-call sequence
  2. What should have happened — ground truth from the task explanation
  3. Why it failed — root cause (missing logic, wrong arguments, bad order, policy misunderstanding)
  4. Was the docs available? — whether the KB had the answer the agent needed
  5. Evidence — quotes and citations from both the transcript and source documents

Input Format

An export file (plain text) containing:

  • RUN: and TASK: metadata
  • ★ TASK EXPLANATION (success criteria, expected actions)
  • 🛠 TOOLS LOADED (available tools and KB docs)
  • ⇄ TOOL-CALL SUMMARY (OURS vs GROUND TRUTH comparison)
  • Full conversation transcript with tool calls and results

Output Format & File Organization

Analysis reports are saved in a standardized folder structure for easy organization and review:

FAILURE_ANALYSIS/
├── analysis/
│   ├── hard_15/
│   │   ├── task_037_detailed_analysis.md
│   │   ├── task_038_detailed_analysis.md
│   │   ├── task_039_detailed_analysis.md
│   │   └── task_041_detailed_analysis.md
│   ├── hard_16/
│   │   ├── task_053_detailed_analysis.md
│   │   └── task_054_detailed_analysis.md
│   └── [other_categories]/
│       └── [task_id]_detailed_analysis.md
└── README.md (overview of all analyses)

File Naming Convention: [task_id]_detailed_analysis.md

Folder Organization: Group by difficulty level (hard_15, hard_16, etc.) or category to match your existing structure.

Each analysis file contains these sections:

Report Structure

You will receive a structured analysis report with these sections:

## Export Analysis: [TASK_ID]

### Overview
- **Status**: PASS / FAIL
- **Reward**: [0.0-1.0]
- **Model**: [Model ID]
- **Duration**: [Time]

### Executive Summary
[1-2 sentence summary of what went wrong and why]

### Failure Map
**Failure Point #1: [Description]**
- **Round**: [Assistant #X → User #Y → Assistant #Z]
- **Tool Call Sequence**: [Call 1] → [Call 2] → [Missing: Call 3]
- **Who Failed**: Agent / User / System
- **Expected Action**: [What should have happened per GROUND TRUTH]
- **Actual Action**: [What the agent/user actually did]

[Details, quotes from transcript, tool results]

**Root Cause**: [Why did this happen?]
- **Category**: Missing tool call / Wrong arguments / Wrong order / Policy misunderstanding / Eligibility miscalculation
- **Evidence**: [Quote from transcript showing the decision point]

**Was docs available?** 
- **Yes** — Doc: [doc_id] found in TOOLS LOADED section
- **Quote**: [Relevant passage from KB]
- **Why agent didn't use it**: [Analysis of gap between available info and agent's reasoning]
- **No** — Agent would have needed [doc_id] but it wasn't loaded

**Impact**: [What downstream actions were blocked?]

---

### All Failures (Summary Table)
| Failure | Round | Category | Root Cause | Docs Available? |
|---------|-------|----------|-----------|-----------------|
| ... | ... | ... | ... | Yes/No |

### Recommendations
1. [What the agent should have done]
2. [What docs or logic were missing]
3. [How to prevent this in future runs]

### Appendix: Transcript Excerpts
[Relevant quotes from the conversation at decision points]

How to Use This Skill

Step 1: Paste the export file (text) into your message, then ask one of these questions:

  • "Analyze this export and show me why task_041 got 0.0"
  • "Walk me through where this failed and check if the docs had the answers"
  • "Which round did things go wrong? Show me the exact tool calls."
  • "Why did the agent mark disputes as eligible when they shouldn't be?"
  • "Was the KB documentation available for this failure?"
  • "IF NOTHING IS PROIVIDED YOU SHOULD ANALYZE FULLY AS ABOVE WHAT I HAD MENTIONED AND THEN POST IT INTO THE MARKDOWN FILE"

Step 2: Specify output location (optional). The skill will save analysis to:

FAILURE_ANALYSIS/analysis/[task_name]/[task_id]_detailed_analysis.md

For example:

  • FAILURE_ANALYSIS/analysis/hard_15/task_041_detailed_analysis.md
  • FAILURE_ANALYSIS/analysis/hard_15/task_053_detailed_analysis.md

If you want a different location, specify it in your request:

  • "Analyze this export and save to FAILURE_ANALYSIS/analysis/hard_16/task_055_analysis.md"

The skill will:

  1. Parse the export structure
  2. Compare OURS (actual) vs GROUND TRUTH (expected)
  3. Identify divergence points
  4. Map each failure to a specific round
  5. Determine root cause
  6. Check whether relevant docs were loaded
  7. Cite sources for all findings
  8. Show transcript excerpts at decision points
  9. Save detailed analysis to the specified output folder

Key Definitions

Round: A single back-and-forth in the conversation. Identified by ASSISTANT #X, USER-SIM #Y, or ⇐ TOOL RESULT.

Failure Category:

  • Missing tool call: Agent didn't call a required tool (should have unlocked/called but didn't)
  • Wrong arguments: Agent called the right tool with bad parameters
  • Wrong order: Agent called tools in incorrect sequence (e.g., filed dispute before checking history)
  • Policy misunderstanding: Agent didn't follow eligibility rules or constraints
  • Eligibility miscalculation: Agent marked something as eligible when it should be ineligible (or vice versa)

Root Cause: Why the agent made that specific mistake. Examples:

  • Didn't search KB for relevant policy
  • Searched KB but misunderstood the result
  • Tool result was confusing or incomplete
  • Agent forgot prior information
  • Agent miscalculated (e.g., provisional_credit_eligible flag)
  • Prompt/policy was ambiguous

Docs Available?

  • Yes: The doc was in TOOLS LOADED section AND in the transcript (agent searched KB or had access)
  • Partially: Doc was loaded but agent didn't search for it or search returned partial results
  • No: Doc wasn't in TOOLS LOADED; agent couldn't have known.

Example Analysis

Input Export:

TASK: task_053 TRIAL: 0
REWARD: 0.000
★ TASK EXPLANATION
Expected actions:
  - log_verification(...)
  - get_user_dispute_history_7291(...)
  - submit_credit_limit_increase_request_7392(...)
  - approve_credit_limit_increase_5847(...)
  - file_credit_card_transaction_dispute_4829(...)

Skill Output (excerpt):

## Export Analysis: task_053

### Overview
- Status: FAIL
- Reward: 0.0
- Reason: CLI approval never submitted; dispute filed before CLI, violating policy conflict resolution

### Failure #1: Missing CLI Submission
- Round: After Assistant #8 (verification complete)
- Expected: unlock and call submit_credit_limit_increase_request_7392
- Actual: Agent never called this tool
- Root Cause: Agent didn't recognize that CLI must be processed BEFORE dispute (policy conflict)

**Was docs available?**
- **Yes** — doc_credit_cards_credit_card_account_logistics_007 was in TOOLS LOADED
- **Quote**: "Step 1: Submit the CLI Request... Step 2: Verify Basic Eligibility. ... No Pending Disputes"
- **Why agent didn't use it**: Agent retrieved dispute history but didn't correlate it to the CLI eligibility rule (Step 2, requirement 3). The policy conflict (CLI blocks if dispute pending, dispute creates pending state) required inference across docs.

**Impact**: 
- CLI request was never submitted
- Dispute was filed (or blocked on CLI)
- Customer goal of "both CLI approved and dispute filed" not met
- Reward: 0.0

Important Notes

  1. This skill reads exports as-is — it doesn't run the task again. It analyzes the transcript that already happened.

  2. Root cause analysis requires inference — sometimes the "why" isn't obvious from tool calls alone. The skill reads between the lines: missed KB searches, forgotten prior context, logical errors.

  3. Policy conflicts are key — tau2-bench tasks often test whether agents recognize when two requests interact (e.g., CLI + dispute). The skill flags these.

  4. Provisional credit and eligibility calculations — disputes exports often involve calculating whether disputes qualify for provisional credit. The skill checks:

    • Did agent check dispute history?
    • Did agent apply the cap correctly?
    • Were eligibility criteria (account age, purchase date, merchant contact, reason code) verified?
  5. Multi-step failures — one missed tool call can cascade. The skill traces dependencies: if the agent didn't call get_dispute_history early, all downstream eligibility flags are suspect.

Troubleshooting

"The export is incomplete"
Some exports may be truncated. The skill will note what information is missing and work with what's available.

"I don't understand the root cause"
Ask the skill to elaborate: "Explain the root cause in simpler terms" or "What KB search should the agent have done?"

"The skill says docs were available but I don't see them in my export"
Check the 🛠 TOOLS LOADED section. Docs are listed as doc_credit_cards_credit_card_account_logistics_007, etc. If it's not there, the docs weren't loaded for that run.


Script Dependencies

The skill uses bundled Python scripts to:

  • Parse export structure (YAML sections, conversation rounds)
  • Map tool calls to conversation rounds
  • Extract KB doc references from TOOLS LOADED
  • Compare OURS vs GROUND TRUTH tool calls
  • Generate the structured report

See scripts/ directory for implementation.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Analyze Exports?

Analyze tau2-bench task export files to identify exactly where and why tasks failed. Map failures to specific conversation rounds, show root causes, check whether relevant documentation was available, and cite sources. Use this skill whenever you need to debug a tau2-bench evaluation, understand why an agent made wrong decisions, identify missing knowledge, or review task performance—especially when context length, eligibility criteria, or policy compliance might be at fault.

Firwat Analyze Exports op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Analyze Exports besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Analyze Exports an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Leanmcp/gateway-skills/tree/main/skills/analyze-exports an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Analyze Exports benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Analyze Exports benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Analyze Exports domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Analyze Exports gratis?

Jo. De Skill gëtt vum Leanmcp ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇