New to Claude Skills? Learn how to install them →

ruvnet on GitHub

GAIA Debugging

Free

Diagnose and fix GAIA question failures systematically.

by ruvnet67.6k stars on ruvnet/ruflo
1 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What GAIA Debugging does

The GAIA Debugging skill is designed for developers and data scientists who work with GAIA questions and need to identify and resolve issues that arise during execution. When a specific task_id fails or returns incorrect results, this skill provides a structured approach to diagnose the problem, classify the failure mode, and propose actionable fixes. It is particularly useful when benchmarking runs report errors, allowing users to root-cause issues before resubmitting queries.

The skill employs a systematic diagnostic workflow that begins with loading the question trace to analyze the results associated with the failed task_id. Users can classify the failure based on symptoms observed in the trace output, which helps narrow down potential issues such as tool gaps, reasoning misses, extraction bugs, and more. Each failure mode has a corresponding fix direction, which guides users in applying targeted solutions to resolve the problem effectively.

In addition to diagnosing failures, the GAIA Debugging skill allows users to store patterns of resolved issues for future reference. This feature helps in building a knowledge base of common failures and their fixes, streamlining the debugging process for similar issues encountered later. By leveraging this skill, users can enhance their understanding of the GAIA system's behavior and improve the overall reliability of their queries.

This skill is particularly beneficial in environments where GAIA is used for complex question answering, and consistent performance is critical. It empowers users to take control of the debugging process, ensuring that they can quickly identify and address issues as they arise, leading to more efficient workflows and better outcomes.

When to use it

Use this skill when a GAIA task_id fails, times out, or when you observe a drop in pass rates between runs.

When not to use it

This skill may not be suitable for general debugging outside of GAIA question failures or for users unfamiliar with command-line operations.

What you can build with it

Investigating a Failed Task

When a GAIA question returns an incorrect answer, use this skill to load the task_id trace and classify the failure.

Analyzing Performance Regression

If you notice a drop in pass rates between two GAIA runs, this skill helps identify the regression points and potential causes.

Understanding Consistent Failures

For questions that repeatedly fail, use the skill to analyze the failure mode and implement a fix to improve reliability.

How to install GAIA Debugging

View source

1. Install with the skills CLI

npx skills add ruvnet/ruflo/gaia-debugging --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by ruvnet

GAIA Debugging Skill

When a GAIA question fails, systematically diagnose the root cause and propose a targeted fix.

When to use

  • A specific task_id returns the wrong answer or times out
  • Pass-rate dropped between two runs and you need to find the regression
  • You want to understand why a particular question class is consistently failing

Failure mode taxonomy

CodeModeSymptomFix direction
TGTool GapAgent lacks a required tool (no image OCR, no PDF reader)Add tool to catalogue
RMReasoning MissAgent has the right data but draws wrong conclusionImprove system prompt, add CoT instruction
EBExtraction BugAnswer is in the trace but FINAL_ANSWER: regex failsFix answer extraction pattern
LILoop IssueAgent loops (re-asks same tool call) and hits turn limitIncrease max-turns or add loop-detection
DSDataset ShiftGround truth differs from what web currently showsFlag for HAL dataset audit
ATAPI TimeoutTool call times out; agent never gets the resultIncrease per-turn timeout

Diagnostic workflow

Step 1 — Load the question trace

# Find the result for the task_id in the latest run
RESULTS=~/.cache/ruflo/gaia/results-latest.json
node -e "
  const r = JSON.parse(require('fs').readFileSync('$RESULTS'));
  const q = r.results.find(x => x.task_id === '$TASK_ID');
  console.log(JSON.stringify(q, null, 2));
"

Step 2 — Classify the failure

Look at the trace output:

  1. No tools called at all → RM or configuration issue
  2. Tool called but returned error → TG or AT
  3. Tool returned data, wrong answer → RM or EB
  4. Correct answer in trace but marked wrong → EB
  5. max-turns hit → LI or question too hard for current model

Step 3 — Re-run with extended logging

node v3/@claude-flow/cli/bin/cli.js gaia-bench run \
  --level 1 --limit 1 \
  --task-id $TASK_ID \
  --models claude-sonnet-4-6 \
  --max-turns 20 \
  --output json

Step 4 — Apply targeted fix

FailureAction
TG — missing web_browseVerify gaia-tools/index.ts exports web_browse; check tool registration
TG — missing image OCRAdd image_describe tool call; verify GOOGLE_AI_API_KEY
RM — reasoningAdd a system prompt instruction: "Before answering, list all facts you have gathered"
EB — extractionTest the FINAL_ANSWER_RE regex against the trace manually
LI — loopAdd a tool-call deduplication guard in gaia-agent.ts
AT — timeoutSet DEFAULT_PER_TURN_TIMEOUT_MS higher or use --max-turns flag

Step 5 — Verify fix and store pattern

# Re-run the single question
node … gaia-bench run --task-id $TASK_ID --models $MODEL --output json

# If now passing, store the pattern
npx @claude-flow/cli@latest memory store \
  --namespace gaia-debug-patterns \
  --key "fix-$FAILURE_CODE-$(date +%Y%m%d)" \
  --value "task_id=$TASK_ID, mode=$FAILURE_CODE, fix=$FIX_DESCRIPTION"

Quick reference: tool catalogue check

node -e "
  const { createDefaultToolCatalogue } = require('./v3/@claude-flow/cli/src/benchmarks/gaia-tools/index.js');
  const cat = createDefaultToolCatalogue({});
  console.log('Tools registered:', cat.definitions.map(t => t.name));
"

Expected: web_search, file_read, web_browse, image_describe, python_exec

Pattern storage

After resolving a debugging session, store the finding:

npx @claude-flow/cli@latest memory store \
  --namespace gaia-debug-patterns \
  --key "session-$(date +%Y%m%d-%H%M)" \
  --value '{"task_id":"$TASK_ID","failure_mode":"$CODE","fix":"$FIX","verified":true}'

Search for similar past failures:

npx @claude-flow/cli@latest memory search \
  --namespace gaia-debug-patterns \
  --query "extraction bug final answer regex"

Frequently asked questions about GAIA Debugging

Similar skills