AGENT SKILL

langchain-debug-bundle

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".

适用职业开发工程师
License 许可
MIT
最近更新
2026-03-20
Stars
★ 4
Forks
0

01 前言 Front Matter

name
langchain-debug-bundle
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
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
compatible-with
claude-code, codex, openclaw

02 资源文件 1

03 SKILL.md 正文

LangChain Debug Bundle

Contents

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 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

Next Steps

Use langchain-common-errors for quick fixes or escalate with the bundle.

04 同仓库更多 Skills

micsapp
micsapp/micstec-skills

azure-apim-architecture

Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.

开发工程师后端与接口
★ 4
micsapp
micsapp/micstec-skills

apiops-deployment

Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep/Terraform), CI/CD pipelines (GitHub Actions/Azure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.

开发工程师后端与接口运维与部署
★ 4
micsapp
micsapp/micstec-skills

apim-policy-authoring

Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request/response processing logic.

后端与接口
★ 4
micsapp
micsapp/micstec-skills

api-security-review

Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.

开发工程师后端与接口
★ 4
micsapp
micsapp/micstec-skills

jira-cli

Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.

★ 4
micsapp
micsapp/micstec-skills

calculator

Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.

★ 4