Agent skill · data analytics · composiohq
langsmith-fetch
Debug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool calls, checking memory operations, or examining agent performance. Automatically fetches recent traces and analyzes execution patterns. Requires langsmith-fetch CLI installed.
Why this skill is useful
Adds specific commands and workflows for fetching and analyzing execution traces from LangSmith Studio that the AI wouldn't reliably generate on its own.
What it needs
Requires langsmith-fetch installed locally. Requires langsmith account access. About 6k tokens when loaded. Last updated 2026-07-24. 71,973 stars on the source repository.
What this skill does
LangSmith Fetch - Agent Debugging Skill Debug LangChain and LangGraph agents by fetching execution traces directly from LangSmith Studio in your terminal. When to Use This Skill Automatically activate when user mentions: 🐛 "Debug my agent" or "What went wrong?" 🔍 "Show me recent traces" or "What happened?" ❌ "Check for errors" or "Why did it fail?" 💾 "Analyze memory operations" or "Check LTM" 📊 "Review agent performance" or "Check token usage" 🔧 "What tools were called?" or "Show execution flow" Prerequisites 1. Install langsmith-fetch 2. Set Environment Variables Verify setup: Core Workflows Workflow 1: Quick Debug Recent Activity When user asks: "What just happened?" or "Debug my agent" Execute: Analyze and report: 1. ✅ Number of traces found 2. ⚠️ Any errors or failures 3. 🛠️ Tools that were called 4. ⏱️ Execution times 5. 💰 Token usage Example response format: --- Workflow 2: Deep Dive Specific Trace When user provides: Trace ID or says "investigate that error" Execute: Analyze JSON and report: 1. 🎯 What the agent was trying to do 2. 🛠️ Which tools were called (in order) 3. ✅ Tool results (success/failure) 4. ❌ Error messages (if any) 5. 💡 Root cause analysis 6. 🔧 Suggested fix Example response format: --- Workflow 3: Export Debug Session When user says: "Save this session" or "Export traces" Execute: Report: --- Workflow 4: Error Detection When user asks: "Show me errors" or "What's failing?" Execute: Analyze and report: 1. 📊 Total errors found 2. ❌ Error types and frequency 3. 🕐 When errors occurred 4. 🎯 Which agents/tools failed 5. 💡 Common patterns Example response format: --- Common Use Cases Use Case 1: "Agent Not Responding" User says: "My agent isn't doing anything" Steps: 1. Check if traces exist: 2. If NO traces found: Tracing might be disabled Check: LANGCHAINTRACINGV2=true in environment Check: LANGCHAINAPIKEY is set Verify agent actually ran 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills composiohq/langsmith-fetch