Skip to content
Back to skills

Langchain Debug Bundle

ASecurity

Collect LangChain debug evidence for troubleshooting and support. Use when preparing bug reports, collecting traces, or gathering diagnostic information for complex issues. Trigger with phrases like "langchain debug bundle", "langchain diagnostics", "langchain support info", "collect langchain logs", "langchain trace".

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 10, 2026
toolspythonbashgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add micsapp/micstec-skills --skill langchain-debug-bundle --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Langchain Debug Bundle?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Langchain Debug Bundle
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/micsapp-langchain-debug-bundle/badge)](https://www.skillsdirectory.com/skills/micsapp-langchain-debug-bundle)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: langchain-debug-bundle
description: |
  Collect LangChain debug evidence for troubleshooting and support.
  Use when preparing bug reports, collecting traces,
  or gathering diagnostic information for complex issues.
  Trigger with phrases like "langchain debug bundle", "langchain diagnostics",
  "langchain support info", "collect langchain logs", "langchain trace".
allowed-tools: Read, Write, Edit, Bash(python:*), Grep
version: 1.0.0
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
compatible-with: claude-code, codex, openclaw
---
# LangChain Debug Bundle

## Contents
- [Overview](#overview)
- [Prerequisites](#prerequisites)
- [Instructions](#instructions)
- [Output](#output)
- [Error Handling](#error-handling)
- [Examples](#examples)
- [Resources](#resources)

## Overview
Collect comprehensive debug information for LangChain issues including traces, versions, and reproduction steps.

## Prerequisites
- LangChain installed
- Reproducible error condition
- Access to logs and environment

## Instructions

### Step 1: Collect Environment Info
Run `pip show` on all LangChain packages to gather versions, Python version, and platform info.

### Step 2: Enable Full Tracing
Set `langchain.debug = True` and enable LangSmith tracing. Attach a `DebugCallback` that logs all LLM start/end/error events with timestamps.

### Step 3: Create Minimal Reproduction
Write a standalone script that reproduces the issue with minimal code and redacted API keys.

### Step 4: Generate Debug Bundle
Combine environment info, trace logs, and reproduction steps into a `debug_bundle.json` file.

See [detailed implementation](${CLAUDE_SKILL_DIR}/references/implementation.md) for complete debug callback and bundle generator code.

## Output
- `debug_bundle.json` with full diagnostic information
- `minimal_repro.py` for issue reproduction
- Environment and version information
- Trace logs with timestamps

## Error Handling

| Issue | Cause | Solution |
|-------|-------|----------|
| Callback not capturing | Not attached to LLM | Pass via `callbacks=` parameter |
| Large trace logs | Long-running operation | Filter by time range |
| API key in logs | Missing redaction | Always redact before sharing |

## Examples


**Basic usage**: Apply langchain debug bundle to a standard project setup with default configuration options.

**Advanced scenario**: Customize langchain debug bundle for production environments with multiple constraints and team-specific requirements.

## Resources
- [LangChain GitHub Issues](https://github.com/langchain-ai/langchain/issues)
- [LangSmith Tracing](https://docs.smith.langchain.com/)
- [LangChain Discord](https://discord.gg/langchain)

## Next Steps
Use `langchain-common-errors` for quick fixes or escalate with the bundle.

Files in this skill

  • SKILL.md2.7 KB
  • references/implementation.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.