langchain-ai avatar

Langsmith Dataset

This is your toolkit for building evaluation datasets in LangSmith without writing a bunch of SDK boilerplate. It wraps the langsmith CLI so you can export traces, shape them into datasets (final response, single step, trajectory, or RAG formats), and upload them for testing. The workflow is straightforward: pull traces from a project, transform the JSON into examples with inputs and outputs, then push it back up. Handy if you're iterating on agent behavior and need regression tests or comparative evals. The CLI handles confirmations on destructive ops, which is nice when you're moving fast and don't want to accidentally nuke a dataset.

skills.sh installs
4.9K
GitHub stars
166
last updated
Aug 21, 2026

Install

$ npx -y skills add langchain-ai/langsmith-skills --skill langsmith-dataset --agent claude-code

Installs into .claude/skills of the current project.

Files

Create, manage, and upload evaluation datasets to LangSmith for testing and validation. Environment Variables
LANGSMITH_API_KEY=lsv2_pt_your_api_key_here          # REQUIRED
LANGSMITH_PROJECT=your-project-name                   # Check this to know which project has traces
LANGSMITH_WORKSPACE_ID=your-workspace-id              # Optional: for org-scoped keys

Authentication is REQUIRED. For agents, set the LANGSMITH_API_KEY environment variable (preferred); every langsmith command reads it automatically. To pass a key for a single command, use --api-key:

langsmith datasets list --api-key "$LANGSMITH_API_KEY"

IMPORTANT: Always check the environment variables or .env file for LANGSMITH_PROJECT before querying or interacting with LangSmith. This tells you which project contains the relevant traces and data. If the LangSmith project is not available, use your best judgement to identify the right one.

Python Dependencies

pip install langsmith

JavaScript Dependencies

npm install langsmith

CLI Tool

Sponsors

Details

Repository
github.com/langchain-ai/langsmith-skills
Categories
AI & Agent Building, Data Science & ML, CLI & Terminal

More from langchain-ai/langsmith-skills

All 3
1softaworks avatarhumanizersoftaworks/agent-toolkitRemove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's compreh4.5Kskills.sh installs
2softaworks avatarcodexsoftaworks/agent-toolkitUse when the user asks to run Codex CLI (codex exec, codex resume) or references OpenAI Codex for code analysis, refactoring, or automated editing. Uses GPT-5.24.1Kskills.sh installs
3redis avatarredis-developmentredis/agent-skillsRedis performance optimization and best practices. Use this skill when working with Redis data structures, Redis Query Engine (RQE), vector search with RedisVL,3.1Kskills.sh installs
4openai avatarfigma-create-design-system-rulesopenai/skillsGenerates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design r3.1Kskills.sh installs
5k-dense-ai avatarhypogenick-dense-ai/scientific-agent-skillsPlans and audits use of ChicagoHAI HypoGeniC/HypoRefine for LLM-assisted hypothesis generation from labeled text datasets. Use for the `hypogenic` package, its 2.1Kskills.sh installs
6ai-native-camp avatarsession-analyzerai-native-camp/camp-2This skill should be used when the user asks to "analyze session", "세션 분석", "evaluate skill execution", "스킬 실행 검증", "check session logs", "로그 분석", provides a se1.3Kskills.sh installs