langsmith-trace-analyzer

Analyze LangSmith traces to generate Markdown or JSON diagnostics reports.

101|14|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/Lubu-Labs/langchain-agent-skills --skill langsmith-trace-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: langsmith-trace-analyzer
Source: https://github.com/Lubu-Labs/langchain-agent-skills/tree/main/skills/langsmith-trace-analyzer
Command: npx skills add https://github.com/Lubu-Labs/langchain-agent-skills --skill langsmith-trace-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires langsmith, langsmith-fetch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

LangSmith trace data often arrives in raw and inconsistent formats, making it hard to derive actionable debugging insights.

Core Features & Use Cases

  • Fetch, organize, and summarize LangSmith traces by project, status, and time window.
  • Analyze token usage, message patterns, and tool calls to diagnose failures and performance.
  • Compare passed vs failed traces and generate Markdown/JSON reports for benchmarks and debugging.

Quick Start

Install dependencies and run the analysis against a traces directory to produce a report.

Frequently Asked Questions about langsmith-trace-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze LangSmith traces to diagnose failures and token usage?

You can analyze LangSmith traces by running a Python-based script against a directory of downloaded traces organized by outcome. This generates diagnostic reports covering token usage, message patterns, and tool calls to identify failures.

How do I generate debugging reports comparing passed vs failed LangSmith traces?

To generate debugging reports, process your organized trace directories to compare passed versus failed runs. The analysis produces summary statistics and pattern comparisons outputted in Markdown or JSON format for benchmarking.

Can I extract metrics like message counts and duration from raw LangSmith trace data?

Yes, you can extract metrics like message counts, token usage, tool calls, and duration from raw LangSmith trace data. The analysis tolerates multiple trace payload shapes to consistently produce these summary statistics.

What is the best way to summarize inconsistent LangSmith trace payloads for reporting?

The best way to summarize inconsistent LangSmith trace payloads is using a tolerant analysis script that handles multiple payload shapes. It extracts patterns and metrics to produce clear Markdown or JSON analysis reports.

Do I need to organize LangSmith traces by status before analyzing them?

Yes, you need to organize downloaded LangSmith traces by outcome status such as passed, failed, or error before analysis. This categorization allows the script to accurately generate comparisons and diagnostics for your reports.