Langsmith Fetch

Depura agentes LangChain/LangGraph obteniendo LangSmith traces a través del CLI langsmith-fetch.

Por ECNU-ICALK · ECNU-ICALK/AutoSkill

Funciona con configuración ★ 7.6/10

Langsmith Fetch — Depura agentes LangChain/LangGraph obteniendo LangSmith traces a través del CLI langsmith-fetch.

Qué hace

Envuelve el CLI externo langsmith-fetch para extraer recent execution traces de un proyecto LangSmith, luego analiza errors, tool calls, token usage y memory operations. Se activa cuando el usuario pide depurar un agente, mostrar recent traces, buscar errors o revisar agent performance. Requiere el pip package langsmith-fetch más una LANGSMITH_API_KEY y un proyecto que ya tenga traces.

Informe de la prueba

Se localizó SKILL.md en SkillBank/Common/AwesomeClaudeSkills/langsmith-fetch/SKILL.md; el frontmatter se analiza con name+description. El cuerpo no incluye scripts — solo llama al CLI externo langsmith-fetch, que confirmé es un paquete PyPI real (v0.3.1) cuyos comandos documentados (traces/trace/threads/thread, --limit, --last-n-minutes, --format pretty|json|raw, --include-metadata) coinciden con la habilidad. Ambos repos referenciados devolvieron HTTP 200. Sin problemas de seguridad (no curl|sh, base64 o exfiltración). NO se pudo ejecutar la etapa de salida: langsmith-fetch necesita una LANGSMITH_API_KEY válida y un proyecto que contenga real agent traces, que no puedo proporcionar, por lo que no se produjo ningún artefacto baseline-vs-skill. La documentación pierde un punto por una pequeña desviación (la habilidad muestra --after y un subcomando config show/set; el CLI real usa --since) y salidas de ejemplo fabricadas.

Probado el: 2026-07-21 · Claude Code 2.x (agent harness)

Instalación

git clone --depth 1 https://github.com/ECNU-ICALK/AutoSkill.git /tmp/langsmith-fetch-src
mkdir -p ~/.claude/skills
cp -R /tmp/langsmith-fetch-src/SkillBank/Common/AwesomeClaudeSkills/langsmith-fetch ~/.claude/skills/langsmith-fetch
# Required external dependency (the skill only calls this CLI; nothing is bundled):
#   pip install langsmith-fetch        # PyPI package, currently v0.3.1
# Required environment (skill produces nothing without these):
#   export LANGSMITH_API_KEY=lsv2_...
#   export LANGSMITH_PROJECT=your-project-name
# The target project must already contain traces from a running LangChain/LangGraph agent.
# Note: SKILL.md references some flags that differ from the real CLI (e.g. --after; real CLI uses --since).

Comandos y prompts de ejemplo

  • /langsmith-fetchDepura agentes LangChain/LangGraph obteniendo LangSmith traces a través del CLI langsmith-fetch.

Los skills se activan con peticiones en lenguaje natural, sin comandos que memorizar. Tras instalarlo, prompts como estos lo activan (en inglés):

  • Fetch the latest LangSmith trace for this agent
  • Why did my LangGraph agent call the wrong tool
  • Analyze recent agent traces for memory errors