deepagents-planning-to…
Use the write_todos tool effectively for task planning and decomposition in Deep Agents. Use when users want to (1) implement…
Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory evaluation (match or LLM-as-judge), running LangSmith dataset evaluations, and comparing two
Claude Code
$ npx -y skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation --agent claude-code
Codex
$ npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation -a codex -y
Cursor
$ npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation -a cursor -y
Gemini CLI
$ npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation -a gemini-cli -y
GitHub Copilot
$ npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation -a github-copilot -y
OpenCode
$ npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation -a opencode -y
Windsurf
$ npx skills add soba-labs/langchain-agent-skills --skill langgraph-testing-evaluation -a windsurf -y
name: langgraph-testing-evaluation description: "Use this skill when you need to test or evaluate LangGraph/LangChain agents: writing unit or integration tests, generating test scaffolds, mocking LLM/tool behavior, running trajectory evaluation (match or LLM-as-judge), running LangSmith dataset evaluations, and comparing two agent versions with A/B-style offline analysis. Use it for Python and JavaScript/TypeScript workflows, evaluator design, experiment setup, regression gates, and debugging flaky/incorrect evaluation results."
Practical workflows for validating agent quality with:
Use this file for high-level flow. Load `references/*` for detailed implementation.
Choose the smallest approach that answers your question:
| Goal | Primary method | Load first | | --- | --- | --- | | Validate node logic quickly | Unit tests with mocks | `references/unit-testing-patterns.md` | | Validate multi-step agent behavior | Trajectory evaluation | `references/trajectory-evaluation.md` | | Track quality over datasets over time | LangSmith evaluation | `references/langsmith-evaluation.md` | | Compare old vs new agent versions | A/B comparison | `references/ab-testing.md` |
Recommended order: 1. Unit tests 2. Integration/trajectory checks 3. Dataset evaluation in LangSmith 4. A/B comparison before deployment
Run from repo root.
# Python (preferred) uv run skills/langgraph-testing-evaluation/scripts/generate_test_cases.py my_agent:graph --output tests/ --framework pytest # JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/generate_test_cases.js ./my-agent.ts:graph --output tests/ --framework vitest
# Python: LLM-as-judge uv run skills/langgraph-testing-evaluation/scripts/run_trajectory_eval.py my_agent:run_agent my_dataset --method llm-judge --model openai:o3-mini # Python: trajectory match uv run skills/langgraph-testing-evaluation/scripts/run_trajectory_eval.py my_agent:run_agent dataset.json --method match --trajectory-match-mode strict --reference-trajectory reference.json # JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/run_trajectory_eval.js ./agent.ts:runAgent my_dataset --method llm-judge --model openai:o3-mini --max-concurrency 4
# Python uv run skills/langgraph-testing-evaluation/scripts/evaluate_with_langsmith.py my_agent:run_agent my_dataset --evaluators accuracy,latency --max-concurrency 4 # Python (do not upload experiment results) uv run skills/langgraph-testing-evaluation/scripts/evaluate_with_langsmith.py my_agent:run_agent my_dataset --evaluators accuracy --no-upload # JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/evaluate_with_langsmith.js ./agent.ts:runAgent my_dataset --evaluators accuracy,latency --max-concurrency 4
# Python uv run skills/langgraph-testing-evaluation/scripts/compare_agents.py my_agent:v1 my_agent:v2 dataset.json --output comparison_report.json # JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/compare_agents.js ./v1.ts:run ./v2.ts:run dataset.json --output comparison_report.json # JavaScript/TypeScript (force local dataset file only) node skills/langgraph-testing-evaluation/scripts/compare_agents.js ./v1.ts:run ./v2.ts:run dataset.json --no-langsmith
# Python uv run skills/langgraph-testing-evaluation/scripts/mock_llm_responses.py create --type sequence --output mock_config.json # JavaScript/TypeScript node skills/langgraph-testing-evaluation/scripts/mock_llm_responses.js create --type sequence --output mock_config.json
1. Define test scope.
2. Start from deterministic checks.
3. Build/curate dataset examples.
4. Run evaluation with explicit gates.
5. Compare versions before rollout.
6. Diagnose failures from traces/experiments.
Load when:
Load when:
Load when:
Load when:
A comprehensive collection of agent-optimized skills for AI coding assistants working in the LangChain ecosystem.
Use the write_todos tool effectively for task planning and decomposition in Deep Agents. Use when users want to (1) implement…
Initialize, validate, and troubleshoot Deep Agents projects in Python or JavaScript using the `deepagents` package. Use when…
Implement multi-agent coordination patterns (supervisor-subagent, router, orchestrator-worker, handoffs) for LangGraph…
Implement LangGraph error handling with current v1 patterns. Use when users need to classify failures, add RetryPolicy for…
Initialize and configure LangGraph projects with proper structure, langgraph.json configuration, environment variables, and…
Design state schemas, implement reducers, configure persistence, and debug state issues for LangGraph applications. Use when…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration