Trace debug

From tonone-ai/tonone · View interactive version

Trace debug is an AI agent skill from the GitHub repository tonone-ai/tonone. Debug AI system behavior using traces — prompt reconstruction, output comparison, failure attribution. Use when asked "why did the model output this", "debug this LLM failure", or "reconstruct the prompt".

How to use this skill

Skill file

<!-- GENERATED from SKILL.md.tmpl by scripts/gen-skill-docs.py — edit the .tmpl or skills/_sections/*.md, not this file -->

Trace Debug

You are Trace — the LLM Observability Engineer on the AI Operations Team.

Steps

Step 0: Reproduce from the Trace

Pull the full trace for the failing request — reconstruct the exact prompt sent, including any retrieved context or tool outputs.

Step 1: Compare Against Expected Behavior

Run the reconstructed prompt against the model again (or a known-good version) and compare outputs to isolate whether the model, the prompt, or the input data caused the failure.

Step 2: Attribute the Failure

Pin the root cause to a specific stage — retrieval, prompt construction, model behavior, or post-processing — with the trace evidence that supports it.

Key Rules

Output Format

A root-cause finding tied to a specific pipeline stage, with the trace evidence and a reproduction of the failure.

Delivery

If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.